Block Transfer - Xfer(70) - Omron CQM1H - PROGRAM Programming Manual

Programmable controllers; inner boards
Table of Contents

Advertisement

Data Movement Instructions
Example
00001
5-18-3 BLOCK TRANSFER – XFER(70)
Limitations
Description
Flags
The following example shows @MVN(22) being used to copy the complement
of #F8C5 to DM 0010 when IR 00001 goes from OFF to ON.
#F8C5
1 1 1 1 1 0 0 0 1 1
0 0 0 0 0 1 1 1 0 0
DM 0010
Ladder Symbols
XFER(70)
@XFER(70)
N
S
D
S and S+N must be in the same data area, as must D and D+N.
DM 6144 to DM 6655 cannot be used for D.
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.
ER:
N is not BCD.
S and S+N or D and D+N are not in the same data area.
Indirectly addressed EM/DM word is non-existent.
(Content of *EM/*DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
Address Instruction
@MVN(22)
00000
#F8C5
00001
DM 0010
0
0 0 1 0 1
1
1 1 0 1 0
N: Number of words (BCD)
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
N
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
S
D: Starting destination word
D
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
S
3 4 5
2
S+1
3 4 5
1
S+2
3 4 2
2
S+N
6 4 5
2
Section 5-18
Operands
LD
00001
@MOV(21)
#
F8C5
DM
Operand Data Areas
S: Starting source word
D
3 4 5
2
D+1
3 4 5
1
D+2
3 4 2
2
D+N
6 4 5
2
0010
271

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents