Reference Manual

PMAC 2 Software Reference
348 PMAC Program Command Specification
P188=1 ; To prevent repetition of message
ENDIF
ELSE ; F.E. Bit not set
P188=0 ; To prepare for next time
ENDIF
SEND"THE VALUE OF P7 IS:" ; PMAC to send the message string
CMD"P7" ; PMAC to return the value of P7
See Also
I-variables I1, I62
Program commands COMMAND, DISPLAY, SEND^{letter}
Writing A PLC Program
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 the following set: @ABC...XYZ[\]^_.
Remarks
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:
{letter} Letter Value Control Character Value
@
64
NULL
0
A
65
<CTRL-A>
1
B
66
<CTRL-B>
2
C
67
<CTRL-C>
3
...
X
88
<CTRL-X>
24
Y
89
<CTRL-Y>
25
Z
90
<CTRL-Z>
26
[
91
ESC
27
\
92
28
]
93
29
^
94
30
_
95
31
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 which port 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.