7-17
Section
Data Movement Instructions
415
7-17-5
DATA EXCHANGE – XCHG(73)
E1
: Exchange word 1
IR, SR, AR, DM, HR, TC, LR
E2
: Exchange word 2
IR, SR, AR, DM, HR, TC, LR
Ladder Symbols
Operand Data Areas
XCHG(73)
E1
E2
@XCHG(73)
E1
E2
DM 6144 to DM 6655 cannot be used for E1 or 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.
E2
E1
If you want to exchange content of blocks whose size is greater than 1 word, use
work words as an intermediate buffer to hold one of the blocks using XFER(70)
three times.
Flags
ER:
Indirectly addressed DM word is non-existent. (Content of
*
DM word is
not BCD, or the DM area boundary has been exceeded.)
7-17-6
SINGLE WORD DISTRIBUTE – DIST(80)
S
: Source data
IR, SR, AR, DM, HR, TC, LR, #
DBs
: Destination base word
IR, SR, AR, DM, HR, TC, LR
Ladder Symbols
Operand Data Areas
C
: Control word (BCD)
IR, SR, AR, DM, HR, TC, LR, #
DIST(80)
S
DBs
C
@DIST(80)
S
DBs
C
C must be BCD.
DM 6144 to DM 6655 cannot be used for DBs or C.
DIST(80) can be used for single-word distribution or for a stack operation de-
pending on the content of the control word, C.
When bits 12 to 15 of C=0 to 8, DIST(80) can be used for a single word distribute
operation. The entire contents of C specifies an offset, Of (0000 to 2047 in BCD).
When the execution condition is OFF, DIST(80) is not executed. When the
execution condition is ON, DIST(80) copies the content of S to DBs+Of, i.e., Of is
added to DBs to determine the destination word.
Note
1. DBs and DBs+Of must be in the same data area and cannot be between
DM 6144 and DM 6655.
2. IR 000 to IR 019 or IR 000 to IR 049 is treated as a different memory area
from IR 200 to IR 255 for the source data area. The entire source data area
must be within one or the other of these areas. An error will occur if words
from both areas are included.
Limitations
Description
Limitations
Description
Single-word Distribution
Содержание SRM1 - PROGRAMING 02-2001
Страница 1: ...Programmable Controllers Cat No W353 E1 06 SYSMAC CPM1 CPM1A CPM2A CPM2C SRM1 V2 PROGRAMMING MANUAL ...
Страница 2: ...CPM1 CPM1A CPM2A CPM2C SRM1 V2 Programmable Controllers Programming Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 9: ...x ...
Страница 15: ...xvi ...