Preset multiple registers, Query, Response – Basler Electric BE1-851 Modbus Protocol User Manual

Page 13

Advertising
background image

9289900992 Rev F

BE1-851 Modbus

Protocol

1-5

Preset Multiple Registers

A preset multiple registers query could address multiple registers in one slave or multiple slaves. If the
query is a broadcast (device address = 0), no response message is returned.

Query

A Preset Multiple Register query message requests a register or block of registers to be written. The data
block contains the starting address and the quantity of registers to be written, followed by the Data Block
byte count and data. The BE1-851 will perform the write when the device address is the same as the
BE1-851 remote address or when the device address is 0. A device address is 0 for a broadcast query.

A register address of N will write Holding Register N+1.
Data will cease to be written if any of the following exceptions occur:

• Queries to write to Read only registers result in an error response with Exception Code of “Illegal

Data Address.”

• Queries attempting to write more than 100 registers cause an error response with Exception

Code “Illegal Function.”

• An incorrect Byte Count will result in an error response with Exception Code of “Illegal Data

Value.”

• There are several instances of registers that are grouped together to collectively represent a

single numerical BE1-851 data value (i.e., floating point data and 32-bit integer data). A query to
write a subset of such a register group will result in an error response with Exception Code “Illegal
Data Address.”

• A query to write a not allowed value (out of range) to a register results in an error response with

Exception Code of “Illegal Data Value.”

Device Address
Function Code =

10 (hex)

Starting Address Hi
Starting Address Lo
No. of Registers Hi
No. of Registers Lo
Byte Count
Data Hi
Data Lo
.
.
Data Hi
Data Lo
CRC Hi error check
CRC Lo error check

Response

The response message echoes the starting address and the number of registers. There is no response
message when the query is a broadcast (device address = 0).

Device Address
Function Code =

10 (hex)

Starting Address Hi
Starting Address Lo
No. of Registers Hi
No. of Registers Lo
CRC Hi Error Check
CRC Lo Error Check

Preset Single Register (Write Single Holding Register)

A Preset Single Register query message requests a single register to be written. The BE1-851 will
perform the write when the device address is the same as the BE1-851 remote address.

Advertising
This manual is related to the following products: