Delta AH500 — 6.2.2 Explanation of Arithmetic Instructions

Chapter 6 Applied Instructions Example: When X0.0 is ON, the dividend in D0 is divided by the divisor in D10, the quotient is stored in D20, and the remainder is stored in D21. Whether the result is a positive value or a negative value depends on the state of the highest bit. Additional remark: 1. If the device exceeds the range, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 2. If the divisor is 0, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2012. 3. Please use API0103 instruction for recoding remainders. Refer to API0103 instruction for details. 6-73