File Exchange

image thumbnail

Longitudinal Redundancy Check for Modbus

version 1.0 (3 KB) by

Longitudinal Redundancy Check (LRC) for Modbus PLC Controllers using ASCII

1 Download

Updated

View License

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.

Comments and Ratings (0)

MATLAB Release
MATLAB 7.6 (R2008a)
Acknowledgements

Inspired: Modbus RS232 ASCII Communication Functions

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video