Delta DVP-ES3 — 6.2.2 Explanation of Arithmetic Instructions

Chapter 6 Applied Instructions Example 2 When M0 is ON, the instruction subtracts the subtrahend 1 from the binary values in D0–D4, and stores the differences in D100–D104. Execution result D0 10 1 D100 9 D1 9 1 D101 8 D2 D3 7 8 - 1 1 D102 D103 6 7 D4 6 1 D104 5 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-69