
Chapter 6 Instruction Details
XBC E-Type Main Unit
6-111
Ver. 1
6.21.3 R2I, R2IP, R2D, R2DP
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)
R2I(P)
R2D(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
Area Number where Real number is saved, or Real number
REAL
D
Device Position to save data converted to Real Data Format
INT/DINT
[Flag Set]
Flag
Description
Device Number
Error
When R2I Instruction used and S specified Single Real Number is out of
-32,768~32,767 range.
When R2D Instruction used and S specified Single Real Number is out of
-2,147,483,648 ~2,147,483,647 range.
F110
1) R2I (Real to Integer)
(1) R2I converts S+1,S specified Real Number(32-bit) to 16-bit Integer data to save in D.
(12345.678)
S+1, S
b15
b0
hE6B6
h4640
b31
h303A
(12346)
b0
b15
D
(2) If S+1,S specified Real Number value exceeds -32,768~32,767 range, operation error occurs.
The result of 32,767 will be saved if input value is bigger than 32,767, and -32,768 will be saved if input value
is smaller than -32,768.
(3) Value of below decimals will be omitted after rounding off the nearest integer.
2) R2D (Real to Double Integer)
(1) R2D converts S+1,S specified 32-bit Integer data to Long Real Number(32-bit) and saves in D+1,D.
(123456.78)
S+1, S
b15
b0
h2065
h47F1
b31
(123457)
b0
b15
D+1, D
h0001
hE241
b31
(2) If S+1,S specified Real Number’s value exceeds -2,147,483,648~2,147,483,647 range, operation error
occurs. The result of 2,147,483,647 will be saved if Real value is bigger than 2,147,483,647, and -
2,147,483,648 will be saved if Real value is smaller than -2,147,483,648.
(3) Value of below decimals is will be omitted after rounding off the nearest integer.
R2I,
R2D
means
P S
D
R2IP,
R2DP
S
D
Содержание XBC-DN10E
Страница 1: ......
Страница 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...
Страница 52: ...Chapter 3 Installation and Wiring XBC E Type Main Unit 3 24 Ver 1 3 7 2 XBC DR10E 4 point relay output...
Страница 54: ...Chapter 3 Installation and Wiring XBC E Type Main Unit 3 26 Ver 1 3 7 3 XBC DN10E 4 point transistor output...
Страница 56: ...Chapter 3 Installation and Wiring XBC E Type Main Unit 3 28 Ver 1 3 7 4 XBC DR14E 6 point relay output...
Страница 58: ...Chapter 3 Installation and Wiring XBC E Type Main Unit 3 30 Ver 1 3 7 5 XBC DN14E 6 point transistor output...
Страница 60: ...Chapter 3 Installation and Wiring XBC E Type Main Unit 3 32 Ver 1 3 7 6 XBC DR20E 8 point relay output...
Страница 62: ...Chapter 3 Installation and Wiring XBC E Type Main Unit 3 34 Ver 1 3 7 7 XBC DN20E 8 point transistor output...
Страница 64: ...Chapter 3 Installation and Wiring XBC E Type Main Unit 3 36 Ver 1 3 7 8 XBC DR30E 12 point relay output...
Страница 66: ...Chapter 3 Installation and Wiring XBC E Type Main Unit 3 38 Ver 1 3 7 9 XBC DN30E 12 point transistor output...