Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1736

Hide thumbs Also See for MANUALplus 620:

Advertisement

1736
Example:
This example also applies to the SUBM and RPLY commands.
Depending on input I10, submit the subroutine with the label LBL 300 to the
NC for processing. In addition, check the processing status of the subroutine
in the main program with the RPLY command, and cancel it with the CAN
command, depending on input I11.
Function
Load the content of input I10 into the logic
accumulator
If logic accumulator = 0, jump to LBL 100.
Interrogate the status of the submit program and
load it into the word accumulator.
If the word accumulator is not equal to 0, i.e., the
submit program has already been transferred to the
NC for processing, set the logic accumulator to 1.
If logic accumulator =1, jump to LBL 100.
Call submit program 300.
Save the identifier of the submit program in byte
128.
Label
Load the state of input I11 into the logic
accumulator
If logic accumulator = 0, jump to LBL 110 (skip the
program cancellation).
Cancel the submit program.
Label
End of main program
Label: Beginning of the submit program
End of the submit program
Always insert submit programs, like any module, at the end of the main
program. In this case, the content of the submit program could be a display in
the PLC window that is realizable through permanently assigned PLC
modules.
HEIDENHAIN Technical Manual MANUALplus 620
STL
L I10
JPF 100
RPLY B128
<> K+0
JPT 100
SUBM 300
= B128
LBL 100
L I11
JPF 110
CAN B128
LBL 110
EM
LBL 300
EM

Advertisement

loading