Rockwell Automation 20-COMM-M Modbus/TCP Adapter User Manual

Page 47

Advertising
background image

Using Modbus/TCP Function Codes

4-11

20-COMM-M Modbus/TCP Adapter User Manual

Publication 20COMM-UM014C-EN-P

Reading Device Parameters

1. Verify that the Unit Identifier is set to “0” (zero) or “16.”

2. Using

Table 4.J

and its associated formula, determine the value to use

for an adapter Indirect Par #x that points to the specific device
parameter you want to read. For example, suppose adapter Parameter
38 - [Indirect Par #1]
is used and you want to read drive Parameter 003
- [Output Current] or drive Parameter 012 - [DC Bus Voltage]. In this
case, set adapter Parameter 38 - [Indirect Par #1] to a value of “3” or
“12” respectively.

3. Use Function Code 03 or 23 (

Table 4.A

) to read the value(s) of specific

device parameter(s). For this example, read register addresses 10041
and 10042 for adapter Indirect Parameter #1 Data as shown in

Table 4.K

.

Table 4.K Register Addresses for Indirect Parameter Data

Register
Address

Description

Detail

10041

Indirect Parameter #1 Data

Lo Word

10042

Hi Word

10043

Indirect Parameter #2 Data

Lo Word

10044

Hi Word

10045

Indirect Parameter #3 Data

Lo Word

10046

Hi Word

10047

Indirect Parameter #4 Data

Lo Word

10048

Hi Word

10049

Indirect Parameter #5 Data

Lo Word

10050

Hi Word

10051

Indirect Parameter #6 Data

Lo Word

10052

Hi Word

10053

Indirect Parameter #7 Data

Lo Word

10054

Hi Word

10055

Indirect Parameter #8 Data

Lo Word

10056

Hi Word

10057

Indirect Parameter #9 Data

Lo Word

10058

Hi Word

10059

Indirect Parameter #10 Data

Lo Word

10060

Hi Word

10061

Indirect Parameter #11 Data

Lo Word

10062

Hi Word

10063

Indirect Parameter #12 Data

Lo Word

10064

Hi Word

10065

Indirect Parameter #13 Data

Lo Word

10066

Hi Word

10067

Indirect Parameter #14 Data

Lo Word

10068

Hi Word

10069

Indirect Parameter #15 Data

Lo Word

10070

Hi Word

10071

Indirect Parameter #16 Data

Lo Word

10072

Hi Word

Advertising