Reference Manual
PMAC 2 Software Reference
346 PMAC Program Command Specification
S{data}
Function
Spindle data command
Type
Motion program (PROG and ROT)
Syntax
S{data}
where:
• {data} is a constant or expression representing the value to be passed to the storage
variable for later use.
Remarks
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 (e.g., 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 READ(S) command. In this form, the value is
placed in Q119 for the coordinate system.
Example
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 READ(S) ; This puts a value of 50 in Q119
See Also
Q-variables (Program Computational Features)
Implementing a Machine-Tool Style Program (Writing a Motion Program)
Motion program command READ
Example program SPINDLE.PMC
SEND
Function
Cause PMAC to Send Message
Type
Motion program (PROG and ROT); PLC program
Syntax
SEND"{message}"
SENDS"{message}"
SENDP"{message}"
Remarks
This command causes PMAC to send the specified message out of one of PMAC’s
communications ports. 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, PMAC automatically issues a carriage-return (<CR>) character at the end of the
message. If I62=1, PMAC does not issue a <CR> character at the end of the message. A
SEND^M must be used to issue a <CR> in this case.