Reference Manual

Turbo PMAC/PMAC2 Software Reference
Turbo PMAC Variable and Command Summary 32
Program Logic Control
N{constant} Line label
O{constant} Line label, alternate entry form
GOTO{data} Jump to specified line label; no return
GOSUB{data}[{letter}{axis}...] Jump to specified line label [with arguments] and return
CALL{data}[.{data}][{letter}{axis}...] Jump to specified program [and label] [with
arguments] and return.
RETURN - Return program operation to most recent GOSUB or CALL
READ ({letter} [,{letter}...]) Read argument into subroutine/subprogram from calling
line
G{data} Gnn[.mmm] interpreted as CALL 1000.nnmmm (PROG 1000 provides subroutines for
desired G-Code actions)
M{data} Mnn[.mmm] interpreted as CALL 1001.nnmmm (PROG 1001 provides subroutines for
desired M-Code actions)
T{data} Tnn[.mmm] interpreted as CALL 1002.nnmmm (PROG 1002 provides subroutines for
desired T-Code actions.)
D{data} Dnn[.mmm] interpreted as CALL 1003.nnmmm (PROG 1003 provides subroutines for
desired D-Code actions.)
S{data} Set Q127 to value of {data} (spindle command)
PRELUDE1{call command} Enable modal execution of call command before subsequent moves
PRELUDE0 Disable modal PRELUDE calls
IF ({condition}){action} Conditionally execute single-line action
IF ({condition}) Conditionally execute following statements
ELSE {action} Execute single-line action on previous false condition
ELSE - Execute following statements on previous false IF condition
ENDIF Mark end of conditionally executed branch statements
WHILE ({condition}){action} Do single-line action as long as condition true
WHILE ({condition}) Execute following statements as long as condition true
ENDWHILE Mark end of conditionally executed loop statements
BLOCKSTART So all commands until BLOCKSTOP to execute on Step
BLOCKSTOP End of “single-step” statements starting on BLOCKSTART
STOP Halt program execution, ready to resume
WAIT Use with WHILE to halt execution while condition true
LOCK{constant},P{constant} Check/set process-locking bit
UNLOCK{constant} Clear process-locking bit
Miscellaneous Commands
COMMAND"{command}" Issue text command, no response
COMMAND^{letter} Issue control character command, no response
COMMANDS"{command}" Issue text command, respond to main serial port
COMMANDS^{letter} Issue control character command, respond to main serial port
COMMANDP"{command}" Issue text command, respond to parallel bus port
COMMANDP^{letter} Issue control character command, respond to parallel bus port
COMMANDR"{command}" Issue text command, respond to DPRAM ASCII port
COMMANDR^{letter} Issue control character command, respond to DPRAM ASCII port
COMMANDA"{command}" Issue text command, respond to auxiliary serial port
COMMANDA^{letter} Issue control character command, respond to auxiliary serial port
SENDS"{message}" Transmit message over main serial interface