What I just noticed:
Think about that PR again
J
Because we would have to make the example available under EPL2.0 license when it is contained in our “ditto-examples” repo.
Regarding the ditto-clients:
What are you talking about? The Ditto Java client is released as 1.0.0:
https://search.maven.org/artifact/org.eclipse.ditto/ditto-client/1.0.0/bundle
I will add a “release” badge on the GitHub repo to make that more clear
J
Mit freundlichen Grüßen / Best regards
Thomas Jaeckle
Engineering Cloud Services 1 Bosch IoT Things (INST/ECS1)
Bosch.IO GmbH | Ziegelei 7 | 88090 Immenstaad |
GERMANY |
www.bosch.io
Sitz: Berlin, Registergericht: Amtsgericht Charlottenburg; HRB 148411 B
Aufsichtsratsvorsitzender: Dr.-Ing. Thorsten Lücke; Geschäftsführung: Dr. Stefan Ferber, Dr. Aleksandar Mitrovic, Yvonne Reckling
From: ditto-dev-bounces@xxxxxxxxxxx <ditto-dev-bounces@xxxxxxxxxxx>
On Behalf Of Julian Feinauer
Sent: Mittwoch, 15. Januar 2020 08:13
To: ditto developer discussions <ditto-dev@xxxxxxxxxxx>; Matthias Strljic <matthias.strljic@xxxxxxxxxxxxxxxxxxxx>
Subject: Re: [ditto-dev] Small Example of a digital twin of a Siemens S7 using PLC4X and Ditto
Hi Thomas,
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 : )
Best
Julian
Hi Julian.
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?
https://github.com/eclipse/ditto-examples
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
Thomas Jaeckle
Engineering Cloud Services 1 Bosch IoT Things (INST/ECS1)
Bosch.IO GmbH | Ziegelei 7 | 88090 Immenstaad |
GERMANY |
www.bosch.io
Sitz: Berlin, Registergericht: Amtsgericht Charlottenburg; HRB 148411 B
Aufsichtsratsvorsitzender: Dr.-Ing. Thorsten Lücke; Geschäftsführung: Dr. Stefan Ferber, Dr. Aleksandar Mitrovic, Yvonne Reckling
Hi folks,
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) : )
Best!
Julian