EasyManua.ls Logo

LS Industrial Systems XBC-E Series - Page 227

LS Industrial Systems XBC-E Series
542 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 6 Instruction Details
XBC E-Type Main Unit 6-110 Ve r. 1
6.21.2 D2R, D2RP, D2L, D2LP
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)
D2R(P)
D2L(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 Double Integer Data is saved, or Double Integer Data
DINT
D
Device Position to save data converted to Real Data Format
REAL/LREAL
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.
.
D2R P1000 P1100
P00000
D2R,
D2L
means
P
S
D
D2RP,
D2LP
S
D
(12345678)
S+1,S
h614E
h00BC
D
D+1
b31
b0
b15
h614E
h4B3C
b31
b0
b15
(12345678)
S+1,S
h614E
h00BC
D
D+3
b31
b0
b15
h8C29
h4167
b63
b32
b48
hC000
h0000
b16
b0
D+2
D+1

Table of Contents

Related product manuals