Delta DVP — 6.5 CML - Color Lights Flashing

6. Data Transmission and Comparison Design Examples 6.5 CML - Color Lights Flashing Y6 Y7 Y10 Y11 Y12 Y13 ON Y15 OFF X1 Y17 Y16 Y0 Y2 Y1 Y3 Y4 Y5 Control Purpose: z Turning on the even - numbered lights and odd-numbered lights alternately for 1 sec when the switch is turned ON. z Turning off all color lights when the switch is turned off. Devices: Control Program: X1 MOV X1 MOV X1 M1013 CMLP Program Description: z When the switch is turned ON, K4Y0 = H5555 and the state of Y17~Y0 will be “0101 0101 0101 0101,” which means the even-numbered lights will be ON. When M1013 = On, CMLP instruction will be executed to reverse the state of K4Y0.

Y17~Y0 will be “1010 1010 1010 1010,” which means the odd-numbered lights will be ON. The state will last for 1 sec. z When M1013 is ON again, CMLP instruction will be executed and the state of K4Y0 will be reversed again. In this case, the even-numbered lights will be ON. z Every time when M1013 is ON, the state of Y0~Y17 will be reversed and lasts for 1 sec. The lights will flash alternatively as this cycle. DVP-PLC Application Examples 6-7 Device Function X1 Flas hing control switch. X1 = ON when the switch is turned to ON. M1013 1s c lock pulse, 0.5s ON / 0.5s OFF Y0~Y17 16 c olor lights H5555 K4Y0 H0 K4Y0 K4Y0 K4Y0