Re: Source Time of PLC Value?

2021-03-05 Thread Andreas Vogler
and OPC UA … but yes, maybe most protocols do not have this kind of information… Andreas > On 05.03.2021, at 22:00, Christofer Dutz wrote: > > Yeah, > > So far the only protocol I worked on, that supports this "quality of data" > feature, was the delta-v protocol. For all otbers we would

Re: Source Time of PLC Value?

2021-03-05 Thread Andreas Vogler
Currently I use ModBus, but the goal is to support any kind of PLC4X driver … My hope was that every PlcValue in PLC4X has a timestamp and a status … and if the protocol does not support it, then the timestamp/status should be “undefined” ... > On 05.03.2021, at 21:54, Julian Feinauer wrote:

Re: Source Time of PLC Value?

2021-03-05 Thread Christofer Dutz
Yeah, So far the only protocol I worked on, that supports this "quality of data" feature, was the delta-v protocol. For all otbers we would have to provide the constant max value. Unfortunately their was the only driver I wasn't able to finish. As I have no hardware available. So this

AW: Source Time of PLC Value?

2021-03-05 Thread Julian Feinauer
This is not a simple questing and depends on the protocol and device you are using. What are you using? J Von meinem Mobiltelefon gesendet Ursprüngliche Nachricht Von: Andreas Vogler Datum: Fr., 5. März 2021, 21:04 An: dev@plc4x.apache.org Betreff: Re: Source Time of PLC

Re: Source Time of PLC Value?

2021-03-05 Thread Andreas Vogler
Ah, forgot: and is there a status available? Valid/invalid/good/bad indicator of a plc value? > On 05.03.2021, at 21:02, Andreas Vogler wrote: > > Hi, > > How can I get the source time of a PlcValue? > > a) from a subscription PlcSubscriptionEvent > b) from a read request PlcReadResponse >

Source Time of PLC Value?

2021-03-05 Thread Andreas Vogler
Hi, How can I get the source time of a PlcValue? a) from a subscription PlcSubscriptionEvent b) from a read request PlcReadResponse Best regards, Andreas

Re: OPC UA Subscribe throws casting error ...

2021-03-05 Thread Andreas Vogler
Thank you Ben, for me it is not super important. For OPC UA I use Eclipse Milo “native” (without PLC4X)… I just wanted to test subscriptions with PLC4X. Is there a documentation of this sampling subscription api? I assume I can use that kind of subscription also with drivers which does not

Re: OPC UA Subscribe throws casting error ...

2021-03-05 Thread Ben Hutcheson
Hi Andreas, It looks like there's a bit of a mismatch between the PLC4X change of state api and the Milo subscription api. When using the change of state subscription that is used in the example a default duration gets used of 1 second it also doesn't look like it reports by exception which I

Re: OPC UA Subscribe throws casting error ...

2021-03-05 Thread Andreas Vogler
Thx, it works now. BUT: I only get values every one second… 13:21:54.177 [milo-shared-thread-pool-0] INFO o.a.p.j.e.h.s.HelloPlc4xSubscription - Field 'value-0' value: {"value":2.0,"isNullable":false} 13:21:55.178 [milo-shared-thread-pool-0] INFO o.a.p.j.e.h.s.HelloPlc4xSubscription - Field

Re: OPC UA Subscribe throws casting error ...

2021-03-05 Thread Ben Hutcheson
Hi Andreas, That looks like an issue specific to your setup. It seems it's not finding some of the other modules that the opcua driver and the example rely on. Can you build the entire project 'mvn clean && mvn install'? If you could send through some more info, maven logs, etc.. it would be

Re: OPC UA Subscribe throws casting error ...

2021-03-05 Thread Andreas Vogler
Hi Ben, with this Branch I get a build error - just opened it in Intellij and tried to run the subscribe example... /Users/vogler/Workspace/Private/plc4x/plc4j/drivers/ads/src/main/java/org/apache/plc4x/java/ads/configuration/AdsConfiguration.java:23:43 java: package

[GitHub] [plc4x] hutcheb commented on a change in pull request #227: Fix for opcua subscription

2021-03-05 Thread GitBox
hutcheb commented on a change in pull request #227: URL: https://github.com/apache/plc4x/pull/227#discussion_r588202176 ## File path: plc4j/drivers/opcua/src/main/java/org/apache/plc4x/java/opcua/connection/OpcuaTcpPlcConnection.java ## @@ -384,8 +385,8 @@ public void close()

[GitHub] [plc4x] splatch commented on a change in pull request #227: Fix for opcua subscription

2021-03-05 Thread GitBox
splatch commented on a change in pull request #227: URL: https://github.com/apache/plc4x/pull/227#discussion_r588187766 ## File path: plc4j/drivers/opcua/src/main/java/org/apache/plc4x/java/opcua/connection/OpcuaTcpPlcConnection.java ## @@ -384,8 +385,8 @@ public void close()

[GitHub] [plc4x] hutcheb opened a new pull request #227: Fix for opcua subscription

2021-03-05 Thread GitBox
hutcheb opened a new pull request #227: URL: https://github.com/apache/plc4x/pull/227 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go

Re: OPC UA Subscribe throws casting error ...

2021-03-05 Thread Ben Hutcheson
Hi Andreas, I also saw the same issue running the example. I have just pushed a branch to fix this bug/opcua_subscription. If you can try it out that would be great. Kind Regards Ben On Wed, Mar 3, 2021 at 3:12 PM Andreas Vogler wrote: > Hi Matthias, > > It’s > * Java 11.0.9 (Amazon

WG: PLC4X Board Report due by Wed Mar 10th - Initial Reminder

2021-03-05 Thread Christofer Dutz
Forwarding this to dev@ ... -Ursprüngliche Nachricht- Von: Christofer Dutz Gesendet: Freitag, 5. März 2021 09:47 An: priv...@plc4x.apache.org Betreff: AW: PLC4X Board Report due by Wed Mar 10th - Initial Reminder Hi all, So I just went through our emails and numbers and whipped up