Mitsubishi Electric MELDAS C6 Programming Manual page 205

Hide thumbs Also See for MELDAS C6:
Table of Contents

Advertisement

DNEG, DNEGP ... Complement of 2 (BIN 32-bit data)
Bit device
X
Y M
L
F
B SB T SM V T
D
DNEG
DNEGP
Function
(1) The 32-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
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0
After execution D
(2) This is used to use a negative BIN value as an absolute value.
Execution conditions
The execution conditions for DNEG, DNEGP commands are as follow.
Complement of 2
execution command OFF
DNEG
DNEGP
8. Function Commands
DNEG, DNEGP
Usable device
Word device
C D R W SW Z SD K
Complement of 2 execution command
ON
Executed per scan
- 196 -
Get other manuals https://www.bkmanuals.com
Con-
Pointer
desig-
stant
nation
H
P
DNEG
D
DNEGP D
Setting data
Head No. of device where
D
data to be complemented
by 2 is stored.
32 bit
Reversal
+1
Executed per scan
Digit
No. of
Index
steps
2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64

Table of Contents