Four-Faith F2164 User Manual page 28

F2x64 series
Hide thumbs Also See for F2164:
Table of Contents

Advertisement

Query all channels(all 8 channels) of analog input, command as following:
01 04 00 00 00 10 F1 C6
Parse command:
Byte-
1
2
orders
Content
01
04
Parsing
Slave
Functio
Address
n code
Meanin
01
Read
g
input
register
Response
01 04 20 00 00 01 82 00 00 00 0C 00 00 00 0C 00 00 00 0C 00 00 00 0C 00 00 00 0C 00 00 00 0C
00 00 00 0C B0 A2
Parse response:
Byte-
1
orders
Content
01
Parsing
Slave
address
Meaning
01
continue
8
9
10
00
00
00
Data 3
Data 4
Corresponding
Corresponding
to high 16 bits
to low 16 bits
of
second
of
channel value.
channel value.
Te
value
of
Te
each channel is
each channel is
3
4
00
00
Start Address
Address 0000-0010
correspond
AIN1-AIN8
2
3
04
20
Function
Data
code
length
Read
Byte
input
count
register
11
...
32
0C
...
00
...
Data 15
...
corresponding
to high 16 bits
second
of
channel value.
value
of
Te
each channel is
Email: allen@four-faith.com
Add: Floor 11, Area A06, No 370, chengyi street, Jimei, Xiamen, China
5
6
00
10
number of registers
Analog input value
to
is 32 bits, high 16
bits first. If read
one channel, this
parameter
should
be 0002
4
5
00
00
Data 1
Corresponding to high
16 bits of first channel
value. Te value of each
channel is a signed
32-bit data
33
34
35
00
00
0C
Data 16
corresponding
to low 16 bits
eighth
of
eighth
channel value.
value
of
Te
value
each channel is
Tel: +86-17750019379
F2X64 User Manual
7
8
F1
C6
Checksum
checksum
6
7
01
82
Data 2
Corresponding to low
16 bits of first channel
value. Te value of each
channel is a signed
32-bit data
36
37
B0
A2
Checksum
checksum
of
28 / 103
Web: www.four-faith.hk

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2264F2664F2464

Table of Contents