302
6 BASIC INSTRUCTIONS
6.6 Data Transfer Instructions
Inverting and transferring 1-bit data
CMLB(P)
These instructions invert the bit data in the device specified by (s), and transfer the result into the device specified by (d).
■Descriptions, ranges, and data types
■Applicable devices
*1 T, ST, C cannot be used.
These instructions invert the bit data in the device specified by (s), and transfer the result in the device specified by (d).
There is no operation error.
Ladder diagram Structured text
ENO:=CMLB(EN,s,d);
ENO:=CMLBP(EN,s,d);
Operand Description Range Data type Data type (label)
(s) Transfer-source data Bit ANY_BOOL
(d) Transfer-destination data Bit ANY_BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(s)
*1
(d)
*1
11
01
(d) (s)
∙∙∙
∙∙∙
Before transfer
After transfer
Bit inverted transfer