DVP-ES3 Series Programming Manual Example 2 When M0 is ON, the instruction adds the addend 10 to the binary values in D0–D4, and stores the sums in D100–D104. Execution result 1 10 11 D1 D0 2 10 D101 D100 12 D2 3 + 10 D102 13 D3 4 10 D103 14 D4 5 10 D104 15 Additional remarks 1. For 16-bit instructions, if the devices S 1 – S 1 + n -1, S 2 – S 2 + n -1, or D–D + n -1 exceed the device range, the instruction is _6 not executed, SM is ON, and the error code in SR0 is 16#2003. 2. For 32-bit instructions, if the devices S 1 – S 1 +2* n -1, S 2 – S 2 +2* n -1, or D–D +2* n -1 exceed the device range, the instruction is not executed, SM is ON, and the error code in SR0 is 16#2003. 3.
If n is not between 1–256, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200B. 4. For 16-bit instructions, if S 1 – S 1 + n -1 overlap D–D + n -1, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200C. 5. For 32-bit instructions, if S 1 – S 1 +2* n -1 overlap D – D +2* n -1, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200C. 6. For 16-bit instructions, if S 2 – S 2 + n -1 overlap D–D + n -1, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200C. 7.
For 32-bit instructions, if S 2 – S 2 +2* n -1 overlap D – D +2* n -1, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200C. 6-66