Specifications

JAROL Assumes the promotion of energy-saving technology as its own task!
117
discarded.
7.5.2 Be cautious to modify the parameters of PC group through communication, otherwise may cause
the communication interrupted .
7.5.3 In the same frame, if the span between two .near bytes more than 1.5 bytes interval, the behind
bytes will be assumed as the start of next message so that communication will failure.
7
7
7
7 .
.
.
. 6
6
6
6 CRC
CRC
CRC
CRC Check
Check
Check
Check
For higher speed, CRC-16 uses tables. The following are C language source code for CRC-16.
unsigned int crc_cal_value(unsigned char *data_value,unsigned char data_length)
{
int i;
unsigned int crc_value=0xffff;
while(data_length--)
{
crc_value^=*data_value++;
for(i=0;i<8;i++)
{
if(crc_value&0x0001)crc_value=(crc_value>>1)^0xa001;
else crc_value=crc_value>>1;
}
}
return(crc_value);
}