Delta Tau GEO BRICK LV Reference Manual

Page of 760
Turbo PMAC/PMAC2 Software Reference
 
Turbo PMAC Program Command Specification 
 468 
Examples: 
RESUME PLC 0 
RESUME PLC 1,2,5 
RESUME PLC 1..16 
RES PLC 7 
See Also: 
I-variable I5 
On-line commands ENABLE PLCDISABLE PLC<CONTROL-D>PAUSE PLCRESUME PLC 
Program commands ENABLE PLCDISABLE PLCPAUSE PLC 
RETURN 
Function: 
Return From Subroutine Jump/End Main Program 
Type: 
Motion program (PROG only) 
Syntax: 
RETURN 
 
RET 
The RETURN command tells the motion program to jump back to the routine that called the execution of 
this routine.  If this routine was started from an on-line command (RUN), program execution stops and the 
program pointer is reset to the top of this motion program – control is returned to the Turbo PMAC 
operating system.   
If this routine was started from a GOSUBCALLGMT, or D command in a motion program, program 
execution jumps back to the command immediately following the calling command. 
When the CLOSE command is sent to end the entry into a motion program buffer, Turbo PMAC 
automatically appends a RETURN command to the end of that program.  When the OPEN command is 
sent to an existing motion program buffer, the final RETURN command is automatically removed. 
Examples: 
OPEN PROG 1 CLEAR 
X20 F10 
X0 
CLOSE
 
; Turbo PMAC places a RETURN here 
OPEN PROG 1000 CLEAR 
N0 RAPID RETURN 
; Execution jumps back after one-line routine 
N1000 LINEAR RETURN 
; Ditto 
N2000 CIRCLE1 RETURN 
; Ditto 
... 
CLOSE 
; Turbo PMAC places a RETURN here 
See Also: 
Subroutines and Subprograms (Writing and Executing Motion Programs) 
On-line commands OPENCLOSE 
Program commands CALLGOSUBGMTD 
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