Omron CS1W-DRM21, CJ1W-DRM21 operation manual Example Sending Explicit Messages Using CMND490

Models: CJ1W-DRM21 CS1W-DRM21

1 274
Download 274 pages 23.02 Kb
Page 174
Image 174

Sending Explicit Messages

Section 6-4

Command Block

 

Eg. For $1234

Eg. For $15678234

Service Data

Service Data

The format from CMND(490) operand S onwards will be set as follows:

Example: $1234

Example: $12345678

From higher byte

From higher byte

Bit

Bit

From lower byte

 

Bit

From lower byte

 

 

Bit

The response format data in service data that is in word (2-byte) or double- word (4-byte) units, such as word data and ERROR CLEAR codes, is also specified from low to high bytes in response block format

Example: Sending Explicit Messages Using CMND(490)

DeviceNet Unit No. 0

 

 

 

CMND(490)

 

 

PC's

instruction

 

 

 

 

 

CPU

 

 

 

Unit

 

 

 

Node address 05

 

 

Unit address FE Hex or 10 Hex

 

Explicit message

Slave node 11

 

 

 

Operation

The vendor code is read from a Slave (OMRON vendor code: 002F Hex)

 

using the EXPLICIT MESSAGE SEND command, 28 01. The command data

 

is written starting at DM01000, and the response data is stored starting at

 

D02000. When execution of CMND(490) has been completed, the completion

 

code is stored in D00006 and the instruction is executed again.

Command Details

The following command is used: [ CMND S D C ]

 

S = D01000:

First command word at local node

 

Settings (Hex)

 

 

D01000 = 2801:

Command Code

 

D01001 = 0B0E:

Slave node address: 11

 

 

 

Service code: 0E

 

D01002 = 0001:

Class ID: 0001

 

D01003 = 0001:

Instance ID: 0001

 

D01004 = 0100:

Attribute ID: 01

 

D = D02000:

First response word at local node

 

C = D00000:

First control word

163

Page 174
Image 174
Omron CS1W-DRM21, CJ1W-DRM21 Example Sending Explicit Messages Using CMND490, Following command is used Cmnd S D C