Omron CS1W-ETN21 operation manual Using SEND090, RECV098, and CMND490

Models: CS1W-ETN21

1 285
Download 285 pages 16.7 Kb
Page 162
Image 162

Communicating between OMRON PLCsSection 6-6

6-6-3 Using SEND(090), RECV(098), and CMND(490)

 

Make the settings shown below when using the SEND(090), RECV(098), and

 

CMND(490) instructions in the user’s ladder-diagram program in the PC.

SEND(090)

The SEND(090) instruction sends the data in n number of words, starting from

 

the beginning word S at the local node, to the words starting from the begin-

 

ning word D at the remote destination node (node address N).

(@)SEND(90)

S

D

C

 

 

Local node

Destination node number N

15

0

15

0

S

 

 

Number

D

 

 

 

 

 

 

 

 

 

n

 

 

 

of words

 

 

 

 

 

 

 

 

 

 

 

 

 

(n)

 

 

 

 

 

 

 

 

 

 

 

 

S:Local node beginning word

D:Destination beginning word

C:First word of control data (below)

15

C

0

 

15

10

8 7

3

0

 

C+3

 

 

0

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Number of words (n)

 

 

 

 

 

 

 

 

Number of retries

 

 

0001 to 03DE (Hex): 1 to 990 words

 

 

 

 

 

 

0 to F (Hex): 0 to 15 retries

 

 

 

 

Communications port number: 0 to 7

 

15

11

8 7

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

C+1

0

 

 

0

 

 

 

 

Response

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0: Required.

 

 

 

Destination network number

1: Not required.

 

 

 

 

00 (Hex):

Local network

 

 

 

 

 

 

 

 

 

 

 

01 to 7F (Hex):

1 to 127

 

 

 

 

 

 

 

 

15

11

8 7

 

0

 

 

 

 

 

 

 

 

C+2

 

 

 

 

 

 

 

 

C+4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Destination unit address

00 (Hex):

CPU Unit

10 to 1F: (Hex):

Unit #0 to #15

E1 (Hex):

Inner Board

FE (Hex):

Unit connected to network

Destination node number N

 

00 to FE (Hex): 0 to 254

 

The same data can be broadcast to all nodes on the network by setting the destination node number to FF (Hex).

Response monitor time 0000 (Hex): 2 s

0001 to FFFF (Hex): 0.1 to 6,553.5 s (in units of 0.1 s)

The range of node addresses is different for networks other than Ethernet.

Note The message service does not guarantee that a message will reach the desti- nation node. A message may be lost during transmission due to factors such as noise. To prevent this from occurring when using message services, it is common to set up retry processing at the node from which instructions are issued. With the SEND(090), RECV(098), and CMND(490) instructions, retry processing is executed automatically by specifying the number of retries, so specify a number other than 0.

137

Page 162
Image 162
Omron CS1W-ETN21 Using SEND090, RECV098, and CMND490, Ning word D at the remote destination node node address N