EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 415

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 APPLICATION INSTRUCTIONS
7.4 Bit Processing Instructions
413
7
Operation error
There is no operation error in the BSET(P) or BRST(P) instruction.
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.
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.
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

Table of Contents

Related product manuals