Chapter 6 Instruction Details
XBC E-Type Main Unit
6-303
Ver. 1
6.43.2 RNEG, RNEGP, LNEG, LNEGP
Instruction
Area Available
Step
Flag
P M K
F
L
T
C
S
Z D.x R.x
Con
st
U
N
D
R
Error
(F110)
Zero
(F111)
Carry
(F112)
RNEG(P)
LNEG(P)
D
O O O
-
O
-
-
-
O
-
-
-
O O O O
2
-
-
-
Operand
Description
Data Type
D
Area to convert signs
REAL/LREAL
1) RNEG (Real Negative)
(1) Converts the sign of the value in specified area D to save in D area.
(2) RNEG is used to reverse the single real number sign.
Before executed
After executed
-3.383240094
3. 383240094
P00003
M0000
RNEG
2) LNEG (Double real Negative)
(1) Converts the sign of the value in specified area D to save in D area.
(2) LNEG is used to reverse the double real number sign.
Before executed
After executed
-3.3832400941234567
3. 3832400941234567
P00003
M0000
LNEG
3) Program Example
RNEG P1000
P00000
RNEG, LNEG
means RNEG/LNEG
P
LNEGP, LNEGP
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...