![LS Industrial Systems XBC-DN10E User Manual Download Page 287](http://html1.mh-extra.com/html/ls-industrial-systems/xbc-dn10e/xbc-dn10e_user-manual_1943831287.webp)
Chapter 6 Instruction Details
XBC E-Type Main Unit
6-170
Ver. 1
6.28.10 RSUB, RSUBP, LSUB, LSUBP
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)
RSUB(P)
LSUB(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 subtracted from S2
REAL/LREAL
S2
Data to be subtracted from 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) RSUB (Real Subtract)
(1) Saves the result of specified real number S1 minus S2 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
RSUB
2) LSUB (Long Real Subtract)
(1) Saves the result of specified Long Real number S1 minus S2 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
LSUB
RSUB, LSUB
P S1 S2
RSUBP, LSUBP
S1 S2
means
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...