PMAC Product Guide &{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. 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 be hardware selected simultaneously 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 ; Coordinate System 1 point to B eginning of Prog 4 and Run Q ; Coordinate System 1 Quit running program &3B6R ; Coordinate System 3 point to B eginning of Prog 5 and Run A ; Coordinate System 3 Abort program & Function : Report currently addressed coordinate system Scope : Global Syntax : & This command causes PMAC to return the number of the coordinate system currently addressed by the host. Note: 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. Examples:
& ; Ask PMAC which Coordinate System is addressed 4 ; PMAC reports that Coordinate System 4 is addressed 142 Online Commands