DVP-ES3 Series Programming Manual Example 1 1. When M0 switches from OFF to ON, the DECO instruction decodes the values of the 3 bits in M10 – M12 as the values of the 8 bits in M100 – M107. 2. The instruction adds the values of the 3 bits in M10–M12 to get the value 3. The instruction sets the third bit in M10–M1007, that is, the bit in M103 to 1. 3. After the DECO instruction is executed and M0 switches to OFF, the values of the eight bits in M100 – M107 are unchanged. X0.2 X0.1 4 1 2 3 7 6 5 4 2 1 0 3 M107 M106 M105 M104 M103 M102 M101 M100 _6 Example 2 1.
When M0 switches from OFF to ON, the DECO instruction decodes the values of b2 – b0 in D10 as the values of b7 – b0 in D20, and sets the values of b15 – b8 in D10 to 0. 2. The instruction decodes the values of the lower three bits in D10 as the values of the lower eight bits in D20. The instruction sets the values of the higher eight bits to 0. 3. After the DECO instruction is executed and M0 switches to OFF, the data in D20 is unchanged. 6-348 0 1 1 0 0 0 0 1 0 0 0