Delta DVP — 9.1 ENCO/DECO - Encoding and Decoding

9. Data Processing Design Examples Control Program: M10 M11 M11 Program Description: z When M10 = ON, ENCO instruction will be executed. Any product entering main production line will be encoded with its sub-production line number, and the result will be saved in D0. By monitoring the value in D0, the operator can identify the type of the entering product. z When M11 = ON, DECO instruction will be executed to decode the specified value in D10 into Y0~Y7 so as to disable the corresponding sub-production line. For example, when D10 = K5, the decoding result will be Y5 = ON. In this case, No. 5 sub-production line will be disabled.

When M11 = OFF, ZRST instruction will be executed and Y0~Y7 will be OFF. All sub-production lines will operate normally. z If the set value in D10 is out of the range between K0~K7, HFFFF will be written in D10, so as to prevent the production line interruption due to other written value in D10. DVP-PLC Application Examples 9-2 ENCO X0 D0 K3 DECO D10 Y0 K3 ZRST Y0 Y7 LD> D10 K7 MOV HFFFF D10 LD D10 K0