Sign in to follow this  
Followers 0
Autom8n

CRC Computation in PLC

5 posts in this topic

I'm working on a project where I need to compute a CRC value for a group of bytes recieved from a serial device. The serial device sends the CRC value as a part of the string. I need to compute the CRC in the PLC and compare to the recieved CRC for a pass/fail signal. The protocol uses CRC16-CCITT to compute the CRC. I'm using an Allen-Bradley Compactlogix PLC to recieve the data. Any information that would help will be appreciated!!!

Share this post


Link to post
Share on other sites
Can you use BCC its alittle bit easier to compute?

Share this post


Link to post
Share on other sites
There is a Modbus logic routine in the RSLogix 5000 Samples folder. It has a functional (though not well documented) CRC routine in it. You need to know the polynomial being used and the seed value (usually 0000 or FFFF). The "CCITT-CRC16" description might include those pieces of information.

Share this post


Link to post
Share on other sites
Ken, I could not find the Modbus example. What is the title? Thanks!!

Share this post


Link to post
Share on other sites
In version 15 go to Help, Vendor Sample Projects

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0