Inverting And Transferring 16-Bit Binary Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Motion module instructions, standard functions/ function blocks
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Inverting and transferring 16-bit binary data

CML
This instruction inverts the specified 16-bit binary data bit by bit, and transfer the inverted data.
ST
ENO:=CML(EN,s,d);
■Execution condition
Instruction
CML
Setting data
■Description, range, data type
Operand
Description
(s)
Inversion target data or the number of the device where the inversion
target data is stored
(d)
Number of the device for storing the inverted data
EN
Execution condition
ENO
Execution result
■Applicable devices/labels
Operand
Bit
SB
(s)
(d)
Processing details
• This instruction inverts the 16-bit binary data in the device specified by (s) bit by bit, and transfer the inverted data to the
device specified by (d).
• If (s) is a digit-specified bit device, the digit-specified bits are targeted. If data specified by (s) is less than 16 bits, 0s are
added and inverted.
b15
(s)
(1)
b15
(d)
1
1
1
1
1
(1) If data specified by (s) is less than 16 bits, 0s are added and inverted.
Operation error
There is no operation error.
6 BASIC INSTRUCTIONS
88
6.4 Data Transfer Instructions
Execution condition
RX, RY, LB
∙∙∙
b7
0
1
1
1
0
∙∙∙
b8
b7
1
1
1
1
0
0
0
1
Range
-32768 to 32767
Word
SW
b0
0
1
0
b0
1
0
1
Data type
ANY16
ANY16
BOOL
BOOL
Constant
G, RWw, RWr, LW
K, H

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents