Mitsubishi — 5.6 Descriptions of the Applied Instructions

AH500 Motion Control Module Manual  S 1 : Dividend; S 2 : Divisor; D : Quotient and remainder  The binary floating-point value in S 1 is divided by the binary floating-point Explanation value in S 2 , and the quotient is stored in D .  If S 1 is a floating-point value, the instruction will be used to divide the floating-point value by the binary floating-point value in S 2 . If S 2 is a floating-point value, the instruction will be used to divide the binary floating-point value in S 1 by the floating-point value.  If the value in S 2 is 0, an operation error will occur, the instruciton will not be executed, an operation error flag will be ON, and the error code 16#0E19 will appear.

 If the absolute value of an oepration result is greater than the maximum floating-point value available, a carry flag will be ON.  If the absolute value of an oepration reuslt is less than the minimum floating-point value available, a borrow flag will be ON.  If an operation result is 0, a zero flag will be ON.  SM1064 is the zero flag in an Ox motion subroutine, and SM968 is the zero flag in O100.  SM1065 is the borrow flag in an Ox motion subroutine, and SM969 is the borrow flag in O100.  SM1066 is the carry flag in an Ox motion subroutine, and SM970 is the carry flag in O100.

 SM1049 is the operation error flag in an Ox motion subroutine, and SM953 is the operation error flag in O100.  When X0.1 is ON, the binary floating-point value in (D1, D0) is divided by the binary floating-point value in (D11, D10), and the quotient is stored in (D21, D20). Example 1 X0.1 D20  When X0.2 is ON, the binary floating-point value in (D1, D0) is divided by Example 2 F1234.0, and the quotient is stored in (D11, D10). X0.2  Please refer to section 5.3 for more information about performing Additional remark operations on floating-point numbers.

5-86 API Instruction code Operand Function Binary floating-point 123 D EDIV P S , S , D 1 2 division Device Xn.n Yn.n M S K 16# F KnM KnS D W T C V Z S 1    S 2    D   Pulse instruction 16-bit instruction 32-bit instruction (9 steps )  –  DEDIV D0 D10 DEDIV D0 F1234. 0 D10