beautypg.com

Chapter 6, Planning your application program – B&B Electronics ADAM-5000_TCP - Manual User Manual

Page 105

background image

Chapter 6

Planning Your Application Program

Function Code 16 (10 hex) Preset values into a

sequence of holding registers. Request message

format for function code 16:

Command Body

Requested

Requested

Station

Address

Function

Code

Start

Address

Start

Address

Number of
Register

Number of

Register

Byte
Count

Data

High Byte Low Byte

High Byte

Low Byte


Example: Preset constant #1 (address 40009) to 100.0 in ADAM-5000/TCP.

01 10 00 09 00 02 04 42 C8 00 00

Response message format for function code 16:

The normal responses return the station address, function code, start
address, and requested number of registers preset.

Command Body

Requested

Requested

Station

Address

Function

Code

Start

Address
High Byte

Start

Address
Low Byte

Numberof

Register High

Byte

Numberof

Register Low

Byte

Example: 01 10 00 09 00 02




















6-38

ADAM-5000/TCP User’s Manual