Giter Club home page Giter Club logo

modbusdl's Introduction

ModBusDL

A simple program to poll PLCs for information through a TCP Connection and then dump the information either into a CSV file or a MySQL database. Requires that the PLC writes a 1 into a specified "flag" register when there is information to log. ModBusDL sets this register back to a 0 when it has grabbed the data.

To start logging you first create a new PLC and fill in all the settings required. Once finished you will be presented with the Polling Screen, set the Polling Delay and click run. ModBusDL will now check the PLC every X seconds to see if the flag bit is set to a 1.

You can set ModBusDL to split the CSVs/Tables by day, month , or year.

You can also run ModBusDL from the command line using the following format:

python ModBusDL.py -c <name of PLC> -t <time delay in seconds>

or put a bunch of these one liners in a .bat file and have all your datalogging happen in the background.

NOTE:

  • I have only tested ModBusDL on a limited number of PLCs and can not guarantee it will work out of the box for you. I have had it running for over a year polling 5 different PLCs with no issues. If you do run into an error let me know, or better yet submit a pull request :)

Some more information as well as some screen shots can be found here

Contributing

Feel free to fork and send pull requests. Contributions welcome.

Credit

ModBusDL would not perform without the awesome pymodbus library.

License

This script is open source software released under the GNU GENERAL PUBLIC LICENSE V3.

modbusdl's People

Contributors

umrysh avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar  avatar Steve Smith avatar

Forkers

walternate

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.