138
5-14-4
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
3 4 5
1
D+1
3 4 5
2
D+2
3 4 2
2
D+N
6 4 5
2
S
3 4 5
1
S+1
3 4 5
2
S+2
3 4 2
2
S+N
6 4 5
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-5
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
When the execution condition is OFF, XCHG(73) is not executed. When the
execution condition is ON, XCHG(73) exchanges the content of E1 and E2.
Limitations
Description
Flags
Description
Data Movement
Section 5-14