Call Module If Logic Accumulator = 0 (Cmf) - HEIDENHAIN TNC 426 PB/M Technical Manual

Table of Contents

Advertisement

7.7.71 CALL MODULE IF LOGIC ACCUMULATOR = 0 (CMF)

Function
Load the operand
content into the logic
accumulator.
If logic accumulator
=0, jump to LBL 10.
Resume main
program after
module execution.
End of the main
program.
Label: Beginning of
module.
Statement in the
module.
Statement in the
module.
Statement in the
module.
End of module,
resume the main
program with the
command L M100.
7 – 146
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
STL
Accumulator contents [bit]
31..15 ..................... 7 .................. 0
L I5
x ..... x x x x x x x x 0 x x x x x x x
CMF 10
x ..... x x x x x x x x 0 x x x x x x x
L M100
x ..... x x x x x x x x 1 x x x x x x x
EM
LBL 10
L I3
x ..... x x x x x x x x 0 x x x x x x x
O M500
x ..... x x x x x x x x 1 x x x x x x x
= O20
x ..... x x x x x x x x 0 x x x x x x x
EM
HEIDENHAIN Technical Manual TNC 426, TNC 430
Operand contents [bit]
0
1
0
1
0

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