January 2012 8.15 Command Set 1719
8.15.70 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 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 STL Accumulator
content
Operand content
Load the operand content
into the logic
accumulator.
L I5 0 0
If logic accumulator =0,
jump to LBL 10.
CMF 10 0
Resume main program
after module execution.
L M100 1 1
End of main program EM
Label: Beginning of
module
LBL 10
Statement in the module L I3 0 0
Statement in the module O M500 1 1
Statement in the module = O20 1 1
End of module, resume
the main program with
the command L M100
EM