Mitsubishi — 5.6 Descriptions of the Applied Instructions

AH500 Motion Control Module Manual Explanation  S : Source device; D : Conversion result  The binary floating-point value in S is converted into a binary value. The integer part of the binary value is stored in D , and the fractional part of the binary value is dropped.  The instruction is the opposite of API 49 DFLT.  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.  If a conversion result is 0, a zero flag will be ON. If the fractional part of a conversion result is dropped, a borrow flag will be ON. If a converesion result is not in the range of -2,147,483,648 to 2,147,483,647, a carry flag will be ON. Example  When X0.1 is ON, the binary floating-point value in (D21, D20) is converted into a binary value. The integer part of the binary value is stored in (D31, D30), and the fractional part of the binary value is dropped.

X0.1 5-92 API Instruction code Operand Function Converting a binary 129 D INT P S, D floating-point number into a binary integer Device Xn.n Yn.n M S K 16# F KnM KnS D W T C V Z S   D   Pulse instruction 16-bit instruction 32-bit instruction (5 steps)  –  DINT D20 D30