66
4
4 Instructions4.1.4 Main Control Instructions
4.1.4 Main Control Instructions
Main control instructions
MC
Coil instruction for serial contacts used by the main
control
MCR
Release instruction for serial contacts used by main
control reset
Instruction Operand
MC
MCR
N0–N7 markers (word parameters), 3 steps
MC is the main control starting instruction. When it is executed, the instructions between the MC and MCR
instructions are executed normally. When the MC instruction is OFF, the instructions between the MC and
MCR instructions trigger the following actions:
Timer
The timer is cleared, coils are de-energized, and contacts
are inactive.
Counter
Coils are de-energized, whereas the counter and contacts
remain unchanged.
Coils driven by the OUT instruction No coils are energized.
Elements driven by the SET and
RST instructions
The elements remain unchanged.
Application commands All commands are inactive.
MCR is the main control ending instruction and located at the end of the main control program. This
instruction must not be preceded by contact instructions.
The MC and MCR instructions of the main control program support the nested program structure with a
maximum of eight layers, which are numbered from N0 to N7 and used in sequence.
;
ǒ0&10Ǔ
0
;
<
;
<
ǒ0&51Ǔ
1
When X0 = ON, the instructions enclosed by
the dashed frame are executed; when X0 is
not ON, those instructions are skipped.
The number of NO usage times is not limited.
However, when a nested structure is used, the
number of NO increases from N0 to N1 till N7.
Bus-returned result (NO belongs to
the nested level)
Note: The main control instructions support the Y0–Y377 and M0–M7679 operands. The instructions do not
support the M8000–M8511 operands and the S, SM, T, and C elements.
4.1.5 End Instructions
End instructions
FEND End of the main program
END End of all programs