3 . I n s t r u c t i o n S e t
M N050 03003E F or mo re infor ma tio n vi sit:
w w w. e a t o n . c o m
3-107
Program Example 2:
1.
When M1081 = ON, the source data is converted from floating point to integer. (ignore the
decimal point)
2.
When X20 = ON, D1, D0 (floating point value) is converted to D12 (16-bit integer). If D1 (D0)
=H47C35000, the floating point result is 100,000. The result will be D12=K32,767,
M1022=ON, since the value exceeds the max value of the 16-bit register D12.
3.
When X21 = ON, D1, D0 (floating point value) is converted to D21, D20 (32-bit integer). If D1,
D0=H47C35000, the floating point result is 100,000. The result will be saved in 32-bit register
D21, D20.
M1002
SET
M1081
X20
FLT
D0
D12
X21
DFLT
D0
D20
Program Example 3:
(D10) (X7~X0)
K61.5
16 bit BIN
2 bit 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 monitor)
32 bit integer
M1000
FLT
D10
D100
BIN
K2X0
D200
FLT
D200
D202
DEDIV
K615
K10
DEDIV
D100
D202
DEMUL
D400
D300
DEBCD
D20
D30
DINT
D20
D40
D300
D400
D20
1
2
3
4
5
6
7
8
Содержание ELC-PB
Страница 1: ......
Страница 5: ...For more information visit www eaton com MN05003003E iv...
Страница 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Страница 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Страница 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Страница 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...