AH Motion Controller – Standard Instructions Manual The operand D occupies two devices. The quotient is stored in ( D +1, D) , and the remainder is stored in ( D +3, Example: D +2). 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 is out of the range, the instruction is not executed, SM0 is ON, and the error code in SR0 is _3 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.
If the operand D used during the execution of the 16-bit instruction is declared in ISPSoft, the data type will be ARRAY [2] of WORD/INT. 4. If the operand D used during the execution of the 32-bit instruction is declared in ISPSoft, the data type will be ARRAY [2] of DWORD/DINT. 3-78