Be the first to rate this file! 5 Downloads (last 30 days) File Size: 3 KB File ID: #22557

Longitudinal Redundancy Check for Modbus

by Steven Edmund

 

30 Dec 2008

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

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
lrc Steven Edmund 31 Dec 2008 09:12:49
longitudinal redundancy check Steven Edmund 31 Dec 2008 09:12:49
modbus Steven Edmund 31 Dec 2008 09:12:49
ascii communication Steven Edmund 31 Dec 2008 09:12:49
instrument driver Steven Edmund 31 Dec 2008 09:12:50
network communication Steven Edmund 31 Dec 2008 09:12:50

Contact us at files@mathworks.com