8 Application Instructions API 100-149 API 119 Operands: S : Source D : Result Explanations: 1. See the specifications of each model for their range of use. 2. Flag: M1020 (zero flag) 3. This instruction converts decimal floating point value in the register designated by S into binary floating point value and stores it in the register designated by D . 4. DEBIN instruction is exclusively for converting floating points from decimal to binary. 5. Range of decimal floating point real numbers: -9.999 ~ +9,999. Range of exponants: -41 ~ +35. Range of PLC decimal floating points: ±1,175 Ч 10 -41 ~ ±3,402 Ч 10 +35 . 6. If the result = 0, the zero flag M1020 = On. Program Example 1:
When X1 = On, the decimal floating points in D1 and D0 will be converted into binary floating points and stored in D3 and D2. X1 Real number Exponent Real number [D1] * 10 [D0] Decimal Floating Point Exponent Binary Floating Point 23 bits for real number, 8 bits for exponent 1 bit for symbol bit DVP-PLC Application Manual 8-33 Mnemonic Operands Function D EBIN P Scientific to Float Conversion Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F DEBIN, DEBINP: 9 steps S * D * PULSE 16-bit 32-bit EH3 ES EX SS SA SX SC EH SV EH3 SV2 ES EX SS EH3 ES EX SS SA SX SC EH SV SA SX SC EH SV SV2 SV2 DEBIN D0 D2 D1 D0 D3 D2