Jump to content
OMRON Forums

Recommended Posts

Posted

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

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Posted

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.

Posted

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?

Posted
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.
  • 3 weeks later...
Posted

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!

Guest
This topic is now closed to further replies.

×
×
  • Create New...