8. Function Commands
BSET, BSETP
- 298 -
{ BSET, BSETP ... Bit setting of word device
Usable device
Bit device Word device
Con-
stant
Pointer
X Y M L F BSB T SM VTCDRWSWZSDKH P
Digit
desig-
nation
Index
No. of
steps
D
{ { { { { { { {
{
n
{ {
2
BSET
Bit set command
n
D
BSET
BSETP
BSETP
nD
Setting data
D
No. of device to set
the bit.
Bit No. to be set.
n
Function
(1) The bit n of the word device designated with D is set to 1.
(2) The value 0 to 15 can be designated for n.
If n exceeds 15, the command is executed is executed with the low-order 4 bits data.
1 1
0 0
1
0
1 1
00
111
0
11D10
b15
b6 b0b1
実行前
1 1
0 0
1
0
1 1
0
1 111
0
11D10
実行後
b15 b6 b0b1
1になります。
K6
D10BSETP
1 1
0
0
1 0
1
1 0 1
1
1 1 0
1
1
b15 b6
b1b0
D10 before execution
b15 b6
b1b0
1
1
0
0
1 0
1
1 0 0
1
1 1 0
1
1
Becomes "1"
BSETP D10
K6
BSETP D10 K6
D10 after execution