Complement Of 2 Of Bin 16- And 32-Bit Data (Sign Reversal) (Neg(P),Dneg(P)) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

6.3.11
Complement of 2 of BIN 16- and 32-bit data (sign reversal)
(NEG(P),DNEG(P))
NEG(P),DNEG(P)
NEG, DNEG
NEGP, DNEGP
Setting
Data
D
Function
NEG
(1) Reverses the sign of the 16-bit device designated by
by
D
Before execution
Sign conversion
After execution
(2) Used when reversing positive and negative signs.
Command
Command
: Head number of the devices where the data for which complement of 2 is performed is stored
D
(BIN 16/32 bits)
Internal Devices
R, ZR
Bit
Word
.
b15
D
1
0
1
0
0
1
0
b15
0
1
D
High
Basic
performance
indicates an instruction symbol of
J
\
U
\G
Bit
Word
and stores at the device designated
D
16 bit
1
0
1
0
1
0
1
0
0
0
0
0
0
0
0
0
1
0
1
0
1
0
1
0
0
1
0
1
0
1
0
1
NEG(P),DNEG(P)
Process
Redundant Universal
NEG/DNEG.
D
P
D
Zn
Constants
––
b0
-21846
1
0
1
0
1
0
0
0
0
0
0
0
1
0
1
0
1
0
b0
0
1
0
1
1
0
21846
1
2
LCPU
3
4
4
6
Other
7
8
6-95

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents