Reference Manual

PMAC 2 Software Reference
176 PMAC On-Line Command Specification
If I63 is set to 0, there is no acknowledgment of the completion of the <CTRL-X>
command. If I63 is set to 1, PMAC acknowledges the completion of the command with a
<CTRL-X> to the host, permitting the host to know that it is safe to send the next command.
PCOMM32 versions 10.21 and newer can take advantage of this feature to improve the speed
of communications.
Note:
This command empties the command queue in PMAC RAM, but it
cannot erase the 1 or 2 characters already in the response port. A
robust algorithm for clearing responses would include 2 character-read
commands that can time-out if necessary.
For multiple cards on a single serial daisy-chain, this command affects all cards on the chain,
regardless of the current software addressing.
See Also
On-line commands <CTRL-H>, <CTRL-Z>
<CONTROL-Y>
Function
Report last command line.
Scope
Global
Syntax
ASCII Value 25D; $19
Remarks
This causes PMAC to report the last command line to the host (with no trailing <CR>) and to
re-enter the line into the command queue ready to execute upon the next receipt of <CR>.
This allows a user communicating with PMAC in terminal mode to recall the last command
and to be able to edit it with the backspace and typing in desired changes. The command will
be re-executed when the host sends a <CR>.
Note:
Internally generated commands from CMD "{command}"
statements in motion and PLC programs overwrite the last executed
command from the host, and so can alter the action of this character.
Example
P123=5<CR> . ;Set the first value
P124=7<CR> ... ;Set the second value
P123<CR> ........ ;Query the first value
5......................... ;PMAC responds with value
<CTRL-Y> ........ ;Tell PMAC to report last command
P123.................. ;PMAC reports last command
<BACKSPACE>4<CR> ;Modify to P124 and send
7 ;PMAC tells value of P124
See Also
On-line command <CONTROL-I>.
<CONTROL-Z>
Function
Set PMAC in serial port communications mode.
Scope
Global
Syntax
ASCII Value 26D; $1A
Remarks
This command causes PMAC’s serial port to become the active communications output port.
All PMAC responses directed to the host will be sent over the serial port. This mode will
continue until a command is received over the bus (parallel) port, which will make the bus
port the active communications output port. PMAC powers up/resets with the serial port the