Omron CS1W-ETN21 operation manual 146

Models: CS1W-ETN21

1 285
Download 285 pages 16.7 Kb
Page 171
Image 171

Communicating between OMRON PLCs

Section 6-6

(Continued from previous page.)

Execution

condition (See note.) 000001 A20207 120000

120003

120002

120002 A20207 (See note.)

SKEEP 120002

R

@MOV(21)

#0010

D00005

@MOV(21)

#0003

D00006

@MOV(21)

#2000

D00007

@MOV(21)

#0705

D00008

@MOV(21)

#0000

D00009

@RECV(98)

A100

2000

D00005

When the Communications Port Enabled Flag for port 7 is ON, and SEND(090) is not being executed, the trans- mission execution program will start when execution condition CIO 000001 turns ON.

Input CIO 120002 remains ON from the start of RECV(098) execution until completion.

Control Data Creation

Word

Contents

Meaning

 

 

 

 

D0005

00

10

Number of reception words = 16

D0006

00

03

Source network number = 3

 

 

 

 

D0007

20

00

Source node number = 32

 

 

 

Source unit address = 0

 

 

 

 

D0008

07

05

Response required.

 

 

 

Communications port No. used = 7

 

 

 

Number of retries = 5

 

 

 

 

D0009

00

00

Response monitor time = Default

 

 

 

 

A total of 16 words of data beginning from word A100 at network number 3, node number 32, unit address 0 (the PLC) is received at word CIO 2000 onwards of the local node.

120002 A21907

120002 120003 A21907

DIFU(13)

120003

121001

@XFER(70)

#0016

2000

D00040

Reset Input Creation

Reception Error Display

Reception Data Processing

If there is no reception processing completion error, the 16 words of data received from word CIO 2000 on- wards is stored at D00040 onwards.

Note 1. With CS/CJ-series PLCs, the Communications Port Enabled Flags at bits 0 to 7 in word A202 turn OFF even when the PCMR(260) instruction is be- ing executed using the ports corresponding to those flags.

2.Before using the sample program as is, confirm that the memory areas (words and bits) used in the sample program are not already being used in the user program o r by Special I/O Units.

146

Page 171
Image 171
Omron CS1W-ETN21 operation manual 146