beautypg.com

Table 70 - 06h preset single register command, 1 byte, 2 bytes – Rockwell Automation 825-P Modular Protection System for Motors User Manual User Manual

Page 138: Slave address, Function code (06h), Register address, Data, Crc-16, Illegal register address, Illegal register value

background image

138

Rockwell Automation Publication 825-UM004D-EN-P - November 2012

Chapter 10 Modbus RTU Communications

Table 70 - 06h Preset Single Register Command

The relay responses to errors in the query are shown in Table 71.

Table 71 - Responses to 06h Preset Single Register Query Errors

10h Preset Multiple

Registers Command

This function code works much like code 06h, except that it allows you to write
multiple registers at once, up to 100 per operation. If you are accustomed to 4X
references with the function code, for six-digit addressing, simply add 400001 to
the standard database addresses.

Table 72 - 10h Preset Multiple Registers Command

Bytes

Field

Requests from the master must have the following format:

1 byte

Slave Address

1 byte

Function Code (06h)

2 bytes

Register Address

2 bytes

Data

2 bytes

CRC-16

Error

Error Code Returned

Communication Counter

Increments

Illegal register address

Illegal Data Address (02h)

Invalid Address

Illegal Write

Illegal register value

Illegal Data Value (03h)

Illegal Write

Format error

Illegal Data Value (03h)

Bad Packet Format

Bytes

Field

Requests from the master must have the following format:

1 byte

Slave Address

1 byte

Function Code (10h)

2 bytes

Starting Address

2 bytes

Number of Registers to Write

1 byte

Bytes of Data (n)

n bytes

Data

2 bytes

CRC-16

A successful response from the slave will have the following format:

1 byte

Slave Address

1 byte

Function Code (10h)