Delta DVP-ES3 — 6.3.2 Explanation of Data Conversion Instructions

DVP-ES3 Series Programming Manual Symbol S : Data source D : Conversion result Explanation 1. This instruction converts the decimal floating-point number in the register specified by S into the single-precision _6 floating-point number, and stores the conversion result in the register specified by D . 2. Suppose the value in S is 1234, and the value in S +1 is 3. The instruction converts the value in S into 1.234x10 6 . 3. The value in D should be a single-precision floating-point number, and the values in S and S +1 represent the decimal real number and the decimal exponent respectively. 4.

Use the FBIN instruction to convert a decimal floating-point number into a single-precision floating-point number. 5. The real number of decimal floating-point numbers are from -9,999 to +9,999, the exponents of decimal floating-point numbers are from -41 to +35. The practical range of decimal floating-point numbers in the PLC is between ±1175Ч10-41 and ±3402Ч10+35. When the operation result is zero, SM600 is ON. Example 1 1. When M0 is ON, the instruction converts the decimal floating-point number in the register in (D1, D0) into the single-precision floating-point number, and stores the conversion result is stored in (D3, D2).

6-102 API Instruction code Operand Function 0213 FBIN P S, D Converting a decimal floating-point number 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 ES3 - ES3