Chapter 6 Instruction Details
XBC E-Type Main Unit 6-110 Ve r. 1
6.21.2 D2R, D2RP, D2L, D2LP
Instruction
Step
P M K F L T C S Z D.x
R.x
U N D R
2~4 - - -
Area Number where Double Integer Data is saved, or Double Integer Data
Device Position to save data converted to Real Data Format
1) D2R (Double Integer to Real)
(1) D2R(P) converts S+1,S specified 32-Bit Double Integer data to Real Number(32-Bit) and saves in D+1, D.
(2) If 32-bit Interger data value exceeds valid range (24-bit) of Floating point Real data, accuracy becomes lower
and inaccuracy error flag (F0057A) is set. PLC operation status does not change.
2) D2L (Double Integer to Long real)
(1) D2L(P) converts S+1,S specified 32-Bit Double Integer data to Long Real number (64-Bit) to save in
D+3,D+2,D+1,D.
3) Program Example
(1) In case of Double Integer data ‘812121’ is saved in 2 Word data area from P1000 to P1001. If Input signal
P00000 is On, Double Integer data ‘812121’ is converted to Real data in 2 Word area from P1100 to P1101.
.