AH500 Motion Control Module Manual Explanation S : Source device; D : Conversion result The instruction is used to convert a binary integer into a binary floating-point value. 1. If the absolute value of the converesion result is greater than the maximum floating-point value avaliable, a carry flag will be ON. 2. If absolute value of the conversion result is less than the mimum floating-point vlaue available, a borrow flag will be ON. 3. If the conversion 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. When X1.1 is ON, the binary integer in (D1, D0) is converted into a binary floating-point value, and the conversion result is stored in (D21, D20). Suppose the value in the 32-bit register (D1, D0) is K100,000. When X1.1 is ON, K100,000 is converted into the 32-bit floating-point number 16#4735000, and 16#4735000 is stored in the 32-bit register (D21, D20).
Example X1.1 5-70 API Instruction code Operand Function Converting a binary integer 49 D FLT P S, D into a binary floating-point value 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 (6 steps ) – DFLT D0 D20