Omron SYSMAC CP Series Instruction & Reference Manual page 156

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

2 Instructions
Function
BSET(071) copies the same source word (S)
to all of the destination words in the range St
to E.
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.
BSET
#0000
D1000
D1999
Sample program
When CIO 0.00 is ON in the following example, the source data in D100 is copied to D200 through
D209.
0.00
BSET
S
D100
St
D200
E
D209
2-120
BSET
#0000
D1000
D1499
BSET
#0000
D1500
D1999
S D100
1 2 3 4
Source word
Destination words
S
St
E
St:D200
1 2 3 4
D201
1 2 3 4
D202
1 2 3 4
D203
1 2 3 4
D204
1 2 3 4
D205
1 2 3 4
D206
1 2 3 4
D207
1 2 3 4
D208
1 2 3 4
E:D209
1 2 3 4
CP1E CPU Unit Instructions Reference Manual(W483)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents