Mitsubishi — Chapter 8 Application Instructions API 100-149

8 Application Instructions API 100-149 Program Example 2: 1. Use FLT instruction (API 149) to convert BIN integer into binary floating point before performing floating point operation. The value to be converted must be BIN integer and use DEBIN instruction to convert the floating 2. When X0 = On, move K3,140 to D0 and K-3 to D1 to generate decimal floating point (3.14 = 3140 Ч 10 -3 ). point into a binary one. X0 K3140 D0 [D1] -3 K-3 D1 [D0] 3140 10 X 3140 10 X -3 (D1, D0) (D3, D2) Binary floating point Remarks: For floating point operations, see “5.3 Handling of Numeric Values”. DVP-PLC Application Manual 8-34 MOVP K3140 D0 MOVP K-3 D1 DEBIN D0 D2