Mitsubishi Electric M800VW Series Programming Manual page 315

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.8 Bit Processing Instructions
BRST
 Resets (sets "0" at) the nth bit in the word device designated by (D).
 If n exceeds "15", bit set/reset is executed with the lower 4 bits of the data.
Before execution
D10
D10
After execution
 Operation errors
 There are no arithmetic errors associated with BSET(P) or BRST(P) instructions.
 Program example
 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.
X0B
BRSTP D8 K8
0
X0B
BSETP D8 K3
4
10
Before execution
After execution
POINT
Bit set or reset of word devices can also be performed by bit designation of word devices. For bit designation of word devices,
refer to "6.3.2 Word (16 Bits) Data".
The processing of the program example would be performed as shown below if bit designation of a word device had been used:
X0B
RST D8.8
X0B
SETD8.3
IB-1501667-B
BRSTP
b15
b11
1
1
0
0
1
0
1
1
0 0 1 1
b15
b11
1
1
0
0
0
0
1
1
0 0 1 1
0 is set
[Ladder mode]
Resets b8 of D8.
Sets b3 of D8.
END
[Operation]
b15
D8
0
0
1
1
0
1
0
When XB turns OFF.
b15
D8
0
0
1
1
0
1
0
Resets b8 of D8.
Designation of b8 of D8
Sets b3 of D8.
Designation of b3 of D8
D10
K11
b1b0
1
0
1
1
b1b0
1
0
1
1
Steps
0
1
4
5
8
b8
b3
b1b0
1
1 1 1 1
0
0
0
1
When XB turns ON.
b8
b3
b1b0
0
1 1 1 1
1
0
0
1
294
[List mode]
Inst.
Device
LDI
X0B
BRSTP
D8
K8
LD
X0B
BSETP
D8
K3
END

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents