7-60
BSET(P),BRST(P)
Operation Error
(1) There are no operation errors associated with the BSET(P) or BRST(P) instructions.
Program Example
(1) The following program resets the 8th bit of D8 (b8) to 0 when XB is OFF, and sets the 3rd bit
of D8 (b3) to 1 when XB is ON.
[Ladder Mode]
[List Mode]
[Operation]
Remark
Bit set or reset of word devices can also be conducted by bit designation of word
devices.
• For the bit specification for word devices, link direct devices, refer to the
QnUCPU User’fs Manual(Function Explanation, Program Fundamentals) or
Qn(H)/QnPH/QnPRHCPU User’s Manuall(Function Explanation, Program
Fundamentals)
The processing of program example (1) would be conducted as shown below if bit
designation of a word device had been used:
Resets b8 of D8.
Sets b3 of D8.
Step Instruction Device
0 0 110 1 0111110001D8
b15 b8 b0b3
Before execution
0 0
11
0
1
00
1
1111
00
1D8
b15 b8 b0b3
A
fter execution
When XB turns OFF.
When XB turns ON.
XB
XB
D8.3
D8.8
SET
RST
Resets b8 of D8.
Designation of b8 of D8
Sets b3 of D8.
Designation of b3 of D8