3. INSTRUCTION STRUCTURE
3 − 18
MELSEC-A
(2) Turn-on/off instruction operations at index qualification
When the turn-on/off instructions (PLS, PLF, SETF , RSTF , P) are
designated with index qualification when an AnA, A2AS, AnU, QCPU-A (A
Mode) or A2USH board is used, the instructions are executed only when the
execution condition for the turn-on/off execution instruction is established.
Example 1
When M1, M2 and M4 are ON, and M3 is OFF in the circuit shown below:
M1Z *3 SET F1Z F1Z
Number of
scans
Device No. ON/OFF state
Execution
condition
Execution/no
execution state
Device No. ON/OFF state
1st scan M1 ON *2 *2 F1 *2
2nd scan M2 ON
ON → ON
(not established)
No execution F2 OFF
3rd scan M3 OFF
ON → OFF
(not established)
No execution F3 OFF
4th scan M4 ON
OFF → ON
(established)
Execution F4 ON
Example 2
1Z goes On when M1Z goes On.
Operation in the case where M1, M2 and M4 are On, and M3 is Off in the circuit in
the following figure.
*1