Re: Best Practices / Experiences from the field (Subscription/Polling for Data)
Hello Wolfgang, The answer will depend on the hardware you use for your machine, I can tell you based on my experience with Siemens equipment. *> If I am looking for gathering as detailed as possible Data from Machines… what would be first choice ? Subcription for ChangedValues ? Active Polling ? * Do you want a (1) record historical data with that resolution in the time signature or do you really want to (2) capture an event with that time precision? For the first case you can sample times by polling between 50 to 80 msec, this for an S7-300 and between 17 to 20 msec for an S7-400. I do not have an S7-1500 physically, but the performance should be close to that of an S7-400, the same should happen with VIPA CPUs. There are other sampling techniques for the S7-300 / 400 that guarantee a stable subscription with multiples of 100 msec. For the second case (events), you can use the data capture with the CPU warning system with the SFC ALARM, NOTIFY, etc. which guarantee the capture of data at ms, this is very well documented by Siemens. The important thing is that the timestamp comes from the PLC not from the computer where you are running PLC4X. *> I know that these are also quite machine/protocol specific questions but it would be interesting to learn what numbers could be achieved by using PLC4x ? * You are correct, the Modbus driver of PLC4X, I have captures of 10 msec, but we are talking about Pears and Apples. My grain of sand, Best regards, El jue., 14 may. 2020 a las 13:00, Wolfgang Huse () escribió: > Hi, > maybe you could share some experiences from realworld-use-cases how to > work with PLC4x ? > If I am looking for gathering as detailed as possible Data from Machines… > what would be first choice ? Subcription for ChangedValues ? Active Polling > ? > > What is an interval which is usable in real world for polling ? 100ms, > 10ms ? > > I know that these are also quite machine/protocol specific questions but > it would be interesting to learn what numbers could be achieved by using > PLC4x ? > > Mit freundlichen Grüßen – With kind regards > > Wolfgang Huse > > -- *CEOS Automatización, C.A.* *GALPON SERVICIO INDUSTRIALES Y NAVALES FA, C.A.,* *PISO 1, OFICINA 2, AV. RAUL LEONI, SECTOR GUAMACHITO,* *FRENTE A LA ASOCIACION DE GANADEROS,BARCELONA,EDO. ANZOATEGUI* *Ing. César García* *Cel: +58 414-760.98.95* *Hotline Técnica SIEMENS: 0800 1005080* *Email: support.aan.automat...@siemens.com *
Re: Best Practices / Experiences from the field (Subscription/Polling for Data)
Hi Wolfgang, I was working quite a bit with data polling using PLC4X. I used it with Camel Routes and right now I’m trying to implement Triggers for it, and schedulded polling. Fastes poll I heard that was used during my internship was 100ms. But often is more 1s or even more. BR, Etienne > Le 14 mai 2020 à 19:00, Wolfgang Huse a écrit : > > Hi, > maybe you could share some experiences from realworld-use-cases how to work > with PLC4x ? > If I am looking for gathering as detailed as possible Data from Machines… > what would be first choice ? Subcription for ChangedValues ? Active Polling ? > > What is an interval which is usable in real world for polling ? 100ms, 10ms ? > > I know that these are also quite machine/protocol specific questions but it > would be interesting to learn what numbers could be achieved by using PLC4x ? > > Mit freundlichen Grüßen – With kind regards > > Wolfgang Huse >
Best Practices / Experiences from the field (Subscription/Polling for Data)
Hi, maybe you could share some experiences from realworld-use-cases how to work with PLC4x ? If I am looking for gathering as detailed as possible Data from Machines… what would be first choice ? Subcription for ChangedValues ? Active Polling ? What is an interval which is usable in real world for polling ? 100ms, 10ms ? I know that these are also quite machine/protocol specific questions but it would be interesting to learn what numbers could be achieved by using PLC4x ? Mit freundlichen Grüßen – With kind regards Wolfgang Huse
[GitHub] [plc4x] ottobackwards opened a new pull request #156: changes to allow running tests not coupled to maven build phase
ottobackwards opened a new pull request #156: URL: https://github.com/apache/plc4x/pull/156 If you are just working on c, and in CLion or something, the dependency on BUILD_PHASE for the maven caller doesn't make sense. Changes so that you can work only in C. note: you still have to run mvn once to get unity to install in target. 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 to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: Missing Drivers in fat JAR
Hey, this is an issue that multiple people here faced... (cdutz, sruehl, myself at least). Can we do anything to document that better? I guess not? Julian Am 14.05.20, 15:59 schrieb "Wolfgang Huse" : Thanks a lot Chris... There was the Service transformer missing. I only had used the ManifestResourceTransformer (which is included in the pom.xml in the examples-folder). The Service transformer is inherited from the project root pom.xml Works now as expected Mit freundlichen Grüßen – With kind regards Wolfgang Huse On 5/14/20, 2:11 PM, "Christofer Dutz" wrote: Hi Wolfgang, if you are speaking about a project of yours where you are using the shade plugin, then you need to add a transformer to your plugin configuration. Every driver has a META-INF/services/org.apache.plc4x.java.api.PlcDriver file, which lists that particular driver. If you run the shade plugin without any transformer only one of these are packaged in the jar the others are omitted. That's why you have only one driver availale. In order to fix this please update your plugin configuration like we did in the examples: org.apache.maven.plugins maven-shade-plugin generate-uber-jar package shade ${app.main.class} *:* META-INF/*.SF META-INF/*.DSA META-INF/*.RSA Hope that helps. Chris Am 14.05.20, 10:31 schrieb "Wolfgang Huse" : Hi, i am builing a fat jar with maven shade plugin but if I run the application an error occurs: 17:32.651 [main] INFO o.apache.plc4x.java.PlcDriverManager - Instantiating new PLC Driver Manager with class loader jdk.internal.loader.ClassLoaders$AppClassLoader@55054057 10:17:32.653 [main] INFO o.apache.plc4x.java.PlcDriverManager - Registering available drivers... 10:17:32.658 [main] INFO o.apache.plc4x.java.PlcDriverManager - Registering driver for Protocol modbus (Modbus) Exception in thread "main" org.apache.plc4x.java.api.exceptions.PlcConnectionException: Unable to find driver for protocol 'opcua' Any hint how to include the needed classes for the drivers ? Mit freundlichen Grüßen – With kind regards Wolfgang Huse
Re: Missing Drivers in fat JAR
Thanks a lot Chris... There was the Service transformer missing. I only had used the ManifestResourceTransformer (which is included in the pom.xml in the examples-folder). The Service transformer is inherited from the project root pom.xml Works now as expected Mit freundlichen Grüßen – With kind regards Wolfgang Huse On 5/14/20, 2:11 PM, "Christofer Dutz" wrote: Hi Wolfgang, if you are speaking about a project of yours where you are using the shade plugin, then you need to add a transformer to your plugin configuration. Every driver has a META-INF/services/org.apache.plc4x.java.api.PlcDriver file, which lists that particular driver. If you run the shade plugin without any transformer only one of these are packaged in the jar the others are omitted. That's why you have only one driver availale. In order to fix this please update your plugin configuration like we did in the examples: org.apache.maven.plugins maven-shade-plugin generate-uber-jar package shade ${app.main.class} *:* META-INF/*.SF META-INF/*.DSA META-INF/*.RSA Hope that helps. Chris Am 14.05.20, 10:31 schrieb "Wolfgang Huse" : Hi, i am builing a fat jar with maven shade plugin but if I run the application an error occurs: 17:32.651 [main] INFO o.apache.plc4x.java.PlcDriverManager - Instantiating new PLC Driver Manager with class loader jdk.internal.loader.ClassLoaders$AppClassLoader@55054057 10:17:32.653 [main] INFO o.apache.plc4x.java.PlcDriverManager - Registering available drivers... 10:17:32.658 [main] INFO o.apache.plc4x.java.PlcDriverManager - Registering driver for Protocol modbus (Modbus) Exception in thread "main" org.apache.plc4x.java.api.exceptions.PlcConnectionException: Unable to find driver for protocol 'opcua' Any hint how to include the needed classes for the drivers ? Mit freundlichen Grüßen – With kind regards Wolfgang Huse
Re: Missing Drivers in fat JAR
Hi Wolfgang, if you are speaking about a project of yours where you are using the shade plugin, then you need to add a transformer to your plugin configuration. Every driver has a META-INF/services/org.apache.plc4x.java.api.PlcDriver file, which lists that particular driver. If you run the shade plugin without any transformer only one of these are packaged in the jar the others are omitted. That's why you have only one driver availale. In order to fix this please update your plugin configuration like we did in the examples: org.apache.maven.plugins maven-shade-plugin generate-uber-jar package shade ${app.main.class} *:* META-INF/*.SF META-INF/*.DSA META-INF/*.RSA Hope that helps. Chris Am 14.05.20, 10:31 schrieb "Wolfgang Huse" : Hi, i am builing a fat jar with maven shade plugin but if I run the application an error occurs: 17:32.651 [main] INFO o.apache.plc4x.java.PlcDriverManager - Instantiating new PLC Driver Manager with class loader jdk.internal.loader.ClassLoaders$AppClassLoader@55054057 10:17:32.653 [main] INFO o.apache.plc4x.java.PlcDriverManager - Registering available drivers... 10:17:32.658 [main] INFO o.apache.plc4x.java.PlcDriverManager - Registering driver for Protocol modbus (Modbus) Exception in thread "main" org.apache.plc4x.java.api.exceptions.PlcConnectionException: Unable to find driver for protocol 'opcua' Any hint how to include the needed classes for the drivers ? Mit freundlichen Grüßen – With kind regards Wolfgang Huse
Missing Drivers in fat JAR
Hi, i am builing a fat jar with maven shade plugin but if I run the application an error occurs: 17:32.651 [main] INFO o.apache.plc4x.java.PlcDriverManager - Instantiating new PLC Driver Manager with class loader jdk.internal.loader.ClassLoaders$AppClassLoader@55054057 10:17:32.653 [main] INFO o.apache.plc4x.java.PlcDriverManager - Registering available drivers... 10:17:32.658 [main] INFO o.apache.plc4x.java.PlcDriverManager - Registering driver for Protocol modbus (Modbus) Exception in thread "main" org.apache.plc4x.java.api.exceptions.PlcConnectionException: Unable to find driver for protocol 'opcua' Any hint how to include the needed classes for the drivers ? Mit freundlichen Grüßen – With kind regards Wolfgang Huse