Delta DVP-ES2 User Manual
Page 232
D V P - E S 2 / E X 2 / S S 2 / S A2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g
3 - 11 6
M1002
RST
M1081
X20
FLT
D0
D12
X21
DFLT
D0
D20
Program Example 2:
1.
When M1081 = ON, the source data is converted from floating point value to BIN integer.
(Decimal ignored)
2.
When X20 = ON, D1 and D0 (floating point) are converted to D12 (BIN integer). If D0 (D1) =
H47C35000, the result will be 100,000 which exceeds the available range of BIN integer in
16-bit register D12. In this case the result will be D12 = K32767, and M1022 = ON
3.
When X21 = ON, D1 and D0 (floating point) are converted to D21, D20 (BIN integer). If D0
(D1) = H47C35000, the result is 100,000 and will be saved in 32-bit register D20 (D21).
M1002
SET
M1081
X20
FLT
D0
D12
X21
DFLT
D0
D20
Program Example 3:
Apply FLT instruction to complete the following operation
(D10) (X7~X0)
K61.5
16-bit BIN
2-digit BCD
(D21,D20)
(D101,D100) (D200) BIN
(D203,D202)
(D301,D300)
(D401,D400)
(D31,D30)
(D41,D40)
1
2
3
4
5
6
7
8
Binary floating point
Binary floating point
Binary floating point
Binary floating point
Binary floating point
Decimal floating point
(for monitoring)
32-bit integer