omron — SEND^{letter}

PMAC Product Guide SEND^{letter} Function : Cause PMAC to send control character Type : Motion program (PROG and ROT); PLC program Syntax : SEND^{letter} SENDS^{letter} SENDP^{letter} where {letter} is one of the characters in @ABC...XYZ[\]^_ This command causes PMAC to send the specified control character over one of the communications ports. These can be used for printer and terminal control codes, or for special communications to a host computer Control characters have ASCII byte values of 0 to 31 ($1F). The specified {letter} character determines which control character is sent when the statement is executed.

The byte value of the control character sent is 64 ($40) less than the byte value of {letter}. The letters that can be used and their corresponding control characters are: Note: Do not put the up-arrow character and the letter in quotes (do not use SEND"^A" ) or PMAC will attempt to send the two non-control characters ^ and A for this example, instead of the control character. SEND transmits over the active communications response port, whether serial, parallel host port (PC-Bus or STD-Bus), or VME-Bus port. SENDS always transmits over the serial port regardless of what is the current active response port.

SENDP always transmits over the parallel host port (PC-Bus or STD-Bus), regardless of which port is the current active response port. There is no SENDV command for the VME bus exclusively. The SEND command must be used with the VME port as the active response port. When PMAC powers up or resets, the active response port is the serial port. When any command is received over a bus port, the active response port becomes the bus port. PMAC must then receive a command to cause the response port to revert back to the serial port. Buffer Commands 235 {letter} Letter Value Control Character Value @ 64 NULL 0 A 65 1 B 66 2 C 67 3 ... X 88 24 Y 89 25 Z 90 26 [ 91 ESC 27 \ 92 28 ] 93 29 ^ 94 30 _ 95 31