EasyManua.ls Logo

HEIDENHAIN TNC 430 PA/M - Call Module if Logic Accumulator = 0 (CMF)

HEIDENHAIN TNC 430 PA/M
1135 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 146 HEIDENHAIN Technical Manual TNC 426, TNC 430
7.7.71 CALL MODULE IF LOGIC ACCUMULATOR = 0 (CMF)
Syntax: CMF (CALL MODULE IF FALSE)
Operands: Label (LBL)
Action:
The CMF command is a conditional module call. If the logic accumulator = 0,
the TNC calls the module that begins at the label that you have entered. If the
logic accumulator = 1, the TNC does not call the module. CMF interrupts a
logic sequence.
Example:
This example also applies to the commands CM and CMT.
Depending on the state of the input I5, call the Module 10. Initial state:
Input I5 = 0
Function STL Accumulator contents [bit] Operand contents [bit]
31..15 ..................... 7 .................. 0
Load the operand
content into the logic
accumulator.
L I5 x ..... x xxxxxxx0xxxxxxx 0
If logic accumulator
=0, jump to LBL 10.
CMF 10 x ..... x x x x x x x x 0 x x x x x x x
Resume main
program after
module execution.
L M100 x ..... x xxxxxxx1xxxxxxx 1
End of the main
program.
EM
Label: Beginning of
module.
LBL 10
Statement in the
module.
L I3 x ..... x x x x x x x x 0 x x x x x x x 0
Statement in the
module.
O M500 x ..... x x x x x x x x 1 x x x x x x x 1
Statement in the
module.
= O20 x ..... x x x x x x x x 0 x x x x x x x 0
End of module,
resume the main
program with the
command L M100.
EM

Table of Contents

Related product manuals