HEIDENHAIN TNC 426 PB/M Technical Manual page 1011

Table of Contents

Advertisement

7 – 162
Example:
This example also applies to the commands SUBM and RPLY.
Depending on input I10, submit the subroutine with the label LBL 300 to the
NC for processing. In addition, check the execution 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 state 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 the 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 TNC 426, TNC 430
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

Table of Contents
loading

This manual is also suitable for:

Tnc 430 pa/mTnc 430 mTnc 426 cbTnc 430 caTnc 426 pbTnc 430 pa ... Show all

Table of Contents