Program Example - Omron SYSMAC CS1W-ETN21 Operation Manual

100base-tx ethernet units construction of networks
Hide thumbs Also See for SYSMAC CS1W-ETN21:
Table of Contents

Advertisement

Communicating between OMRON PLCs
6-6-5

Program Example

Execution
condition (See note.)
0000.00 A202.07 1200.02
1200.01
1200.00
(See note.)
1200.00
A202.07
1200.00
A219.07
(Continued on next page.)
When the Communications Port Enabled Flag for port 7
S
KEEP
is ON, and RECV(098) is not being executed, the send
120000
execution program will start when execution condition
CIO 0000.00 turns ON.
R
Input CIO 1200.00 remains ON from the start of
@MOV(21)
SEND(090) execution until completion.
#000A
D00000
Control Data Creation
Word
@MOV(21)
#0002
D00000
D00001
D00001
@MOV(21)
D00002
#0400
D00002
D00003
@MOV(21)
#0705
D00003
D00004
@MOV(21)
#0064
D00004
Send Data Creation
@XFER(70)
Ten words of data from word CIO 0000 is
#000A
stored from D00010 onwards.
0000
D00010
@SEND(90)
Ten words of data from D00010 at the local node is
D00010
sent to D00020 onwards at network number 2, node
number 4, unit address 0 (the PLC).
D00020
D00000
DIFU(13)
Reset Input Creation
120001
121000
Send Error Display
Section 6-6
Contents
Meaning
00
0A
Number of send words = 10
00
02
Destination network number = 2
04
00
Destination node number = 4
Destination unit address = 0
07
05
Response required.
Communications port No. used = 7
Number of retries = 5
00
64
Response monitor time = 10 s
147

Advertisement

Table of Contents
loading

Table of Contents