Using the Message Service

Section 6-3

PLC Programming Examples

CS/CJ-series PLCs

Execution condition

000000 A20207 120002

(See note 1.)

120001

120000

S

KEEP 120000

R

The transmission program will run when CIO 000000 turns ON, provided that the Network Instruction Ena- bled Flag is ON and the RECV instruction has not been executed.

CIO 120000 remains ON while the SEND instruction is being executed, and it turns OFF when instruction

(See note 1.)

120000 A20207

Network Instruction Error Flag

120000 A21907

(Continued on the next page)

@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

execution has been completed.

Control Data Preparation

Word

Content

Meaning

D00000

0 0

0 A

10 send words

 

 

 

 

D00001

0 0

0 2

Destination network

 

 

 

address= 2

D00002

0 4

0 0

Destination node

 

 

 

address = 4

 

 

 

Destination Unit

 

 

 

address = 0

D00003

0 7

0 5

Response required

 

 

 

Port No. 7 used

 

 

 

No. of resends = 5

D00004

0 0

6 4

Response monitoring

 

 

 

time = 10 s

 

 

 

 

Transfers the 10 words beginning at CIO 0000 to the 10 words beginning at DM 00010.

Transfers the 10 words beginning at DM 00010 of the source node to the words beginning with DM 00020 at network address 2, node address 4, and Unit address 0 (PLC).

Creates reset input.

Turns ON to indicate transmission error.

194

Page 217
Image 217
Omron CS1W-RPT01, CVM1-CLK21, CJ1W-CLK21-V1, C200HW-CLK21, CQM1H-CLK21, CS1W-CLK21-V1 PLC Programming Examples, On the next