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:
Com
m
a
nd
B
ody
St
a
ti
on Addr
es
s
F
unc
ti
on Code
A
n
y
d
ata
,
len
g
t
h
limite
d
t
o
a
pp
r
o
x
ima
t
ely
half
t
h
e
l
e
ngt
h
o
f t
he
da
t
a
buf
f
e
r
6-36 ADAM-5000/TCP User’s Manual