![background image](http://html1.mh-extra.com/html/ls-industrial-systems/xbc-dn10e/xbc-dn10e_user-manual_1943831419.webp)
Chapter 6 Instruction Details
XBC E-Type Main Unit
6-302
Ver. 1
6.43 Sign Reverse Instruction
6.43.1 NEG, NEGP, DNEG, DNEGP
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)
NEG(P)
DNEG(P)
D
O O O
-
O
-
-
-
O
-
-
-
O O O O
2
-
-
-
Operand
Description
Data Type
D
Area to convert signs
WORD/DWORD
1) NEG (Negative)
(1) Converts the sign of the value in specified area D to save in D area.
(2) View Monitoring Option is available for monitoring, if signed, and the value converted to negative is
used only in Signed Operation.
P00001
NEGP D00010
Classification
Before executed
After executed
Area
D0010
D0010
Data
-00030(hFFE2)
00030(h001E)
2) DNEG( Double Word Negative )
(1) Changes the sign of the value saved in D, D+1 and saves in D, D+1.
(2) View Monitoring Option is available for monitoring, if signed, and the value converted to negative is
used only in Signed Operation.
P00001
DNEGP D00010
Classification
Before executed
After executed
Area
D0010, D0011
D0010, D0011
Data
-30 (hFFFFFFE2)
30 (h0000001E)
3) Program Example
(1) Where D0020 value converted to negative and operated as signed.
M00000
NEGP D00020
MULP D00020 2 D10000
NEG, DNEG
means NEG / DNEG
P
NEGP, DNEGP
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...