Data Movement Instructions
5-18-4 BLOCK SET – BSET(71)
Limitations
Description
Flags
Example
00000
272
Ladder Symbols
BSET(71)
@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.
S
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.
ER:
St and E are not in the same data area or St is greater than E.
Indirectly addressed EM/DM word is non-existent.
(Content of *EM/*DM word is not BCD, or the EM/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
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
S
IR, SR AR, DM, EM, HR, TIM/CNT, LR
St
E
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
2
Address Instruction
00000
00001
Section 5-18
Operand Data Areas
S: Source data
St: Starting word
E: End Word
St
3 4 5
2
St+1
3 4 5
2
St+2
3 4 5
2
E
3 4 5
2
Operands
LD
00000
@BSET(71)
#
0000
DM
0000
DM
0500
Need help?
Do you have a question about the CQM1H - PROGRAM and is the answer not in the manual?