Omron C200HX Computer Hardware User Manual


 
191
Example The following example copies the contents of the 300 words from DM 0000
through DM 0299 to EM 2000 through EM 2299 in the current EM bank.
XFR2(––)
#0300
DM 0000
#2000
00000
Address Instruction Operands
00200 LD 00000
00201 XFR2(––)
# 0300
DM 0000
# 2000
5-16-12 EM BANK TRANSFER BXF2(––)
C: FIrst control word
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, SR, AR, DM, HR, TC, LR, #
BXF2(––)
C
S
D
@BXF2(––)
C
S
D
Limitations The value in C+1 must be BCD from 1 to 6144.
S and S+N must be in the same data area, as must D and D+N.
Description When the execution condition is OFF, BXF2(––) is not executed. When the
execution condition is ON, BXF2(––) copies the contents of S, S+1, ..., S+N to D,
D+1, ..., D+N. If a constant is used for S or D, the constant specifies an address in
the source or destination EM bank specified in C.
Control Words C contains the source and destination bank numbers if data is being transferred
to or from EM. The bank numbers are ignored unless a constant is used for S or
D.
C+1 contains the number of words to transfer and must be BCD (1 to 6144).
Control word Bits Function
C
0 to 7 Specifies the source bank number (00 to 02).
8 to 15 Specifies the destination bank number (00 to 02).
C+1 0 to 15 Specifies the number of words to transfer (1 to 6144).
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.)
Data Movement Section 5-16