Solved

CRC16 for ModBus RTU calculation

Posted on 2004-10-23
7,573 Views
Last Modified: 2013-12-26
Hi all

  I need to calculate CRC16 for ModBus RTU.

  I've found some CRC16 algorithms, but they are all CCITT CRC, not ModBus.

  ModBus uses the formula:

2^15 + 2^13 + 2^0

  Can anyone help me?

  Thanks in advance
0
Question by:SergioRos
    2 Comments
     
    LVL 76

    Accepted Solution

    by:
    There are several solutions here: http://modbus.control.com/dev/1026164935/index_html
    0
     

    Author Comment

    by:SergioRos
    Thanks, Graham. I've found the code I need in that web site

    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    856 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now