Mitsubishi Electronics FX3G Video Gaming Accessories User Manual


 
334
FX3G/FX3U/FX3UC Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.10 FNC 49 – FLT / Conversion to Floating Point
Program example
1. Arithmetic operations by binary floating point operations
The sequence program shown below is constructed as follows:
1) Calculation example
2) Sequence program
(D 0)
÷
(X017 to X010)
16-bit binary 2-digit BCD
×
K34.5
(D 11, D 10) Binary floating point
operation
(D 21, D 20)
Binary floating
point operation
(1) (2)
(D 22)
BIN
(D 25, D 24)
Binary floating
point operation
(3)
(D 29, D 28)
Binary floating
point operation
(5)
(D 27, D 26)
Binary floating
point operation
(4)
(6)
(D 13, D 12)
Scientific notation operation
for monitoring
(D 15, D 14)
32-bit binary integer
(7)
(8)
M8000
FNC 49
FLT
D 0 D 20
FNC 19
BIN
K2X010 D 22
FNC 49
FLT
D 22 D 24
FNC 123
DEDIV
D 20 D 24 D 28
FNC 122
DEMUL
D 28 D 26 D 10
FNC 118
DEBCD
D 10 D 12
FNC 129
DINT
D 10 D 14
(D 0)
(D21, D20)
BIN Binary floating point operation
(X017 to X010)
(D22)
BCD BIN
(D22)
(D25, D24)
BIN Binary floating point operation
(D21, D20)
÷
(D25, D24)
(D29, D28)
(D29, D28)
×
(D27, D26)
(D11, D10)
Binary floating point multiplication
(D11, D10)
(D13, D12)
(D11, D10)
(D15, D14)
(1)
(2)
(3)
(5)
(6)
(7)
(8)
FNC 123
DEDIV
K345 K 10 D 26
(4)
K345
÷
K 10
(D27, D26)
Binary floating point operation
Binary floating point
division
Binary floating point
operation
Binary floating
point operation
Scientific notation operation
for monitoring
Binary floating
point operation
32-bit binary integer