Reference Manual

PMAC 2 Software Reference
178 PMAC On-Line Command Specification
up/reset, Motor 1 is addressed.
Note:
A different motor may simultaneously be hardware selected from the
control panel port for motor-specific control panel inputs, and that
different motors may be addressed from programs within PMAC for
COMMAND statements.
Example
#1J+.................. ;Command Motor 1 to jog positive
J- ...................... ;Command Motor 1 to jog negative
#2J+.................. ;Command Motor 2 to jog positive
J/ ;Command Motor 2 to stop jogging
See Also
Control-Panel Port Inputs (Connecting PMAC to the Machine)
Addressing commands (Talking to PMAC)
Program commands COMMAND, ADDRESS
On-line commands #, &, &{constant}, @{constant}
#{constant}->
Function
Report the specified motor’s coordinate system axis definition.
Scope
Coordinate-system specific
Syntax
#{constant
where:
{constant} is an integer from 1 to 8 representing the number of the motor whose axis
definition is requested
Remarks
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.
Example
&1 ...................... ; Address Coordinate System 1
#1->.................. ; Request Motor 1 axis definition in C.S. 1
10000X............. ; PMAC responds with axis definition
&2 ...................... ; Address Coordinate System 2
#1->.................. ; Request Motor 1 axis definition in C.S. 2
0 ; PMAC shows no definition in this C.S.
See Also
Axes, Coordinate Systems (Setting Up a Coordinate System)
On-line commands #{constant}->0, #{constant}->{axis definition},
UNDEFINE, UNDEFINE ALL.
#{constant}->0
Function
Clear axis definition for specified motor.
Scope
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
Remarks
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