2 Instructions
2-120 CP1E CPU Unit Instructions Reference Manual(W483)
Function
Precautions
Some time will be required to complete BSET(071) when a large number of words is being set. Even
if an interrupt occurs, execution of this instruction will not be interrupted and execution of the interrupt
task will be started after execution of BSET(071) has been completed. If power is interrupted during
execution of BSET(071), execution may not be completed, i.e., all of the specified words may not be
set. One BSET(071) instruction can be replaced with two BSET(071) instructions to help avoid this
problem.
Sample program
When CIO 0.00 is ON in the following example, the source data in D100 is copied to D200 through
D209.
BSET(071) copies the same source word (S)
to all of the destination words in the range St
to E.
St
E
S
Destination words
Source word
BSET
#0000
D1500
D1999
BSET
#0000
D1000
D1499
BSET
#0000
D1000
D1999
BSET
D100
D200
D209
0.00
S
St
E
S D100 1234 St:D200
D201
D202
D203
D204
D205
D206
D207
D208
E:D209
1234
1234
1234
1234
1234
1234
1234
1234
1234
1234