7 APPLICATION INSTRUCTIONS
7.4 Bit Processing Instructions
413
7
• There is no operation error in the BSET(P) or BRST(P) instruction.
• 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.
Bit set or reset of word devices can also be conducted by bit designation of word devices.
For the bit specification for word devices, refer to the User's Manual (Function Explanation, Program
Fundamentals) for the CPU module used.
The processing of program example would be conducted as shown below if bit designation of a word device
had been used:
[Ladder Mode]
[List Mode]
[Operation]
Resets b8 of D8.
Sets b3 of D8.
0 0 110 1 0111110001D8
b15 b8 b0b3
Before execution
0 0
11
0
1
00
1
1111
00
1D8
b15 b8 b0b3
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