Communicating between OMRON PLCs

Section 6-6

6-6-5 Program Example

Execution

condition (See note.)

000000 A20207 120002

120001

120000

120000 A20207 (See note.)

120000 A21907

S

KEEP 120000

R

@MOV(21)

#000A

D00000

@MOV(21)

#0002

D00001

@MOV(21)

#0400

D00002

@MOV(21)

#0705

D00003

@MOV(21)

#0064

D00004

@XFER(70)

#000A

0000

D00010

@SEND(90)

D00010

D00020

D00000

DIFU(13)

120001

121000

When the Communications Port Enabled Flag for port 7 is ON, and RECV(098) is not being executed, the send execution program will start when execution condition CIO 000000 turns ON.

Input CIO 120000 remains ON from the start of SEND(090) execution until completion.

Control Data Creation

Word

Contents

Meaning

 

 

 

 

D0000

00

0A

Number of send words = 10

D0001

00

02

Destination network number = 2

D0002

04

00

Destination node number = 4

 

 

 

Destination unit address = 0

D0003

07

05

Response required.

 

 

 

Communications port No. used = 7

 

 

 

Number of retries = 5

 

 

 

 

D0004

00

64

Response monitor time = 10 s

 

 

 

 

Send Data Creation

Ten words of data from word CIO 0000 is stored from D00010 onwards.

Ten words of data from D00010 at the local node is sent to D00020 onwards at network number 2, node number 4, unit address 0 (the PLC).

Reset Input Creation

Send Error Display

(Continued on next page.)

145

Page 170
Image 170
Omron CS1W-ETN21 operation manual Program Example