omron — #{constant}->{axis definition}

PMAC Product Guide This command causes PMAC to report the current axis definition of the specified motor in the currently addressed coordinate system. If the motor has not been defined to an axis in the currently addressed system, PMAC will return a 0 (even if the motor has been assigned to an axis in another coordinate system). A motor can have an axis definition in only one coordinate system at a time. Examples: &1 ....................... ; Address Coordinate System 1 #1-> .................. ; Request Motor 1 axis definition in Coordinate System 1 10000X .............. ; PMAC responds with axis definition &2 ....................... ; Address Coordinate System 2 #1-> ..................

; Request Motor 1 axis definition in Coordinate System 2 0 ......................... ; PMAC shows no definition in this Coordinate System UNDEFINE ALL #{constant}->0 Function : Clear axis definition for specified motor Scope : Coordinate-system specific Syntax #{constant}->0 where {constant} is an integer from 1 to 8 representing the number of the motor whose axis definition is to be cleared. This command clears the axis definition for the specified motor if the motor has been defined to an axis in the currently addressed coordinate system. If the motor is defined to an axis in another coordinate system, this command will not be effective.

This allows the motor to be redefined to another axis in this coordinate system or a different coordinate system. Compare this command to UNDEFINE , which erases all the axis definitions in the addressed coordinate system, and to UNDEFINE ALL , which erases all the axis definitions in all coordinate systems. Examples: This example shows how the command can be used to move a motor from one coordinate system to another: &1 ....................... ; Address Coordinate System 1 #4-> .................. ; Request definition of #4 5000A ................ ; PMAC responds #4->0 ................ ; Clear definition &2 ....................... ; Address Coordinate System 2 #4->5000A .......

; Make new definition in Coordinate System 2 #{constant}->{axis definition} Function : Assign an axis definition for the specified motor Scope : Coordinate-system specific Syntax : #{constant}->{axis definition} where {constant} is an integer from 1 to 8 representing the number of the motor whose axis definition is to be made. {axis definition} consists of: 1 to 3 sets of [{scale factor}]{axis} , separated by the + character, in which the optional {scale factor} is a floating-point constant representing the number of motor counts per axis unit (engineering unit). If none are specified, PMAC assumes a value of 1.0. Online Commands 137