Reference Manual
PMAC 2 Software Reference
186 PMAC On-Line Command Specification
&{constant}
Function
Address a coordinate system.
Scope
Global
Syntax
&{constant}
where:
• {constant} is an integer from 1 to 8, representing the number of the coordinate
system to be addressed
Remarks
This command makes the coordinate system specified by {constant} the addressed
coordinate system (the one on which on-line coordinate-system commands will act). The
addressing is modal, so all further coordinate-system-specific commands will affect this
coordinate system until a different coordinate system is addressed. At power-up/reset,
Coordinate System 1 is addressed.
Note:
A different coordinate system may simultaneously be hardware
selected from the control panel port for coordinate-system-specific
control panel inputs, and that different coordinate systems may be
addressed from programs within PMAC for COMMAND statements.
If the control-panel inputs are disabled by I2=1, the host-addressed coordinate system also
controls the indicator lines for the in-position, warning-following-error, and fatal-following-
error functions. These indicator lines connect to both control-panel port outputs (all PMAC
versions), and to the interrupt controller (PMAC-PC, PMAC-Lite, PMAC-STD). (If I2=0,
the hardware-selected coordinate system controls these lines.)
Example
&1B4R ............... ; C.S.1 point to Beginning of Prog 4 and Run
Q......................... ; C.S.1 Quit running program
&3B6R ............... ; C.S.3 point to Beginning of Prog 5 and Run
A......................... ; C.S.3 Abort program
See Also
I-variable I2
On-line commands #, #{motor number}, &
Program commands ADDRESS, COMMAND
&
Function
Report currently addressed coordinate system.
Scope
Global
Syntax
&
Remarks
This command causes PMAC to return the number of the coordinate system currently
addressed by the host.
Note that a different coordinate system may be hardware selected from the control panel port
for coordinate-system-specific control panel inputs, and that different coordinate systems
may be addressed from programs within PMAC for COMMAND statements.
Example
&......................... ; Ask PMAC which C.S. is addressed
4 ; PMAC reports that C.S. 4 is addressed
See Also
I-variable I2
On-line commands #, #{motor number},&{C.S. number};
Program commands ADDRESS, COMMAND;