High−level Instructions
3 − 30
Explanation of example
The data of data register “DT0 to DT3” is copied to the data registers “DT10 to DT13” when trigger R0 turns on.
K13
K0K11
K10
K12
[S1] DT0
DT1
DT2
[S2] DT3
DT4
Source
K0
K0
DT9
DT10
DT11
DT12
DT13
R0: on
“F10 (BKMV)” execution
K0K13
K14 K0
K10K11
K10
K12
[S1] DT0
DT1
DT2
[S2] DT3
DT4
K0
K11
K12K13
K14
[D]
DT9
DT10
DT11
DT12
DT13
Precautions if the same type of memory area is specified for S1, S2, and D
The instruction is not executed if the address and type of memory area is the same for S1 and D.
If the block being transferred overlaps the transfer destination, the transfer results will be overwritten.
If S1 < D, the source data is copied starting from the higher address to the lower address in order (DT4 → DT3
→ DT2 → DT1).
K10K11
K10
K12
[S1] DT0
DT1
DT2
[S2] DT3
DT4
K10
K11
K12K13
K14 K13
[D]
DT0
DT1
DT2
DT3
DT4
If S1 > D, the source data is copied starting from the lower address to the higher address in order (DT0 → DT1
→ DT2).
K14
K12K10
K13
K12
K11
K13
DT0
DT1
[S1] DT2
DT3
[S2] DT4
K14
DT0
DT1
DT2
DT3
DT4
K13
K14
[D]
Flag conditions
・Error flag (R9007): Turns on and stays on when:
・Error flag (R9008): Turns on for an instant when:
− The area specified using the index modifier exceeds the limit.
− S1 > S2
− The data block to be copied exceeds the limit of the destination area.