Omron CS1W-ETN21 operation manual CMND490, Hex 2 s Destination node number N To FE Hex

Models: CS1W-ETN21

1 285
Download 285 pages 16.7 Kb
Page 164
Image 164

Communicating between OMRON PLCs

Section 6-6

CMND(490)

(@)CMND(490)

S

D

C

The CMND(490) instruction sends n bytes of command data, starting from the beginning word S at the local node, to the node at node address N. the data in m number of words, starting from the beginning word S at the remote node (node address M) is received at the words starting from the beginning word D at the local node.

Local node

Destination node number N

150

S

 

 

 

 

 

 

Comm

a

nd

 

 

 

 

 

Com-

 

 

Interpretation

 

 

 

 

 

mand

 

 

 

 

1)

 

data: n

 

 

 

(Sn

 

 

 

 

 

 

 

 

bytes

 

 

 

+2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Respon

se

D

 

 

 

 

Execution

 

 

 

 

 

 

Re-

 

 

 

 

 

 

 

 

sponse

(D1)

 

data: m

m

 

bytes

+

 

 

 

2

 

 

 

 

 

S:Beginning command storage word

D:Beginning response storage word

C:First word of control data (below)

15

0

C

Number of bytes of command data (n) 0000 to 07C6 (Hex): 1 to 1,990 bytes

15

0

C+1

Number of bytes of response data (m) 0000 to 07C6 (Hex): 1 to 1,990 bytes

 

15

11

8 7

 

 

0

 

15

10

8 7

3

0

 

C+2

0

 

 

0

 

 

 

 

 

C+4

 

0

 

 

 

 

0

 

 

 

 

 

 

 

 

Destination network number

 

 

 

 

 

 

 

 

 

Number of retries

 

 

 

 

 

00 (Hex):

Local network

 

 

 

 

 

 

 

 

 

0 to F (Hex): 0 to 15 retries

 

 

 

 

 

 

 

 

 

 

Communications port number: 0 to 7

 

 

 

 

 

01 to 7F (Hex): 1 to 127

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15

 

 

8 7

 

 

0

 

 

 

Response

 

 

 

 

C+3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0: Required.

 

 

 

 

 

 

 

 

 

Destination Unit address

 

 

1: Not required.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

00 (Hex):

 

CPU Unit

15

10

8 7

3

0

 

 

 

 

 

 

10 to 1F: (Hex): Unit #0 to #15

C+5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

E1 (Hex):

 

Inner Board

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FE (Hex):

 

Unit connected to network

 

 

 

 

 

 

 

Response monitor time

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0000 (Hex): 2 s

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).

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 services function does not guarantee that a message will reach the destination node. A message may be lost during transmission due to fac- tors such as noise. In order to prevent this from occurring when using mes- sage 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 num- ber of retries, so specify a number other than 0.

139

Page 164
Image 164
Omron CS1W-ETN21 operation manual CMND490, Hex 2 s Destination node number N To FE Hex