Appendices
A-14
CP2E CPU Unit Software User’s Manual(W614)
BLOCK
TRANSFER
XFER @ Transfers the specified number of consecutive words.
N: Number of Words
The possible range for N is 0000 to FFFF (0 to 65,535 decimal).
BLOCK SET BSET @ Copies the same word to a range of consecutive words.
DATA
EXCHANGE
XCHG @ Exchanges the contents of the two specified words.
SINGLE
WORD DIS-
TRIBUTE
DIST @ Transfers the source word to a destination word calculated by add-
ing an offset value to the base address.
DATA COL-
LECT
COLL @ Transfers the source word (calculated by adding an offset value to
the base address) to the destination word.
MOVE TO
REGISTER
MOVR @ Sets the PLC memory address of the specified word, bit, or
timer/counter Completion Flag in the specified Index Register.
Instruction Mnemonic Variations Symbol/Operand Function
XFER(070)
N
S
D
N: Number of words
S: 1st source word
D: 1st destination word
S+(N 1)
D+(N 1)
−
−
to to
N words
15 0
S
S+(N-1)
to
15 0
D
D+(N-1)
to
BSET(071)
S
St
E
S: Source word
St: Starting word
E: End word
St
E
Source word Destination words
XCHG(073)
E1
E2
E1: 1st exchange word
E2: Second exchange word
E2E1
DIST(080)
S
Bs
Of
S: Source word
Bs: Destination base address
Of: Offset
S B
Bs+n
s
Of
COLL(081)
Bs
Of
D
Bs: Source base address
Of: Offset
D: Destination word
Bs
Bs+n
Of
MOVR(560)
S
D
S: Source (desired word or bit)
D: Destination (Index Register)
Internal I/O memory address of S
Index Register