Delta AH500 — 6.2.2 Explanation of Arithmetic Instructions

AH500 Programming Manual Example: When X0.0 is ON, the constants 1111 and 100 are converted into the binary-coded decimal values which are stored in D0 and D1 respectively. The binary-coded decimal value in D1 is subtracted from the binary-coded decimal value in D0, and the difference is stored in D10. Additional remark: 1. If the value in S 1 or the value in S 2 exceeds the range of values which can be represented by the binary-coded decimal values, i.e. 0~9999, the instruction B- is not executed, SM0 is ON, and the error code in SR0 is 16#200D (The binary-coded decimal value is represented by the hexadecimal number, but one of digits is not within the range between 0 and 9.). 2.

If the value in S 1 or the value in S 2 exceeds the range of values which can be represented by the binary-coded decimal values, i.e. 0~99999999, the instruction DB- is not executed, SM0 is ON, and the error code in SR0 is 16#200D (The binary-coded decimal value is represented by the hexadecimal number, but one of digits is not within the range between 0 and 9.). 3. The instruction does not support SM600, SM601 and SM602. 6-56