Delta Tau GEO BRICK LV Reference Manual

Page of 760
Turbo PMAC/PMAC2 Software Reference
 
Turbo PMAC Program Command Specification 
 470 
SENDA transmits the message to the Option 9T auxiliary serial port. 
Note: 
If a program, particularly a PLC program, sends messages immediately on power-
up/reset, it can confuse a host-computer program (such as the Turbo PMAC 
Executive Program) that is trying to find Turbo PMAC by querying it and looking 
for a particular response. 
It is possible, particularly in PLC programs, to order the sending of messages faster than the port can 
handle them.  Usually, this will happen if the same SENDx command is executed every scan through the 
PLC.  For this reason, it is good practice to have at least one of the conditions that causes the SENDx 
command to execute to be set false immediately to prevent execution of this SENDx command on 
subsequent scans of the PLC. 
Note: 
To cause Turbo PMAC to send the value of a variable, use the COMMANDx 
statement instead, specifying the name of the variable in quotes (e.g. CMDS"P1"
Examples: 
SENDR"Motion Program Started" 
SENDS"DONE" 
SENDP"Spindle Command Given" 
IF (M188=1) 
; C.S.1 Warning Following Error Bit set? 
  IF (P188=0) 
; But not set last scan? (P188 follows M188) 
    SENDA"Excessive Following Error" 
; Notify operator 
    P188=1 
; To prevent repetition of message 
  ENDIF 
ELSE 
; F.E. Bit not set 
  P188=0 
; To prepare for next time 
ENDIF 
SENDS"THE VALUE OF P7 IS:"
 
; Turbo PMAC to send message string 
CMDS"P7" 
; Turbo PMAC to return the value of P7 
See Also: 
I-variables I1, I62 
Program commands COMMANDxDISPLAYSENDx^{letter} 
Writing a PLC Program 
SENDx^{letter} 
Function: 
Cause Turbo PMAC to Send Control Character 
Type: 
Motion program (PROG and ROT); PLC program 
Syntax: 
SENDS^{letter} 
 
SENDP^{letter} 
 
SENDR^{letter} 
 
SENDA^{letter} 
where: 
 
{letter} is one of the characters in the following set: @ABC...XYZ[\]^_ 
This command causes Turbo PMAC to send the specified control character over the specified 
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.