Добрый день.
Есть модуль сбора данных с 8 температурных датчиков - WP3066ADAM, RS485
В инструкции написано как с ним общаться.
Каким образом соотнести данные последовательности с функциями GetData и SetData. Или может еще есть способ общения панели Weintek MT8070IP с ним?
Command for collecting the input signal of analog quantity:
Send:01 03 00 00 00 08 44 0C (example/hexadecimal)
data byte data description remark
01 1 module address address range:01-FE
03 1 function code 03-read register
0000 2 register address (4x mode) 0000-analog input address of first register
0008 2 reading length 0008-read 8 registers
440C 2 CRC check code CRC check code for all data
Receive: 01 03 10 00 F2 FF FF FF FF FF FF FF FF FF FF FF FF FF FF 68 9C (example/hexadecimal)
data byte data description remark
01 1 module address address range:01-FE
03 1 function code 03-read register
10 1 byte numbers 10-read 16 bytes
00F2
FFFF
FFFF
FFFF
FFFF
FFFF
FFFF
FFFF
16 read data 00F2 –read data from sensor 1
FFFF -read data from sensor 2
FFFF -read data from sensor 3
FFFF -read data from sensor 4
FFFF -read data from sensor 5
FFFF -read data from sensor 6
FFFF -read data from sensor 7
FFFF -read data from sensor 8
689C 2 CRC check code CRC check code for all data
Reading data is hexadecimal which needs to be converted to decimal. Put the data in the formula and calculate.
A、data = 65535, temperature sensor is not connected
B、data>10000 but not =65535, measured temperature is below 0℃
TEMP = -(DATA-10000)/10
C、data <10000, measured temperature is over 0℃
TEMP = DATA/10