S
S
Slavka2016-01-18 13:03:25
C++ / C#
Slavka, 2016-01-18 13:03:25

ModBus ASCII checksum calculation?

in general, how to calculate the checksum for this protocol? found only for RTU

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lamazavr, 2016-01-18
@Slavka_online

In ASCII mode, the LRC algorithm is used to calculate the checksum. Moreover, the checksum is carried out over all bytes of the frame, except for the start and stop sequence of characters.
There is a description and an example in C
atic.ru/index.php?option=com_rokdownloads&view=fil...
ps though it's kind of shabby

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question