兄弟,我用威綸通觸摸屏MT8072ie進(jìn)行modbus rtu獲取溫度,紅外測(cè)溫儀的接口是modbus rtu RS232的接口,參數(shù)是19200 8 N 1,設(shè)備地址是 0x15,獲取溫度的寄存器地址是0x0006,完整的指令是:
address function start address data length CRC
0x15 0x03 0x00 0x06 0x00 0x02 0x27 0x1
數(shù)據(jù)是低字節(jié)在前,高字節(jié)在后,在觸摸屏上怎么進(jìn)行宏定義編寫呢?