Mitsubishi MELSEC Q Series Programming Manual page 434

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

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]
Step
[Operation]
Before execution
After execution
Remark
7-60
Instruction
Device
b15
b8
D8
0 0 1 1 0 1 0 1 1 1 1 1 0 0 0 1
When XB turns OFF.
b15
b8
D8
0 0 1 1 0 1 0 0 1 1 1 1 1 0 0 1
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:
XB
XB
Resets b8 of D8.
Sets b3 of D8.
b3
b0
When XB turns ON.
b3
b0
RST
D8.8
SET
D8.3
Resets b8 of D8.
Designation of b8 of D8
Sets b3 of D8.
Designation of b3 of D8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents