Using FINS Message Communications

 

Section 6-3

Example 2: Sending a FINS Command Using CMND

 

 

CS/CJ-series

CMND

CS/CJ-series

DeviceNet Unit No. 0

 

DeviceNet Unit

 

 

CPU

 

CPU

Unit

 

Unit

 

 

Unit ad-

 

 

dress: 00

Node 05

Network 01

Node 06

 

 

MEMORY AREA READ command

Operation

The PC with DeviceNet Unit 1 with node address 5 reads the data from the 5 words D01000 to D01004 from the PC with DeviceNet Unit 2 with node address 06.

The MEMORY AREA READ command (01 01) is used to read variable data.

Command data is written starting from D01000 in the PC with De- viceNet Unit 1 with node address 5 and the response data is written starting from D02000.

The completion code is stored in D00006 when execution of SEND has been completed.

Command Details

The following command is used: [CMND S

D

C]

S = D01000: First command word at local node

Settings (Hex)

D01000 = 0101: Command Code

D01001 = 8203: Command parameters

D01002 = E800: Command parameters

D01003 = 0005: Command parameters

D = D02000: First response word at local node

C = D00000: First control word

Settings (Hex).

D00000 = 0008: Number of command bytes

D00001 = 000E: Number of response bytes

D00002 = 0001: Destination network address

D00003 = 0600: Destination node address (06)

Destination unit address (00 = CPU Unit)

D00004 = 0000: Response, communications port 0, no retries

D00005 = 0064: Response monitoring time

156

Page 167
Image 167
Omron CJ1W-DRM21, CS1W-DRM21 operation manual Example 2 Sending a Fins Command Using Cmnd