CRC16 (var, count)    
Purpose This function returns the computed CRC16 for a range of integers starting from variable "var" with the range indicated in the parameter "count". CRC16 is a 16-bit version of "Cyclic Redundancy Check" - a popular mathematical formula for checking error in a data stream.
Examples   DM[100] = CRC16(DM[5],8)
  X = CRC16(RELAY[2],4)
Comments: CRC16 for DM[5], DM[6]…..DM[12] will be assigned to DM[100]
CRC16 for RELAY[2], RELAY[3], RELAY[4] will be assigned to X.

backbutton.gif (507 bytes)  Basic to TBASIC Reference Manual