297
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Data Movement Instructions
3
BSET
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.
Example Programming
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.
E
Destination words
Source word
St
#0000
D1000
D1999
BSET
#0000
D1000
D1499
BSET
#0000
D1500
D1999
BSET
S
E
E:
St
St:
D100
D200
D209
S : D100
St: D200
D201
D202
D203
D204
D205
D206
D207
D208
E: D209
0.00