Reference Manual
PMAC 2 Software Reference
PMAC On-Line Command Specification 177
active port.
If you are trying to establish communications with PMAC over the serial port, it is a good
idea to send this character before any query commands to make sure PMAC will try to
respond over the serial port.
Regardless of which is the active output port, PMAC can accept commands over either port.
It is the user’s responsibility not to garble commands by simultaneously commanding over
both ports.
Example
Serial host sends: P1
PMAC responds to serial port: 12
Bus host sends: .. P1=P1+1
Serial host sends: P1
PMAC responds to bus port: 13
(Serial host gets no response)
Serial host sends: <CTRL-Z>P1
PMAC responds to serial port: 13
See Also
On-line commands <CTRL-T>, <CTRL-X>;
Jumpers E44-E47.
#
Function
Report currently addressed motor
Scope
Global
Syntax # Ask PMAC which motor is addressed
Remarks
This causes PMAC to return the number of the motor currently addressed by the host – the
one that acts upon motor-specific commands from the host.
Note:
A different motor may 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
#
2 PMAC reports that motor 2 is addressed
See Also
Control-Panel Port Inputs (Connecting PMAC to the Machine)
On-line commands #{constant}, &, &{constant}, @{constant}
Program commands ADDRESS, COMMAND
#{constant}
Function
Address a motor.
Scope
Global
Syntax
#{constant)
where:
• {constant} is an integer from 1 to 8, representing the number of the motor to be
addressed
Remarks
This command makes the motor specified by {constant} the addressed motor (the one on
which on-line motor commands will act). The addressing is modal, so all further motor-
specific commands will affect this motor until a different motor is addressed. At power-