Omron SYSMAC C200HS Operation Manual page 171

Programmable controllers
Hide thumbs Also See for SYSMAC C200HS:
Table of Contents

Advertisement

Data Movement
Example
00003
00004
00004
00003
00003
00004
5-16-4 BLOCK TRANSFER – XFER(70)
Limitations
Description
The following example shows how to use BSET(71) to change the PV of a timer
depending on the status of IR 00003 and IR 00004. When IR 00003 is ON, TIM
010 will operate as a 50-second timer; when IR 00004 is ON, TIM 010 will oper-
ate as a 30-second timer.
@BSET(71)
#0500
TIM 010
TIM 010
@BSET(71)
#0300
TIM 010
TIM 010
TIM 010
#9999
Ladder Symbols
XFER(70)
@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.
N must be BCD between 0000 and 6144.
When the execution condition is OFF, XFER(70) is not executed. When the exe-
cution condition is ON, XFER(70) copies the contents of S, S+1, ..., S+N to D,
D+1, ..., D+N.
S
3 4 5
S+1
3 4 5
S+2
3 4 2
S+N
6 4 5
Address Instruction
00000
LD
00001
AND NOT
00002
@BSET(71)
00003
LD
00004
AND NOT
00005
@BSET(71)
00006
LD
00007
OR
00008
TIM
Operand Data Areas
N: Number of words (BCD)
IR, SR, AR, DM, HR, TC, LR, #
S: Starting source word
N
IR, SR, AR, DM, HR, TC, LR
S
D: Starting destination word
D
IR, SR, AR, DM, HR, TC, LR
D
2
3 4 5
D+1
1
3 4 5
D+2
2
3 4 2
D+N
2
6 4 5
Section 5-16
Operands
00003
00004
#
0500
TIM
010
TIM
010
00004
00003
#
0300
TIM
010
TIM
010
00003
00004
010
#
9999
2
1
2
2
161

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents