Jump to content

Modbus PLC Client


Recommended Posts

I've put together a wrapper to the Plasmionique Modbus Master library that makes communication with PLCs a bit easier. It could be used for just about any Modbus device, but I had PLCs in mind when I was developing it.

What is easier?
- Modicon-style addressing instead of data address and function code.
- Data-type conversion built-in(eg. 32-bit float mapped to two U16 registers). Word swapping option.
- Poll list and cached data block. Allows you to poll a range of registers then lookup and convert the values elsewhere.

image.png.17360f6ac081ba5262ebabcbac174cdd.png

The code is up on GitHub: https://github.com/rfporter/Modbus-PLC-Client

Its a rough draft at the moment. Comments are welcome and appreciated.

  • Like 1
Link to comment
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.