Mitsubishi Electric MELDAS 60 Series Programming Manual page 152

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

Advertisement

NEG ... Complement of 2 (BIN 16-bit data)
Bit device
X
Y
M
L SM F
D
NEG
Function
(1) The 16-bit data of the device designated with D is reversed and incremented by one, and then
stored in the device designated with D.
Before execution D
After execution D
(2) This is used to use a negative BIN value as an absolute value.
Execution conditions
The execution conditions for NEG are as follow.
Complement of 2
execution command OFF
NEG
Usable device
Word device
T
C
D
R
Z
Complement of 2 execution command
1
0
1
0
1
0
1
0
1
0
0
1
0
1
0
ON
Executed per scan
- 144 -
Con-
Pointer
Level
stant
K
H
P
NEG
Setting data
No. of device where data to
D
be complemented by 2 is
stored.
16-bit
0
1
0
1
0
1
Reversal
1
0
1
0
1
0
+1
1
0
1
0
1
0
Executed per scan
NEG
Digit
No. of
desig-
steps Index
nation
N
2
D
0
1
0
1
0
1
0
1
0
1
1
0
1
1
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents