beautypg.com

6 plc-5 example – Rockwell Automation DeviceNet Communications Module User Manual

Page 71

background image

Using Explicit Messaging

7-11

7.6

PLC-5 Example

Data Format for a Read and Write Parameter

The data in this example is for an MD65 drive at node address 1.

Refer to section 7.2 for a description of the content of the data file.

Table 7.6 – Request Data for Read of Drive Parameter 39

Address Value (hex)

Description

Refer to ...

N11:0

0101

TXID = 01, Command = 01 (execute)

Section 7.3

N11:1

0006

Port = 00, Size = 06 bytes

Section 7.3

N11:2

0E01

Service = 0E (Get_Attribute_Single)

Page C-10

Address = 01 (Node Address)

Section 7.3

N11:3

000F

Class = 0F (Parameter Object)

Page C-8

N11:4

0027

Instance = Parameter 39 (27 hex)

N11:5

0001

Attribute = 01 (Parameter Value)

Page C-9

Table 7.7 – Response Data for Read of Drive Parameter 39

Address Value (hex)

Description

Refer to ...

N11:100

0101

TXID = 01, Status = 01 (successful)

Section 7.3

N11:101

0002

Port = 00, Size = 02 bytes

Section 7.3

N11:102

8E01

Service = 8E (successful),
Address = 01 (Node Address)

Section 7.3

N11:103

0064

Response Data = 1000 100 (64 HEX) = 10.0
seconds

Table 7.8 – Request Data for Write to Drive Parameter 101

Address Value (hex)

Description

Refer to ...

N11:0

0101

TXID = 01, Command = 01 (execute)

Section 7.3

N11:1

0008

Port = 00, Size = 08 bytes

Section 7.3

N11:2

1001

Service = 10 (Set_Attribute_Single)

Page C-10

Address = 01 (Node Address)

Section 7.3

N11:3

000F

Class = 0F (Parameter Object)

Page C-8

N11:4

0027

Instance = Parameter 39 (27 hex)

N11:5

0001

Attribute = 01 (Parameter Value)

Page C-9

N11:6

0064

Data = 100 (64 hex) = 10.0 seconds

Table 7.9 – Response Data for Write to Drive Parameter 101

Address Value (hex)

Description

Refer to ...

N11:100

0101

TXID = 01, Status = 01 (successful
transaction)

Section 7.3

N11:101

0000

Port = 00, Size = 00 bytes

Section 7.3

N11:102

9001

Service = 90 (successful)
Address = 01 (Node Address)

Section 7.3