Preset multiple registers (function code 16) – ProSoft Technology 5201-MNET-ASCII User Manual

Page 67

Advertising
background image

MNET ♦ ProLinx Gateway

Modbus Protocol Specification

Modbus TCP/IP Interface Module

Driver Manual

ProSoft Technology, Inc.

Page 67 of 78

September 1, 2010

4.9

Preset Multiple Registers (Function Code 16)

Query
Holding registers existing within the controller can have their contents changed
by this message (a maximum of 60 registers). However, because the controller is
actively scanning, it also can alter the content of any holding register at any time.
The values are provided in binary up to the maximum capacity of the controller
(16-bit for the 184/384 and 584); unused high order bits must be set to zero.

Note: Function codes 5, 6, 15, and 16 are the only messages that will be recognized as valid for

broadcast.

Adr

Func

Hi

Add

Lo Add

Quantity

Byte

Cnt

Hi

Data

Lo

Data

Hi

Data

Lo Data Error Check

Field

11

10

00

87

00

02 04

00

0A

01

02

CRC

Response
The normal response to a function 16 query is to echo the address, function
code, starting address and number of registers to be loaded.

Adr

Func

Hi Addr

Lo Addr

Quantity

Error Check Field

11

10

00

87

00

02

56

Advertising