Omron CJ1W-CLK21-V1, CVM1-CLK21, CS1W-RPT01, C200HW-CLK21, CQM1H-CLK21, CS1W-CLK21-V1 195

Models: CS1W-RPT01 CJ1W-CLK21-V1 CVM1-CLK21 CQM1H-CLK21 CS1W-CLK21-V1 C200HW-CLK21

1 401
Download 401 pages 33.98 Kb
Page 218
Image 218

Using the Message Service

Section 6-3

(Continued from the previous page)

Execution condition

000001 A20207 120000

KEEP(11)

The reception program will run when CIO 00001 turns ON, provided that the Network Instruction En- abled Flag is ON and the SEND instruction has not

S

(See note 1.)

120002

been executed.

120003

R

 

 

 

 

 

 

 

 

120002

@MOV(21)

#0010

D00005

@MOV(21)

#0003

D00006

@MOV(21)

#2000

D00007

@MOV(21)

#0705

D00008

@MOV(21)

#0000

D00009

@RECV(98)

A100

2000

(See note 1.)D00005 120002 A20207

DIFU(13) 120003

Network Instruction Error Flag

120002 A21907

121001

120002 120003 A21907

@XFER(70)

#0016

2000

D00040

CIO 120002 remains ON while the RECV instruction is being executed, and it turns OFF when instruction execution has been completed.

Control Data Preparation

Word

Content

Meaning

D00005

0 0

10

16 send words

 

 

 

 

D00006

0 0

0 3

Destination network

 

 

 

address= 3

D00007

2 0

0 0

Destination node

 

 

 

address = 32

 

 

 

Destination Unit

 

 

 

address = 0

D00008

0 7

0 5

Response required

 

 

 

Port No. 7 used

 

 

 

No. of resends = 5

D00009

0 0

0 0

Response monitoring

 

 

 

time = Default

 

 

 

 

Transfers the 16 words beginning at A100 of net work address 3, node address 32, and Unit address 0 (PLC) to 2000.

Creates reset input.

Turns ON to indicate reception error.

Transmitted data (16 words from 2000) moved into words beginning at D00040 for storage.

Note 1. With CS/CJ-series PLCs, the Network Instruction Enabled Flag in A20200 to A20207 corresponding to communications ports will be OFF even when PMCR (PROTOCOL MACRO) is being executed.

2.When using the sample program, make sure that the bits and words used in the sample program are not the same as those in the user program or by Special I/O Units.

195

Page 218
Image 218
Omron CJ1W-CLK21-V1, CVM1-CLK21, CS1W-RPT01, C200HW-CLK21, CQM1H-CLK21, CS1W-CLK21-V1 operation manual 195