M
Hi Everyone,
I developed a Modbus RTU slave in C (windows environment). Is the CRC format [Lobyte] [Hibyte] both in request and answer frame? For calculating the CRC I used the function that is reported on the standard document (Modbus_over_serial_line_V1_02) and the function should return the CRC in the format [Lo][Hi], but when I try the application with a Modbus master simulator (e.g SimplyModbus 6.3.6 or Modscan32) the CRC's that I receive are always swapped comparing to the one calculated from the function. Now, according to the standard, is the function or the simulator wrong! Thanks everyone!
Marcello
I developed a Modbus RTU slave in C (windows environment). Is the CRC format [Lobyte] [Hibyte] both in request and answer frame? For calculating the CRC I used the function that is reported on the standard document (Modbus_over_serial_line_V1_02) and the function should return the CRC in the format [Lo][Hi], but when I try the application with a Modbus master simulator (e.g SimplyModbus 6.3.6 or Modscan32) the CRC's that I receive are always swapped comparing to the one calculated from the function. Now, according to the standard, is the function or the simulator wrong! Thanks everyone!
Marcello