Reference Manual

PMAC 2 Software Reference
PMAC Program Command Specification 351
X32 Y21 TA120
X43 Y26 TA87
X50 Y30 TA62
DWELL100
RAPID X0 Y0
See Also
Cubic Spline Mode (Writing a Motion Program)
I-variable Ix87
Program commands LINEAR, CIRCLE, RAPID, PVT, SPLINE1, TA
STOP
Function
Stop program execution
Type
Motion program (PROG)
Syntax
STOP
Remarks
This command suspends program execution, whether started by run or step, keeping the
program counter pointing to the next line in the program, so that execution may be
resumed with a RUN or STEP command.
Example
A10 B10
A20 B0
STOP
A0 B0
See Also
On-line commands <CONTROL-Q>, Q, R, S
Program commands BLOCKSTART, BLOCKSTOP
T{data}
Function
Tool Select Code (T-Code)
Type
Motion program
Syntax
T{data}
where
{data} is a floating-point constant or expression in the range 0.000 to 999.999,
specifying the program number and the line label to jump to.
Remarks
PMAC interprets this statement as a CALL 10n2.({data’}*1000) command, where
n is the hundreds’ digit of {data}, and {data’} is the value of {data} without the
hundred’s digit (modulo 100 in mathematical terms). That is, this statement causes a jump
(with return) to motion program 10n2, and the specified line label. (Programs 10n2 are
usually used to implement the machine codes as the system designer sees fit.) The value of
{data’} can be from 0.0 to 99.999, corresponding to line labels N0 to N99999.
If the specified program and/or line label do not exist, the T command is ignored, and the
program continues as if it were not there. No error is generated.
This structure permits the implementation of customizable T-code routines for machine-
tool style applications by the writing of subroutines in motion programs 10n2. Arguments
can be passed to these subroutines by following the T-code with one or more sets of
{letter}{data}, as in CALL and READ statements.
Most users will have T-codes only in the range 0-99, which permits the use of PROG 1002
only, and allows {data’} to equal {data} for direct specification of the line label.
Example
T01 jumps to N1000 of PROG 1002
T12 jumps to N12000 of PROG 1002
T115 jumps to N15000 of PROG 1012
See Also
Program commands CALL{data}, D{data}, M{data}, T{data}, RETURN