Delta AH500 — 6.2.2 Explanation of Arithmetic Instructions

AH500 Programming Manual Execution result D1 D0 1 2 D11 D10 10 D101 D100 11 D2 3 + D12 11 12 D102 13 15 D3 4 5 D13 13 D103 17 D4 D14 14 D104 19 Example 2: When X0.0 is ON, the addend 10 is added to the binary values in D0~D4, and the sums are stored in D100~D104. Execution result D1 D0 1 2 10 11 10 D101 D100 12 D2 3 + 10 D102 13 D3 D4 4 5 10 10 D103 D104 14 15 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-62