Chapter 6 Instruction Details
XBC E-Type Main Unit
6-109
Ver. 1
6.21 Convert Real Instruction
6.21.1 I2R, I2RP, I2L, I2LP
Instruction
Area Available
Step
Flag
P M K F L T C S Z D.x R.x
Co
nst.
U N D R
Error
(F110)
Zero
(F111)
Carry
(F112)
I2R(P)
I2L(P)
S O O O O O O O -
-
-
- O O O O O
2~4
-
-
-
D O O O - O O O -
-
-
-
- O O O O
Operand
Description
Data Type
S
Area Number where Integer Data is saved, or Integer Data
INT
D
Device Position to save data converted to Real Data Format
REAL/LREAL
1) I2R (Integer to Real)
(1) Converts specified S 16-Bit Integer data to Single Real (32-Bit) and saves in D+1, D.
2) I2L (Integer to Long real)
(1) Converts specified S 16-Bit Integer data to Long Real (64-Bit) and saves in D+3,D+2,D+1,D.
3) Program Example
(1) If Input signal P0000 is On, It converts Integer ‘1234’ to Real and saves in 2 word data area from D1200
to D1201.
12R 1234 D1200
P00000
I2R,
I2L
means
P S
D
I2RP,
I2LP
S
D
(1234)
S
h04D2
h4000
h449A
D
D+1
b15
b0
b31
b0
b15
h0000
h0000
h4800
h4093
(1234)
S
h04D2
D
D+3
b15
b0
b63
b32
b48
b0
b16
D+2
D+1
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...