Mitsubishi Electric M800VW Series Programming Manual page 229

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.2 Arithmetic Operation Instructions
NEG, NEGP, DNEG, DNEGP: Complement of 2 of BIN 16-bit data and BIN 32-bit data (sign reversal)
Setting
Bit devices
data
X
Y
M
L
F
D
△ : This is not available with DNEG (P).
[Instruction symbol] [Execution condition]
NEG, DNEG
NEGP, DNEGP
 Setting data
Setting data
D
Head No. of the device where the data for the complement of 2 operation is stored.
 Functions
NEG
 Reverses the sign of the 16-bit device designated by "D" and stores at the device designated by "D".
Before execution
D
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Sign conversion
After execution
D
 Used when reversing positive and negative signs.
IB-1501667-B
Usable devices
B SB
T SM V
T
C
Command
Command
Meaning
16 Bit
b15
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
b15
0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0
Con-
Word devices
stant
D
R/ZR W SW SD
Z
K
b0
-21846
b0
21846
208
Digit
Pointer
designa-
Index
tion
H
P
indicates the signs NEG/DNEG
D
P
D
Data type
BIN 16/32 bits

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents