|Re: [ditto-dev] Small Example of a digital twin of a Siemens S7 using PLC4X and Ditto|
thanks for the feedback.
PLC4X has such an API (its called subscriptions) but not every PLC supports it, thus we in our company we mostly use a tool called the “scraper” which emulates that (we have PLCs in the field which are > 20 years old…).
But we could e.g. add an OPC UA Example (which supports Subscriptions) in the next days.
@Matthias Strljic interested in doing it? 😝
And regarding your other questions:
Yes, of course you can add it and I can prepare a PR for you.
On the other hand I also would like to add it to the “integrations” section for PLC4X but for that I need a Release of ditto-clients, so hurry up : )
That’s awesome, thanks for sharing.
The integration of both PLC4X and Ditto Java client looks straight forward.
Does PLC4X also provide a “noticfication” API style?
So that one does not have to poll each 100ms, but register for changes and directly change the Ditto twin as a result.
I’m not at all familiar with PLC programming, so excuse me if that is a stupid question J
Could we add this example to the “ditto-examples” repo?
That way it would – from a Ditto side – be more prominent and cross-reference to the PLC4X project.
If yes, a PullRequest would be awesome J
Mit freundlichen Grüßen / Best regards
I cross post this on both list, as I think these two projects are a perfect fit together.
I made a small example outlining how one could create a digital twin for a (real) PLC using Eclipse Ditto and Apache PLC4X.
Please feel free to ask questions or discuss your ideaas around that : )
Link (Twitter with Proof images from a REAL Simens S7): https://twitter.com/jfeinauer2/status/1217133458872524800
Github Repo: https://github.com/JulianFeinauer/ditto-plc4x-example (Apache Licensed, sorry Eclipse people, my heart simply belongs to Apache <3) : )
Back to the top