Chapter 6 Instruction Details
XBC E-Type Main Unit
6-169
Ver. 1
6.28.9 RADD, RADDP, LADD, LADDP
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)
RADD(P)
LADD(P)
S1 O O O O O O O - O -
- O O O O O
4~8
O
-
-
S2 O O O O O O O - O -
- O O O O O
D O O O - O O O - O -
-
- O O O O
Operand
Description
Data Type
S1
Data to be added to S2
REAL/LREAL
S2
Data to be added to S1
REAL/LREAL
D
Address to save operation result in
REAL/LREAL
[Flag Set]
Flag
Description
Device
Number
Error
To be set if FPU operation error flag of F0057E, F0057C, F0057B or F0057A is
set.
F110
1) RADD (Real Add)
(1) Saves the result of specified real number S1 and S2 added up in D area in real number. (real number is
occupied in 2-word)
(2) The range of operand’s value is as follows;
± 2
-126
≤ | Operand | < ± 2
128
If the result of operand’s value exceeds the range, operation error will occur. However, specific
value may be assigned there to keep continuous operation.
P00001
M0008
M0004
M0000
RADD
2) LADD (Long Real Add)
(1) Saves the result of specified Long Real number S1 and S2 added up in D area in Long Real number. (Long
Real number is occupied in 4-word)
(2) The range of operand’s value is as follows.
± 2
-1022
≤ | Operand | < ± 2
1024
If the result of operand’s value exceeds the range, operation error will occur. However, specific value
may be assigned there to keep continuous operation.
P00001
M0008
M0004
M0000
LADD
RADD, LADD
P S1 S2
RADDP, LADDP
S1 S2
means
RADD/LADD
D
D
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...