6 Application Instructions API 00-49 5. If 32-bit register D0 (D1) = K100,000, X11 will be On. The 32-bit value of the converted floating point will be H47C35000 and stored in 32-bit register D20 (D21). M1002 X10 X11 Program Example 2: 1. When M1081 = On, the binary floating point value is converted into BIN integer (the decimal is left out). 2. When X10 = On, D0 and D1 (binary floating point value) are converted into D12 (BIN integer). If D0 (D1) = H47C35000, the floating point value will be presented as 100,000. Due to that the value is larger than the value presentable by the 16-bit register D12, the result will be D12 = K32, 767 and M1022 = On. 3.
When X11 = On, D1 and D0 (binary floating point value) are converted into D21 and D20 (BIN integer). If D0 (D1) = H47C35000, the floating point value will be presented as 100,000. The result will be stored in the 32-bit register D20 (D21). Program Example 3: Please use this instruction to complete the following operation.
(D10) (X7~X0) K61.5 (D21,D20) 16 BIN -bit 2-digit BCD 6 binary floating point 7 1 2 4 5 decimal floating point (for ) monitoring (D31,D30) binary floating point binary floating point (D101,D100) (D200) BIN (D301,D300) 8 (D41,D40) 3 32 integer -bit binary floating point (D203,D202) binary floating point (D401,D400) DVP-PLC Application Manual 6-75 RST M1081 FLT D0 D12 DFLT D0 D20 M1 X FLT D0 D12 X SET M1081 DFLT D0 D20