Delta DVP-ES2 User Manual Page 232

  • Download
  • Add to my manuals
  • Print
  • Page
    / 702
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 231
DVP-ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming
3-116
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 pointBinary floating point
Binary floating point
Binary floating point
Decimal floating point
(for monitoring)
32-bit integer
Page view 231
1 2 ... 227 228 229 230 231 232 233 234 235 236 237 ... 701 702

Comments to this Manuals

No comments