6.4
Bit Processing Instructions
Setting a bit in the word device
BSET(P)
RnPCPU
RnCPU RnENCPU
(Process)
These instructions set the 'n'th bit in the specified word device to 1.
Ladder
(d)
FBD/LD
EN
ENO
n
d
■Execution condition
Instruction
BSET
BSETP
Setting data
■Description, range, data type
Operand
Description
(d)
Set target device
(n)
Set target bit position
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB,
FX, FY
(d)
(n)
6 BASIC INSTRUCTIONS
340
6.4 Bit Processing Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(n)
Execution condition
Word
J\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
ST
ENO:=BSET(EN,n,d);
ENO:=BSETP(EN,n,d);
Range
0 to 15
Double word Indirect
U\G, J\,
Z
LT, LST,
U3E\(H)G
LC
Data type
Data type (label)
16-bit signed binary
ANY16
16-bit unsigned binary
ANY16
Bit
BOOL
Bit
BOOL
Constant
specification
LZ
K, H E
Others
$