Longitudinal Redundancy Check for Modbus

Longitudinal Redundancy Check (LRC) for Modbus PLC Controllers using ASCII
1,7K Downloads
Aktualisiert 30. Dez 2008

Lizenz anzeigen

Longitudinal Redundancy Check (LRC) for Modbus PLC Controllers using ASCII
LRC.m - The value appended to the end of each communication to assure that the data received is not corrupted. The LRC is the 2's compliment negation of the sum. When the total adition in the LRC constitutes a number greater then 8bits only the lowest 8bits are used to compute the LRC. LRC.m has two modes, in mode 1 it compares the LRC received to one calculated and in mode 2 it calculates an LRC and appends it onto a string for outgoing communication.

Zitieren als

Steven Edmund (2024). Longitudinal Redundancy Check for Modbus (https://www.mathworks.com/matlabcentral/fileexchange/22557-longitudinal-redundancy-check-for-modbus), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2008a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Modbus Communication finden Sie in Help Center und MATLAB Answers
Quellenangaben

Inspiriert: Modbus RS232 ASCII Communication Functions

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0