ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Воскресенье
7 июля
208962 Топик полностью
Koshak (01.09.2010 19:58, просмотров: 61) ответил teap0t на Вопрос по Modbus: в ASCII режиме при вычислении LRC надо брать исходные бинарные данные (то, что передаётся в RTU режиме) или канальные ascii (т.е. два передаваемых байта на каждый исходный байт) ?
исходные бинарные 
The LRC is calculated by adding together successive 8–bit bytes of the message, discarding any carries, and then two’s complementing the result. It is performed on the bytes of the message, before the encoding of each byte in the two ASCII characters corresponding to the hexadecimal representation of each nibble.