Reference Manual
PMAC 2 Software Reference
PMAC On-Line Command Specification 179
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.
Example
This example shows how the command can be used to move a motor from one coordinate
system to another:
&1 ...................... ; Address C.S. 1
#4->.................. ; Request definition of #4
5000A ............... ; PMAC responds
#4->0 ............... ; Clear definition
&2 ...................... ; Address C.S. 2
#4->5000A...... ; Make new definition in C.S. 2
See Also
Axes, Coordinate Systems (Setting Up a Coordinate System)
On-line commands UNDEFINE, UNDEFINE ALL, #{constant}->{axis
definition}.
#{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 is specified,
PMAC assumes a value of 1.0;
{axis} is a letter (X, Y, Z, A, B, C, U, V, W) representing the axis to which
the motor is to be matched;
• [+{offset}] (optional) is a floating-point constant representing the difference
between axis zero position and motor zero (home) position, in motor counts; if
none is specified, PMAC assumes a value of 0.0
Note:
No space is allowed between the motor number and the arrow double
character.
Remarks
This command assigns the specified motor to a set of axes in the addressed coordinate
system. It also defines the scaling and starting offset for the axis or axes.
In the vast majority of cases, there is a one-to-one matching between PMAC motors and
axes, so this axis definition statement only uses one axis name for the motor.
A scale factor is typically used with the axis character, so that axis moves can be specified in
standard units (e.g. millimeters, inches, degrees). This number is what defines what the user
units will be for the axis. If no scale factor is specified, a user unit for the axis is one motor
count. Occasionally an offset parameter is used to allow the axis zero position to be different