Delta DVP-ES3 — 6.2.2 Explanation of Arithmetic Instructions

DVP-ES3 Series Programming Manual 8. For 32-bit instructions, when the operation result is larger than 2,147,483,647, SM602 is ON. 9. 16-bit instruction example: when the operand S 2 is a device (not a constant or a hexadecimal value) . . . . . S 1 2 } } . . . . . D +n-1 } S 1 4 5 5-1=4 S 2 1 1 D 4-1=3 . . . . . S +n-1 S 1 +1 n n - S 2 n = D +1 . . . . . . . . . . . . 1 1 1-1=0 10. 16-bit instruction example: when the operand S 2 is a constant or a hexadecimal value . . . . . S 1 2 } } . . . . . D +n-1 } S 1 4 5 5-1=4 S 2 1 1 D 4-1=3 . . . . . S +n-1 S 1 +1 n n - S 2 n = D +1 . . . . . . . . . . . .

1 1 1-1=0 Example 1 When M0 is ON, the instruction subtracts the binary values in D10–D14 from the binary values in D0–D4, and stores the differences in D100–D104. _6 D0 5 D10 1 1 D100 Execution result 4 D1 4 D11 2 D101 2 SM600 D2 3 - D12 3 D102 0 D3 D4 1 2 D13 D14 4 5 - 4 D103 D104 - 2 6-68