Delta AH500 — 6.2.2 Explanation of Arithmetic Instructions

AH500 Programming Manual Execution result D1 D0 4 5 D10 1 1 2 D100 2 4 SM600 D2 3 - D11 D12 3 D101 D102 0 D3 1 2 D13 4 D103 - 2 D4 D14 5 - 4 D104 Example 2: When X0.0 is ON, the subtrAH500end 1 is subtracted from the binary values in D0~D4, and the differences are stored in D100~D104. Execution result D1 D0 10 1 9 1 D101 D100 8 9 D2 8 - 1 D102 7 D3 D4 6 7 1 1 D103 D104 6 5 1. 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 not executed, SM is ON, and the error code in SR0 is 16#2003. 2. If n n >256, the instruction is not executed, SM0 is ON,and the error code in SR0 is 16#200B. 3.

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. 4. 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. 5. If S 1 ~ S 1 +n -1 overlap S 2 ~ S 2 +n -1, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200C. Additional remark: 6-64