16-Bit Data Negation Transfer, 32-Bit Data Negation Transfer - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

16-bit data negation transfer, 32-bit data negation transfer

CML(P), DCML(P)
High
Basic
Process
performance
CML, DCML
CMLP, DCMLP
(S): Data to be reversed or the number of the device where data to be reversed is stored (BIN 16/32 bits)
(D): Number of the device where the reversing result will be stored (BIN 16/32 bits)
Setting
Internal device
data
Bit
(S)
(D)
Processing details
■CML
• Inverts 16-bit data designated by (S) bit by bit, and transfers the result to the device designated by (D).
b15
Before execution
S
b15
D
After execution
■DCML
• Inverts 32-bit data designated by (S) bit by bit, and transfers the result to the device designated by (D).
Before execution
S
After execution
D
Operation error
• There is no operation error in the CML(P) or DCML(P) instruction.
6 BASIC INSTRUCTIONS
304
6.4 Data Transfer Instructions
Redundant Universal
LCPU
R, ZR
Word
1
0
1
1
0
1
0
0
1
0
0
1
0
1
S
+1
b15
1
0
1
1
0
1
D
+1
b15
0
1
0
0
1
0
Command
Command
J\
Bit
Word
0
0
1
1
1
0
0
1
Inversion
1
1
0
0
0
1
1
0
S
b0
b15
0
0
0
1
1
1
0
Inversion
D
b0
b15
1
1
1
0
0
0
indicates an instruction symbol of CML, DCML.
S
S
P
U\G
Zn
b0
0
b0
1
b0
0
1
0
b0
1
1
0
1
D
D
Constant
Others
K, H

Advertisement

Table of Contents
loading

Table of Contents