7. APPLICATION INSTRUCTIONS
7
−
53
MELSEC-A
BRST
(1) Resets (0) the "n"th bit of word device specified at (D).
(2) For "n", 0 to 15 are effective. When 15 is exceeded, the instruction is executed
at the lower four bits.
Execution Conditions
Program Example BEST
,
BRST
Program which sets the 3rd bit and 8th bit of D19 when X18 turns on.
OFF
ON
Executed
per scan
Executed
per scan
Executed
only once
Executed
only once
Set Reset command
P
•
Coding
0 LDI
X00B
1 BRSTP D8
K8
8 LD
X00B
9 BSETP D8
K3
16
END
Before execution
After execution
When XB turns off
When XB
turns on
P
K
BRST D10
11
Before execution
After execution
Set to 0.
The 8th bit of D8 is reset.
The 3rd bit of D8 is set.
X00B
X00B
0
8
P
K
BRST D8
8
P
K
BSET D8
3
Summary of Contents for MELSEC-A series
Page 1: ......
Page 2: ......
Page 13: ...A 11 MEMO...
Page 505: ...APPENDICES APP 100 MELSEC A MEMO...
Page 507: ......
Page 508: ......