179
End:
To keep an idle more than 6ms as an end.
CRC calculation example
:
The following is an example of CRC generation using C language. The function takes two variables.
unsigned char* data;
unsigned char length
This function returns the CRC value as unsigned integer type.
unsigned int crc_chk(unsigned char* data, unsigned char length)
{
int j;
unsigned int reg_crc=0xFFFF;
while( length-- )
{
reg_crc^= *data++;
for (j=0; j<8; j++ )
{
if( reg_crc & 0x01 )
/*LSB(bit 0 ) = 1 */
reg_crc = (reg_crc >> 1)^0xA001;
else
reg_crc = (reg_crc>>1);
}
}
return reg_crc;
}
Summary of Contents for SDE Series
Page 13: ...5 1 6 Function block diagram ...
Page 26: ...18 3 3 3 CN1 pin name list ...
Page 223: ...215 SME L040 SME L075 SME L100 SME L150 ...
Page 224: ...216 SME L200 SME L300 SME M100 SME M150 Continuous running range ...
Page 227: ...219 ...
Page 231: ...223 4 Wiring example with peripheral equipment CN2 Encoder socket ...
Page 242: ...234 12 4 Version information Version V1 01 Issue date Aug 2017 Proofreader Yaochou Shu ...