range
messa
ge
exam
ple
frame
struct
ure
slave
respo
byte
nse
messa
ge
exam
ple
Remark: in the host inquiry, beginning from the lowest bit of relay action value, each
bit corresponds to a loop of relay output. "1" indicates the relay is closed, while "0"
indicates the relay is cut off. In the upper list, relay action value "0x03"is "0000
0011"in binary system, which means the first and second loops of relay are closed.
12.1.8 Write setup register (function code 0x10)
Host
Frame
reque
struct
st
ure
SAM3001 Manual de usuario V5
247
0x01
0x0F
addr
functi
ess
on
code
code
1
1byte
byte
0x01
0x0F
Addr
Functi
ess
on
code
code
-96-
00
0x0004
0x00
0x00
0x00
0x02
data code
initial
relay
address
2bytes
0x00 0x00
Data code
Leng
initial
th of
regist
regis
er
ter
addr
0x0
0x01
3
number
of
relay
2bytes
0x00 0x02
Chec
num
k
ber
code
Writ
of
e
regist
valu
16
0x9
E
0x9
6
CRC
che
ck
cod
e
2
byte
s
0xD
4
0x0
A