Modbus CRC subroutine


Thread Starter

Robert Berg

Mudassir's elegant Visual Basic subroutine for calculating the CRC (See - moderator) seemed to be just what I needed to talk to my new temperature controller. Unfortunately, the subroutine's output disagrees with 5 of the 12 examples in the controller manual. For each of the unsuccessful examples, the expected decimal CRC value was greater than 2^14. Should the subroutine be able to handle such large CRC values?