16-Bit And 32-Bit Negation Transfers (Cml(P), Dcml(P)) - Mitsubishi MELSEC QS Series Programming Manual

Hide thumbs Also See for MELSEC QS Series:
Table of Contents

Advertisement

6.4.2

16-bit and 32-bit negation transfers (CML(P), DCML(P))

CML(P), DCML(P)
CML, DCML
CMLP, DCMLP
Function
CML
(1) Inverts 16-bit data designated by
designated by
Before
execution
After
execution
DCML
(1) Inverts 32-bit data designated by
designated by
Before
execution
After
execution
Operation Error
(1) There are no operation errors associated with the CML(P) or DCML(P) instructions.
Command
Command
: Data to be reversed or the number of the device where data to be reversed is stored (BIN 16/32 bits)
S
: Number of the device where the reversing result will be stored (BIN 16/32 bits)
D
Internal Devices
Set
Data
Bit
Word
D
S
.
D
b15
S
1
0
1
1
0
1
0
b15
D
0
1
0
0
1
0
1
S
.
D
S
+1
b15
S
1
0
1
1
0
1
D
+1
b15
D
0
1
0
0
1
0
6.4.2 16-bit and 32-bit negation transfers (CML(P), DCML(P))
Constants
Others
K, H
––
––
––
bit by bit, and transfers the result to the device
b0
0
0
1
1
1
0
0
1
Inversion
1
1
0
0
0
1
1
0
bit by bit, and transfers the result to the device
S
b0
b15
0
0
0
1
1
1
0
Inversion
D
b0
b15
1
1
1
0
0
0
1
6.4 Data Transfer Instructions
CML(P), DCML(P)
indicates "CML / DCML".
S
D
S
D
P
0
b0
1
b0
0
1
0
b0
1
0
1
6
6-31

Advertisement

Table of Contents
loading

Table of Contents