1734 HEIDENHAIN Technical Manual MANUALplus 620
8.30 Calling the Submit Program (SUBM)
Syntax: SUBM (SUBMIT)
Operands: Label (LBL)
Action:
Assign an identifier (1 to 255) to a labeled subroutine and put it in the queue. 
At the same time, the control writes the assigned number in the word 
accumulator. If programs are already entered in the submit queue, the control 
does not run the addressed program until the programs before it are finished. 
A submission to the queue may only take place from a PLC program. A SUBM 
command in a submit program is not possible.
If there is no room in the queue, or if you program the SUBM command in a 
submit program (nesting), the control assigns the value "0" to the word 
accumulator.
Example:
See CAN command.
8.31 Interrogating the Status of a Submit Program (RPLY)
Syntax: RPLY (REPLY)
Operands: B/W
Action:
Interrogate the status of the submit program with the specified identifier. You 
must have already stored the identifier in a byte or word when you call the 
submit program. With the RPLY command and the defined memory address 
(byte or word containing the identifier) the control transfers one of the 
following processing states to the word accumulator:
 Word accumulator = 0: Program complete/not in the queue
 Word accumulator = 1: Program running
 Word accumulator = 2: Program in the queue
Example:
See CAN command.