DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming Example 13 - Output delay circuit The output delay circuit is composed of two timers executing delay actions. No matter input X0 is ON or OFF, output Y4 will be delayed. X0 T5 Y4 T6 Y4 Y4 Example 14 - Timing extension circuit X0 The total delay time: (n1+n2)* T. T refers to the timer resolution. T11 X0 T12 T11 n1* T . Timer = T11, T12 Timer resolution: T Y1 n2* T T12 Y1 (n1+n2)* T Example 15 – Counting Range Extension Circuit The counting range of a 16-bit counter is 0 ~ 32,767. The opposite circuit uses two counters to increase the counting range as n1*n2.
When value in counter C6 reaches n2, The pulses counted from X13 will be n1*n2. Example 16 - Traffic light control (Step Ladder Logic) Traffic light control 1-16 5 6 5 secs T 3 secs TMR T5 K50 TMR T6 K30 TMR T11 Kn1 TMR T12 Kn2 X C CNT C6 Kn2 X RST C6 C CNT C5 Kn1 RST C5 Green light Green light Red light Yellow light blinking Vertical light Y0 Y1 Y2 Y2 Horizontal light Y20 Y21 Y22 Y22 Light Time 35 Sec 5 Sec 25 Sec 5 Sec Vertical Light Vertical Light Horizontal Light