6 Application Instructions API 00-49 Program Example 3: 1. The states of each device *1: Y1 is a dual output. When M0 is Off, M1 will control Y1. When M0 is On, M12 will control Y1. *2: When the timers (T192 ~ T199, applicable in SA/EH series MPU) used by a subroutine re driven and encounter the execution of CJ instruction, the timing will resume. After the timing target is reached, the output contact of the timer will be On. *3: When the high-speed counters (C235 ~ C255) are driven and encounter the execution of CJ instruction, the counting will resume, as well as the action of the output points.
DVP-PLC Application Manual 6-3 Contact state before CJ Contact state when CJ is Output coil state when CJ is Device is executed being executed being executed Y, M, S M1, M2, M3 Off M1, M2, M3 OffOn *1 Y1 , M20, S1 Off M1, M2, M3 On M1, M2, M3 OnOff *1 Y1 , M20, S1 On 10ms, 100ms Timer ES/SA/EH M4 Off M4 OffOn Timer T0 is not enabled. M4 On M4 OnOff Timer T0 immediately stops and is latched. M0 OnOff, T0 is reset as 0. 1ms, 10ms, 100ms *2 Timer (accumulative) SA/EH M6 Off M6 OffOn Timer T240 is not enabled. M6 On M6 OnOff Once the timer function is enabled and when met with CJ instruction, all accumulative timers will stop timing and stay latched. M0 OnOff. T240 remains unchanged.
*3 C0 ~ C234 M7, M10 Off M10 On/Off trigger Counter does not count. M7 Off, M10 On/Off trigger M10 On/Off trigger Counter C0 stops counting and stays latched. After M0 goes Off, C0 resumes its counting. Application instruction M11 Off M11 OffOn Application instructions are not executed. M11 On M11 OnOff The skipped application instructions are not executed, but API 53 ~ 59, API 157 ~ 159 keep being executed.