Delta Tau GEO BRICK LV Reference Manual

Page of 760
Turbo PMAC/PMAC2 Software Reference
 
Turbo PMAC Program Command Specification 
 469 
This command causes the value in {data} to be loaded in variable Q127 for the coordinate system 
executing the motion program.  It takes no other action.  It is intended to pass spindle speed data in 
machine tool programs.  The algorithms that actually control the spindle would then use Q127 in their 
routines; for instance, to set jog speed, or voltage output. 
Note: 
This command is distinct from S{data} information passed as part of a 
subroutine call through a READs command; in that form, the value is placed in 
Q119 for the coordinate system. 
Examples: 
S1800 
; This puts a value of 1800 in Q127 
S(P1) 
; This puts the value of P1 in Q127 
G96 S50 
; Here the S-term is an argument in the G-code call 
(PROG 1000) 
; This is the subroutine that executes G96 
N96000 READs 
; This puts a value of 50 in Q119 
See Also: 
Q-variables (Program Computational Features) 
Implementing a Machine-Tool Style Program (Writing and Executing Motion Programs) 
Motion program command READ 
Example program SPINDLE.PMC 
SENDx 
Function: 
Cause Turbo PMAC to Send Message 
Type: 
Motion program (PROG and ROT); PLC program 
Syntax: 
SENDS"{message}" 
SENDP"{message}" 
 
SENDR"{message}" 
 
SENDA"{message}" 
This command causes Turbo PMAC to send the specified message out a specified communications port.  
This is particularly useful in the debugging of applications.  It can also be used to prompt an operator, or 
to notify the host computer of certain conditions. 
If I62=0, Turbo PMAC issues a carriage-return (<CR>) character at the end of the message automatically.  
If I62=1, Turbo PMAC does not issue a <CR> character at the end of the message; a SENDx^M must be 
used to issue a <CR> in this case. 
Note: 
If there is no host on the port to which the message is sent, or the host is not ready 
to read the message, the message is left in the queue.  If several messages back up 
in the queue this way, the program issuing the messages will halt execution until 
the messages are read.  This is a common mistake when the SENDx command is 
used outside of an Edge-Triggered condition in a PLC program.  See Writing a 
PLC Program for more details. 
On the serial port, it is possible to send messages to a non-existent host by 
disabling the port handshaking with I1=1. 
SENDS transmits the message to the main serial port. 
SENDP transmits the message to the parallel bus port:  ISA, VME, or PCI, whichever is present on the 
board. 
SENDR transmits the message through the DPRAM ASCII response buffer.