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

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

1 401
Download 401 pages 33.98 Kb
Page 221
Image 221

Using the Message Service

Section 6-3

CVM1 and CV-series PLCs

I0000

A502

1200

 

 

 

 

00

07

02H

 

 

(011)

 

 

 

 

 

 

 

 

 

 

 

 

KEEP

120000H

1200

 

 

 

 

 

 

01H

 

 

 

 

 

 

1200

 

 

 

 

 

 

00H

 

 

 

(030)

 

 

 

 

 

 

 

 

 

 

 

 

MOV

#000A

D00000

 

 

 

 

(030)

 

 

 

 

 

 

MOV

#0002

D00001

 

 

 

 

(030)

 

 

 

 

 

 

MOV

#0400

D00002

 

 

 

 

(030)

 

 

 

 

 

 

MOV

#0705

D00003

 

 

 

 

(030)

 

 

 

 

 

 

MOV

#0064

D00004

 

 

 

(040)

 

 

 

 

 

 

XFER

#0010

I0000

D00010

 

 

 

(192)

 

 

 

 

 

 

SEND

D00010

D00020 D00000

1200

A502

 

 

 

 

 

00

07

 

 

 

(013)

 

 

 

 

 

 

 

 

 

 

 

 

DIFU

120001H

1200

A502

 

 

 

 

1210

00

15

 

 

 

 

00H

I0000

A502

1200

 

 

 

 

01

07

00H

 

 

(011)

 

 

 

 

 

 

 

 

 

 

 

 

KEEP

120002H

1200

 

 

 

 

 

 

03H

 

 

 

 

 

 

1200

 

 

 

 

 

 

02H

 

 

 

(030)

 

 

 

 

 

 

 

 

 

 

 

 

MOV

#0010

D00005

 

 

 

 

(030)

 

 

 

 

 

 

MOV

#0003

D00006

 

 

 

 

(030)

 

 

 

 

 

 

MOV

#2000

D00007

 

 

 

 

(030)

 

 

 

 

 

 

MOV

#0705

D00008

 

 

 

 

(030)

 

 

 

 

 

 

MOV

#0000

D00009

 

 

 

(193)

 

 

 

 

 

 

RECV

A100

2000

D00005

1200

A502

 

 

 

 

 

02H

07

 

 

 

(013)

 

 

 

 

 

 

 

 

 

 

 

 

DIFU

120003H

1200

A502

 

 

 

 

1210

02H

15

 

 

 

 

01H

1200

1200

A502

 

 

 

 

02H

03H

15

(040)

 

 

 

 

 

 

 

 

 

 

 

 

XFER

#0016

2000

D00040

The transmission program will run when I000000 is ON, provided that the Network Instruction Enabled Flag for port 7 is ON and the RECV instruction has not been executed.

CIO 120000H remains ON while the SEND instruction is being executed, and it turns OFF when the execution of the instruction has been completed.

Word

Content

Meaning

 

 

 

 

D00000

00

0A

No. of send words: 10H

 

 

 

 

D00001

00

02

Destination network address: 2

 

 

 

 

D00002

04

00

Destination node address: 4

 

 

 

Destination unit address: 0

 

 

 

 

D00003

07

05

Response required

 

 

 

Communications port no.: 7

 

 

 

Number of retries: 5

 

 

 

 

D00004

00

64

Response monitor time: 10 s

 

 

 

 

The 10-word data starting from I0000 is stored in D00010 and following words.

Transfers 10 words of data from the source node (D00010) to the PLC (from D00020 onwards) at network address 2, node no. 4, unit address 0.

Creates reset input.

Transmission error display

The reception program will run when I000001 is ON, provided that the Network Instruction Enabled Flag for port 7 is ON and the SEND instruction has not been executed.

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

Word

Content

Meaning

 

 

 

 

D00005

00

10

Number of receive words: 16H

 

 

 

 

D00006

00

03

Destination network address: 3

 

 

 

 

D00007

20

00

Destination node address: 32

 

 

 

Destination Unit address: 0

 

 

 

 

D00008

07

05

Response required

 

 

 

Communications port no.: 7

 

 

 

Number of retries: 5

 

 

 

 

D00009

00

00

Response monitor time: Default

 

 

 

 

Transfers 16 words of data (from A100 onwards) from the PLC at network address 3, node no. 32, unit address 0, to words 2000 onwards.

Creates reset input.

Reception error display Reception data processing

When the data is received without an error, the 16-word data received at CIO 2000 and following words is stored in D00040 and following words on the same PLC.

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 Special I/O Units.

198

Page 221
Image 221
Omron CS1W-CLK21-V1, CVM1-CLK21, CS1W-RPT01, CJ1W-CLK21-V1, C200HW-CLK21, CQM1H-CLK21 operation manual 198