6 BASIC INSTRUCTIONS
6.7 Data Transfer Instructions
501
6
Inverting and transferring 1-bit data
CMLB(P)
These instructions invert the specified bit data, and transfer the inverted data.
■Execution condition
■Description, range, data type
■Applicable devices
• These instructions invert the bit data in the device specified by (s), and transfer the inverted data to the device specified by
(d).
Ladder ST
ENO:=CMLB(EN,s,d);
ENO:=CMLBP(EN,s,d);
FBD/LD
Instruction Execution condition
CMLB
CMLBP
Operand Description Range Data type Data type (label)
(s) Inversion target data or the number of the device where the
inversion target data is stored
Bit ANY_BOOL
(d) Transfer destination device number Bit ANY_BOOL
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(s)
(d)
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)
11
01
(d) (s)
Before
transfer
After
transfer
The bit is inverted and transferred.