Télécharger Imprimer la page

ABB RVT6 Instructions D'installation, D'utilisation Et D'entretien page 504

Publicité

word crc(byte *buf,word start,word cnt)
{
word
i,j;
word
temp,temp2,flag;
temp=0xFFFF;
for (i=start; i<cnt; i++)
{
temp=temp ^ buf[i];
for (j=1; j<=8; j++)
{
}
}
/* Reverse byte order. */
temp2=temp >> 8;
temp=(temp << 8) | temp2;
temp &= 0xFFFF;
return(temp);
}
22 Modbus function codes ç RVT communication
flag=temp & 0x0001;
temp=temp >> 1;
if (flag) temp=temp ^ 0xA001;

Publicité

loading

Ce manuel est également adapté pour:

Rvt12Rvt12-3p