omron — <CONTROL-Z>

PMAC Product Guide It can be useful to send this before sending a query command for which an exact response format is expected if not sure what PMAC has been doing before, because it makes sure nothing else comes through before the expected response. As such, it is often the first character sent to PMAC from the host when trying to establish initial communications. Note: This command empties the command queue in PMAC RAM, but it cannot erase the one or two characters already in the response port. A robust algorithm for clearing responses would include two-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. Function : Report last command line Scope : Global Syntax : ASCII Value 25D; $19 This causes PMAC to report the last command line to the host (with no trailing ) and to re-enter the line into the command queue ready to execute upon the next receipt of . When communicating with PMAC in terminal mode, the last command can be recalled and edited using the backspace and typing in desired changes. The command will be re-executed when the host sends a . Examples: P123=5 .. Set the first value P124=7 .... Set the second value P123 .........

Query the first value 5 .......................... PMAC responds with value ......... Tell PMAC to report last command P123 .................. PMAC reports last command 4 Modify to P124 and send 7........... PMAC tells value of P124 Function : Set PMAC in serial port communications mode Scope : Global Syntax : ASCII Value 26D; $1A This command causes the 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 active port. If 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. Examples: Serial host sends: P1 PMAC responds to serial port: 12 Bus host sends: P1=P1+1 Serial host sends: P1 Online Commands 135