Chapter 6 Applied Instructions Example 3: The states of the devices are listed below. *1:Y0.1 is a dual output. When M0 is OFF, Y0.1 is controlled by M1. When M0 is ON, Y0.1 is controlled by M12. 6-139 State of the State of the contact during State of the output coil during Device contact before the the execution of CJ the execution of CJ execution of CJ Y, M, and S M1, M2, and M3 are OFF. M1, M2, and M3 are switched from OFF to ON. Y0.1*1, M20, and S1 are OFF. M1, M2, and M3 are ON. M1, M2, and M3 are switched from ON to OFF. Y0.1*1, M20, and S1 are ON. Timer M4 is OFF. M4 is switched from OFF to ON. The timer is not enabled. M4 is ON.
M4 is switched from ON to OFF The timer stops counting immediately. When M0 is switched from ON to OFF, the timer is reset to 0. Accumulative timer M6 is OFF. M6 is switched from OFF to ON. ST1 is not enabled. M6 is ON. M6 is switched from ON to OFF. If the instruction CJ is executed after the accumulative timer is enabled, the accumulative timer stops counting. Counter M7 and M10 are OFF. M10 is ON/OFF. The counter is not enabled. M7 is OFF. M10 is ON/OFF. M10 is ON/OFF. C0 stops counting. When M0 is switched OFF, C0 keeps counting. Applied instruction M11 is OFF. M11 is switched from OFF to ON The applied instruction is not executed. M11 is ON.
M11 is switched from ON to OFF The applied instruction which is skipped is not executed.