Delta Electronics — 6.3.2 Explanation of Data Conversion Instructions

Chapter 6 Applied Instructions Symbol S : Source device D : Conversion result Explanation 1. This instruction converts the binary integer in S into the single-precision floating-point number and stores the 6_ conversion result in D . 2. The operand S used in the instruction FLT cannot be the 32-bit counter, and not the device E. 3. The source device S used in the instruction FLT occupies one register, and D used in FLT occupies two registers. 4. The source device S used in the instruction DFLT occupies two registers, and D used in DFLT also occupies two registers.

 When the absolute value of the conversion result is larger than the value that can be represented by the maximum floating-point number, SM602 is ON, and the maximum floating-point number is stored in D .  When the absolute value of the conversion result is less than the value that can be represented by the minimum floating-point number, SM601 is ON, and the minimum floating-point number is stored in D .  When the conversion result is zero, SM600 is ON.

6-83 API Instruction code Operand Function 0202 D FLT P S, D Converting a binary integer into a binary floating-point number Device X Y M S T C HC D FR SM SR E K 16# “$” F S          D     BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S        D  Pulse instruction 16-bit instruction 32-bit instruction AS AS AS