Complement Of 2 Of Bin 16- And 32-Bit Data (Sign Reversal) (Neg, Negp, Dneg, Dnegp) - Mitsubishi MELSEC QCPU Programming Manual

Programmable logic controller
Table of Contents

Advertisement

6 BASIC INSTRUCTIONS
6.3.9 Complement of 2 of BIN 16- and 32-bit data (sign reversal)
(NEG, NEGP, DNEG, DNEGP)
Internal Devices
Set
(System, User)
Data
Bit
Word
D
[Instruction Symbol] [Execution Condition]
NEG, DNEG
NEGP, DNEGP
[Set Data]
Set Data
D
[Functions]
NEG
(1) Reverses the sign of the 16-bit device designated by
D
.
Before execution
Sign conversion
After execution
(2) Used when reversing positive and negative signs.
6 - 71
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
MELSECNET/10(H)
File
Direct J \
Register
Bit
Command
Command
Head number of device storing data for the complement of 2 operation
b15- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -b0
1
0
1
0
1
0
D
1
0
0
0
0
0
0
1
0
1
0
1
0
-
b15- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -b0
0
1
0
1
0
1
D
QCPU
PLC CPU
Basic
High Performance
Usable Devices
Special
Function
Module
Word
U \G
indicates NEG or DNEG
Meaning
and stores at the device designated by
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
MELSEC-Q/QnA
QnA
Process CPU
Index
Constant
Register
Other
K, H
Zn
D
P
D
Data Type
BIN 16/32 bits
.............
1
0
-21846
0
0
1
0
.............
0
1
21846
6 - 71
Q4AR

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents