Mitsubishi Electric MELDAS C6 Programming Manual page 203

Hide thumbs Also See for MELDAS C6:
Table of Contents

Advertisement

NEG, NEGP ... Complement of 2 (BIN 16-bit data)
Bit device
X
Y M
L
F
B SB T SM V T
D
NEG
NEGP
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, NEGD commands are as follow.
Complement of 2
execution command OFF
NEG
NEGP
8. Function Commands
NEG, NEGP
Usable device
Word device
C D R W SW Z SD K
Complement of 2 execution command
1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
1
0
1
0
1
0
ON
Executed per scan
- 194 -
Get other manuals https://www.bkmanuals.com
Con-
Pointer
stant
H
P
NEG
D
NEGP D
Setting data
No. of device where data to
D
be complemented by 2 is
stored.
16 bit
0
1
0
1
0
1
0
Reversal
1
0
1
0
1
0
1
+1
1
0
1
0
1
0
1
Executed per scan
Digit
No. of
desig-
Index
steps
nation
2
1
0
0
1
1
0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64

Table of Contents