andyf Posted October 11, 2012 Share Posted October 11, 2012 Is there a one line command that can be used to undefine a motor from whatever coordinate system it is currently in? I'm trying to avoid the two step process of querying Motor[x].Coord and then using the result in an undefine command. For example, for motor 1 I tried: &*#1undefine but this does not work Link to comment Share on other sites More sharing options...
Sina.Sattari Posted October 11, 2012 Share Posted October 11, 2012 Andyf, You can issue the following command: #n->0 This will undefine coordinate system definition for motor n in the coordinate system it is in, but the motor is still a part of the latest coordinate system it was defined in, which means it can be affected by global functions in that coordinate system such as feedrate over-ride and coordinate system kill/abort commands. Link to comment Share on other sites More sharing options...
andyf Posted October 16, 2012 Author Share Posted October 16, 2012 Sina, That command requires the current coordinate system (&) to be that of the motor (x) you want to undefine. Thus, I would first have to query Motor[n].Coord, then issue: &n#x->0 My goal is to NOT have to query to figure out what c.s. the motor is in. Is that possible? Link to comment Share on other sites More sharing options...
curtwilson Posted October 22, 2012 Share Posted October 22, 2012 The motor must be undefined from "within" the coordinate system in which is it is presently defined. This is a protective mechanism, as it is very easy to screw things up in redefining coordinate systems. Link to comment Share on other sites More sharing options...
andyf Posted November 9, 2012 Author Share Posted November 9, 2012 We have updated our host software to first query for the motor's current coordinate system via Motor[x].Coord, then issue the command: & # undefine This provides the functionality we need. Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts