Chapter 6 Instruction Details
XBC E-Type Main Unit 6-109 Ve r. 1
6.21 Convert Real Instruction
6.21.1 I2R, I2RP, I2L, I2LP
Instruction
Step
P M K F L T C S Z D.x
U N D R
2~4 - - -
Operand Description Data Type
Area Number where Integer Data is saved, or Integer Data
Device Position to save data converted to Real Data Format
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.