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

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

1 401
Download 401 pages 33.98 Kb
Page 220
Image 220

Using the Message Service

Section 6-3

(Continued from the previous page)

Execution

condition

00001 25204 31000

31003

31002

S

KEEP(11)

31002

R

The reception program will run when IR 000001 turns ON, provided that the Network Instruction En- abled Flag is ON and the SEND instruction has not been executed.

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

31002 25204

@MOV(21)

#0010

DM 0003

@MOV(21)

#9500

DM 0004

@MOV(21)

#0004

DM 0005

@MOV(21)

#0500

HR 10

@MOV(21)

#5000

HR 11

@RECV(98)

HR 10

LR 10

DM 0003

Control Data Preparation

 

 

 

 

 

 

DM 0003

0 0

1 0

 

16 receive words*

DM 0004

9 5

0 0

 

Operating level 1**

DM 0005

0 0

0 4

 

Node 4, Unit 0 (a PLC)

*No destination network address specified

**Response required, 5 retries, direct designa- tion, monitoring time: default

Beginning Word for Indirect Sending by Destination Node

HR 10

0 5

0 0

Beginning word for

HR 11

5 0

0 0

sending (by destina-

tion node) = DM5000

 

 

 

 

 

 

(05: DM designation)

Data for 16 words from DM 5000 (HR10, HR11) of the node address 4 is received in LR 10 and after.

Network Instruction Error Flag

31002 25203

31002 31003 25203

DIFU(13) 31003

0201

@XFER(70)

#0016

LR 10

DM 0030

Creates reset input.

Turns ON to indicate reception error.

Transmitted data (16 words from LR 10) moved into words beginning at DM 0030 for storage.

Note 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 Spe- cial I/O Units.

197

Page 220
Image 220
Omron CQM1H-CLK21, CVM1-CLK21, CS1W-RPT01, CJ1W-CLK21-V1, C200HW-CLK21, CS1W-CLK21-V1 operation manual 197