Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1719

Hide thumbs Also See for MANUALplus 620:

Advertisement

8.15.70 CALL MODULE IF LOGIC ACCUMULATOR = 0 (CMF)
January 2012
Syntax:
CMF (CALL MODULE IF FALSE)
Operands:
Label (LBL)
Action:
The CMF command is a conditional module call. If the logic accumulator = 0,
the control calls the module that begins at the label you have entered. If the
logic accumulator = 1, the control does not call the module. The CMF
command interrupts a logic sequence.
Example:
This example also applies to the CM and CMT commands.
Depending on the state of the input I5, call the Module 10. Initial state:
Input I5
= 0
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 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
8.15 Command Set
STL
Accumulator
content
L I5
0
CMF 10 0
L M100 1
EM
LBL 10
L I3
0
O M500 1
= O20
1
EM
Operand content
0
1
0
1
1
1719

Advertisement

loading