7-17
Section
Data Movement Instructions
414
Indirectly addressed DM word is non-existent. (Content of
*
DM word is
not BCD, or the DM area boundary has been exceeded.)
7-17-4
BLOCK SET – BSET(71)
S
: Source data
IR, SR, AR, DM, HR, TC, LR, #
St
: Starting word
IR, SR AR, DM, HR, TC, LR
Ladder Symbols
Operand Data Areas
E
: End Word
IR, SR, AR, DM, HR, TC, LR
BSET(71)
S
St
E
@BSET(71)
S
St
E
St must be less than or equal to E, and St and E must be in the same data area.
DM 6144 to DM 6655 cannot be used for St or E.
When the execution condition is OFF, BSET(71) is not executed. When the
execution condition is ON, BSET(71) copies the content of S to all words from St
through E.
2
S
3 4 5
2
St
3 4 5
2
St+1
3 4 5
2
St+2
3 4 5
2
E
3 4 5
BSET(71) can be used to change timer/counter PV. (This cannot be done with
MOV(21) or MVN(22).) BSET(71) can also be used to clear sections of a data
area, i.e., the DM area, to prepare for executing other instructions. It can also be
used to clear words by transferring all zeros.
Flags
ER:
St and E are not in the same data area or St is greater than E.
Indirectly addressed DM word is non-existent. (Content of
*
DM word is
not BCD, or the DM area boundary has been exceeded.)
The following example shows how to use BSET(71) to copy a constant (#0000)
to a block of the DM area (DM 0000 to DM 0500) when IR 00000 is ON.
@BSET(71)
#0000
DM 0000
DM 0500
00000
Address
Instruction
Operands
00000
LD
00000
00001
@BSET(71)
#
0000
DM
0000
DM
0500
Limitations
Description
Example