EasyManua.ls Logo

LS Industrial Systems XBC-DR10E - Page 233

LS Industrial Systems XBC-DR10E
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-116 Ve r. 1
6.21.6 L2R, L2RP
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)
L2R(P)
S
O
O
O
O
O
O
O
-
-
-
-
O
O
O
O
O
2~4 O - -
D
O
O
O
-
O
O
O
-
-
-
-
-
O
O
O
O
Operand
Description
Data Type
S/D
Area Number where Long Real Data is saved
LREAL
Area Number where Real Data is saved
REAL
[Flag Set]
Flag Description
Device
Number
Error
To be set, in case of FPU operation error flag F0057E, F0057C, F0057B,
F0057A are Set.
F110
1) L2R (Long real to Real)
(1) L2R(P) converts S+3,S+2,S+1,S specified Long Real Number to Real to save in D+1, D.
(2) If S+3,S+2,S+1,S specified Long Real Number’s value exceeds Real Number’s range, operation error occurs.
Long Real Number’s range is | 2-1022 to 21023 | , Real Number’s range is | 2-126 to 2127 |.
2) Program Example
(1) Long Real data from D1000~D1003=13456.6 is saved, If Input signal P0000 is On, Real data of 13456.6 is
converted and it is saved in P1100.
L2
R D1000 P1100
P00000
L2R
means L2R
P
S
D
L2RP
S
D
0x4167
S+2S+3
b63 b48
0x8C29 0x DCD6
SS+1
b32 b0b16
0xE8B0
( 12345678. 901234)
( 12345678. 901234)
b0b15
D+1, D
0x4B3C
0x614E
b31

Table of Contents

Related product manuals