Reference Manual

PMAC 2 Software Reference
PMAC On-Line Command Specification 279
PR
Function
Report Rotary Program Remaining
Scope
Coordinate-system specific
Syntax
PR
Remarks
This command causes PMAC to report the number of program lines that have been entered in
the rotary buffer for the addressed coordinate system but have not yet been executed
(program remaining). This command can be useful for finding out if it is time to send new
lines to the buffer. The value returned is accurate only if the rotary program buffer is open.
Example
B0 ...................... ; Point to rotary buffer
OPEN ROT ........ ; Open rotary buffer
X10F10............. ; Enter 1st line
X20 .................... ; Enter 2nd line
X30 .................... ; Enter 3rd line
X40 .................... ; Enter 4th line
PR ...................... ; Ask for program remaining
4......................... ; PMAC responds that 4 lines remain
R......................... ; Start running the program
PR ...................... ; Ask for program remaining
2......................... ; PMAC responds two 2 lines remain
See Also
Rotary Program Buffers (Writing a Motion Program)
BREQ interrupt (Using Interrupts – Writing a Host Communications Program)
I-variables I16, I17
Q
Function
Quit Program at End of Move
Scope
Coordinate-system specific
Syntax
Q
Remarks
This causes the currently addressed coordinate system to cease execution of the program at
the end of the currently executing move or the next move if that has already been calculated.
The program counter is set to the next line in the program, so execution may be resumed at
that point with an R or S command.
Compare this to the similar / command, which always stops at the end of the currently
executing move..
Example
B10R.................. ; Point to beginning of PROG 10 and run
Q......................... ; Quit execution
R......................... ; Resume execution
Q......................... ; Quit execution again
S ; Resume execution for a single move
See Also
Stopping Commands (Making Your Application Safe)
Control-Panel Port STEP/ Input (Connecting PMAC to the Machine)
JPAN Connector Pin 9
On-line commands <CTRL-Q>, A, H, K, /, \