#include
#defineuint8unsignedchar
#defineuint16unsignedint
#defineFOSC16000000
uint16BAUD=9600;
uint16TEMP_Alert=1000;
//字地址0-255(只取低8位)
//位地址0-255(只取低8位)
/*CRC高位字节值表*/
constuint8codeauchCRCHi[]={
0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x41,0x01,0xC0/**/,
0x80,0x41,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x41,
0x00,0xC1,0x81,0x40,0x00,0xC1,0x81,0x40,0x01,0xC0,
0x80,0x41,0x01,0xC0,0x80,0x41,0x00,0xC1,0x81,0x40,
0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x41,0x00,0xC1,
0x81,0x40,0x01,0xC0,0x80,0x
2024-01-17 10:12:10
132KB
MODBUS
1