Program Example - Omron SYSMAC CJ1W-EIP21 Operation Manual

Sysmac cs and cj series ethernet/ip units 100base-tx 100base-tx/10base-t
Hide thumbs Also See for SYSMAC CJ1W-EIP21:
Table of Contents

Advertisement

Communicating between OMRON PLCs
8-6-5

Program Example

Execution
condition
A20207
000000
120002
(See note 1.)
120001
120000
120000
A20207
(See note 1.)
120000
A21907
(Continued on next page.)
230
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 000000 turns ON.
R
Input CIO 120000 remains ON from the start of
@MOV(21)
SEND(090) execution until completion.
#000A
D00000
Control Data Creation
Word
@MOV(21)
#0002
D0000
D00001
D0001
@MOV(21)
D0002
#0400
D00002
D0003
@MOV(21)
#0705
D00003
D0004
@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 8-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

Advertisement

Table of Contents
loading

Table of Contents