137
5-14-6 BLOCK TRANSFER – XFER(70)
N: Number of words (BCD)
IR, SR, AR, DM, HR, TC, LR, #
S: Starting source word
IR, SR, AR, DM, HR, TC, LR
Ladder Symbols
Operand Data Areas
D: Starting destination word
IR, AR, DM, HR, TC, LR
XFER(70)
N
S
D
@XFER(70)
N
S
D
Both S and D may be in the same data area, but their respective block areas
must not overlap. S and S+N must be in the same data area, as must D and
D+N.
When the execution condition is OFF, XFER(70) is not executed. When the
execution condition is ON, XFER(70) copies the contents of S, S+1, ..., S+N
to D, D+1, ..., D+N.
2
D
345
1
D+1
345
2
D+2
342
2
D+N
645
2
S
345
1
S+1
345
2
S+2
342
2
S+N
645
Flags ER: N is not BCD
S and S+N or D and D+N are not in the same data area.
Indirectly addressed DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
5-14-7 DATA EXCHANGE – XCHG(73)
E1: Exchange word 1
IR, AR, DM, HR, TC, LR
E2: Exchange word 2
IR, AR, DM, HR, TC, LR
Ladder Symbols Operand Data Areas
XCHG(73)
E1
E2
@XCHG(73)
E1
E2
Limitations
Description
Data Movement Section 5-14