The program of a macro type function block is loaded
by a calling source program along the execution flow. At the time of program
execution, the loaded program is executed in the same way as the main program.
The tables show the impact of the MC parameter on the
signal outputs. All signals are presented in the order they were activated,
following the direction of the arrow.
When this
function is disabled (MC/MCR - OFF), the M200 output will be high when the
block input (M20) and the M2 contact are both on. Once the block is on, switching
the M2 contact will change the state of the M200 output. However, if M20 is
turned off after M200 is activated, the M200 output will turn off the next time
the M2 contact is off, and we turn on the block input at bit M20.
Importantly,
there is no difference in the result of the output signals when the FB
is written in the ST language. This is because the compiler converts the
bit-setting instruction into a MOV instruction.