15. Handy Instruction Design Examples Devices: Control Program:
M1002 Set the ON time of as vertical green light 52s Set the ON time of vertical green light flashing as 5s Set the ON time of vertical yellow light as 3s Set the ON time of horizontal green light as 52s Set the ON time of horizontal green light flashing as 5s Set the ON time of horizontal yellow light as 3s X0 The corresponding M devices will be ON according to the set time in D500~D505 M100 Y2 Vertical green light ON M101 M1013 M102 Y1 Vertical yellow light ON Y0 M103 M104 Vertical red light ON M105 DVP-PLC Application Examples 15-7 Device Function X1 Switch of the traffic lights control program Y0 Red light (vertical) Y1 Yellow light (vertical) Y2 Green light (vertical) Y10 Red light (horizontal) Y11 Yellow light (horizontal) Y12 Green light (horizontal) MOV K52 D500 MOV K5 D501 MOV K3 D502 MOV K52 D503 MOV K5 D504 MOV K3 D505 CNT C0 K1000 C0 counts once e INCD D500 C0 M100 K6 INCD D500 C0 M100 K6 CNT C0 K1000