beautypg.com

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

Page 103

background image

Chapter 6

Planning Your Application Program

Response message format for function code 05: The normal response is
an echo of the query, returned after the coil state has been forced.



Station



Function



Coil




Command Body


Coil



Force



Force Data

Address

Code

Address

High Byte

Address

Low Byte

Data High Byte

Low Byte

Function Code 06

Presets integer value into a single register.

Request message format for function code 06:

Command Body

Station

Address

Function

Code

Register

Address
High Byte

Register

Address
Low Byte

Preset

Data High Byte

Preset

Data Low Byte

Example: Preset register 40002 to 00 04 hex in ADAM-5000/TCP

01 06 00 02 00 04

Response message format for function code 06: The normal response is
an echo of the query, returned after the coil state has been preset.

Command Body

Station

Address

Function

Code

Register

Address
High Byte

Register

Address
Low Byte

Preset

DataHigh Byte

Preset

DataLow Byte

Function Code 08

Echoes received query message. Message can be any length up to half
the length of the data buffer minus 8 bytes. Request message format for
function code 08:

Command Body

Station Address

Function Code

Any data, length limited to approximately half the

length of the data buffer



6-36

ADAM-5000/TCP User’s Manual