3. Timer Design Examples 3.1 Delay OFF Program Control Purpose: z Enabling the indicator to be ON immediately and OFF after a 5 sec delay by the switch 5s X1 T0 Devices: Y1 Control Program: X1 T1 Y1 Y1 X1 Delay OFF for 5 sec Program Description: z X1 = ON when the switch is turned on. The NC (Normally Closed) contact X1 will be activated, and TMR instruction will not be executed. Coil T1 will be OFF and so will the NC contact T1. Because X1 = ON, the indicator Y1 will be ON and latched. z X1 = OFF when the switch is turned off. The NC contact X1 will not be activated, which makes TMR instruction executed. Indicator Y1 will remain ON by the latched circuit until T1 reaches its set value.
z When timer T1 reaches its set value of 5 seconds, coil T1 will be ON. The NC contact T1 will be activated, which makes the indicator Y1 OFF. z Delay OFF function can also be performed by using API 65 STMR instruction. DVP-PLC Application Examples 3-1 Device Function X1 X1 = OFF when the switch is turned off T1 5 sec timer. Time base = 100ms Y1 Output indicator TMR T1 K50