Re: [VOTE] Apache PLC4X 0.7.0 RC2
Hi, +1 (binding) I checked: - signatures and hashes are fine - LICENSE and NOTICE are good - All source files have ASF headers - No unexpected binary files - Can compile from source Thanks, Justin
Re: Exploring Plc4x
Hi Lukas, went through the video mentioned. But I didn't get which siemens simulator they used for demo? Can some one let me know free siemens s7 plc simulator for poc purpose? On Monday, May 18, 2020, Lukas Ott wrote: > Hi Venki welcome to the PLC4X community, > > First direction we can point you to is the webinar from Julian: > https://youtu.be/MIp_0OcDTr4 There he shows in detail how to connect > Siemens PLCs to PLC4X. > Additionally he shows you how to connect to a simulated PLC server which is > maybe what you are looking for to test and develop your application with > the Kafka connector. > > Best regards, > Lukas > > Am Mo., 18. Mai 2020 um 16:04 Uhr schrieb venki hadoop < > hadoopons...@gmail.com>: > > > -- Forwarded message -- > > From: *venki hadoop* > > Date: Saturday, May 16, 2020 > > Subject: Exploring Plc4x > > To: dev-subscr...@plc4x.apache.org > > Cc: chtistofer.d...@c-ware.de > > > > > > Hello Everyone, > > Am a big data/cloud architect working on analytics from > > India. Was working in IOT industry since 2 years with different clients > but > > mostly on analytics side than machine side. Recently when exploring about > > IIOT got to know about plc4x tool. Since then trying to explore and > present > > to larger audience in my company if it suits our requirements. > >So what am > > planning right now is : Read > > streaming data from siemens device and push it Kafka from there > dashboard. > > From examples provided in documentation was able to easily correlate > > pushing data into Kafka and afterwards. But as I don't have any > experience > > it's hard to understand for me about the device configuration and > > integrating with plc4x( I know this are basic plc questions, please bear > me > > with me for some time). Now in order to start my poc, I need fallowing > > information. Can someone help me on this. 1. Any siemens plc > > device simulator for poc? 2. What configuration we > > need and we have to check from plc side( assuming I have some temperature > > kind of sensor). > > 3. How to point to plc output data from Kafka > > connect?( Was confused with memory blocks, fields, etc in the code). > > > > I know this are very basic questions from plc side, but my no > > experience with plc side make me hard to understand using Google. > >Last but not least, thanks > > Christofer for introducing me for this platform and plc4x tool. > >Best Regards, > > >
Re: [Modbus] Querying Values from Holding Register
Hi. In this branch you can find the modifications to the Modbus 0.6.0 driver to read scalar types from the same requested field. https://github.com/glcj/plc4x/tree/s7alarm In the future we must follow the new driver model 0.7.0 I hope it is useful for you, Best regards, El mié., 20 may. 2020 a las 6:52, udeho () escribió: > Hi Chris, > > yes, I use the 0.6.0 version. > Great, I will try to do it again when the new version is available and let > you know whether it works. > Thank you very much! > > Best > Tim > > -Original Message- > From: Christofer Dutz > Sent: Mittwoch, 20. Mai 2020 11:28 > To: dev@plc4x.apache.org > Subject: Re: [Modbus] Querying Values from Holding Register > > Hi Tim, > > I guess you are using one of the "old generation" drivers (As you say it's > working and the address seems to imply that). > Perhaps you should either try the version 0.8.0-SNAPSHOT or wait for 2 > more days till we release the 0.7.0 version. > > In the 0.7.0 version we have completely deleted all existing drivers and > replaced them by new ones. > While at it I took the liberty of making the Modbus a little more robust. > > So it would be great if you could give us feedback if your problem goes > away magically when updating to these driver versions. > > Chris > > > > Am 20.05.20, 10:24 schrieb "udeho" : > > Hi all, > > I have tried to query values from the holding register of a simulated > modbus device and process them as integer using the following code: > // read integer / holding register > PlcDriverManager driverManager = new > PlcDriverManager(); > String conString = "modbus:tcp://localhost"; > PlcConnection plcCon = > driverManager.getConnection(conString); > PlcReadRequest.Builder builder = > plcCon.readRequestBuilder(); > builder.addItem("value", "readholdingregisters:1"); > PlcReadRequest readRequest = builder.build(); > PlcReadResponse resp = readRequest.execute().get(); > > This runs well, but when I try to handle the result as integer (using > resp.getInteger("value")) I always get null as result no matter what's in > the register. > For Boolean values in the coil this works without any problem (using > getBoolean() of course). > Another approach I tried is using the getAllByteArrays("value"); > command, but I haven't found a way to get the returned collection of byte > arrays into integers. > > Can you give me an indication of what my problem may be or what I'm > doing wrong? > > Thank you very much in advance! > > Best > Tim > > -- *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: [Modbus] Querying Values from Holding Register
Hi Chris, yes, I use the 0.6.0 version. Great, I will try to do it again when the new version is available and let you know whether it works. Thank you very much! Best Tim -Original Message- From: Christofer Dutz Sent: Mittwoch, 20. Mai 2020 11:28 To: dev@plc4x.apache.org Subject: Re: [Modbus] Querying Values from Holding Register Hi Tim, I guess you are using one of the "old generation" drivers (As you say it's working and the address seems to imply that). Perhaps you should either try the version 0.8.0-SNAPSHOT or wait for 2 more days till we release the 0.7.0 version. In the 0.7.0 version we have completely deleted all existing drivers and replaced them by new ones. While at it I took the liberty of making the Modbus a little more robust. So it would be great if you could give us feedback if your problem goes away magically when updating to these driver versions. Chris Am 20.05.20, 10:24 schrieb "udeho" : Hi all, I have tried to query values from the holding register of a simulated modbus device and process them as integer using the following code: // read integer / holding register PlcDriverManager driverManager = new PlcDriverManager(); String conString = "modbus:tcp://localhost"; PlcConnection plcCon = driverManager.getConnection(conString); PlcReadRequest.Builder builder = plcCon.readRequestBuilder(); builder.addItem("value", "readholdingregisters:1"); PlcReadRequest readRequest = builder.build(); PlcReadResponse resp = readRequest.execute().get(); This runs well, but when I try to handle the result as integer (using resp.getInteger("value")) I always get null as result no matter what's in the register. For Boolean values in the coil this works without any problem (using getBoolean() of course). Another approach I tried is using the getAllByteArrays("value"); command, but I haven't found a way to get the returned collection of byte arrays into integers. Can you give me an indication of what my problem may be or what I'm doing wrong? Thank you very much in advance! Best Tim
Re: [Modbus] Querying Values from Holding Register
Hi Tim, I guess you are using one of the "old generation" drivers (As you say it's working and the address seems to imply that). Perhaps you should either try the version 0.8.0-SNAPSHOT or wait for 2 more days till we release the 0.7.0 version. In the 0.7.0 version we have completely deleted all existing drivers and replaced them by new ones. While at it I took the liberty of making the Modbus a little more robust. So it would be great if you could give us feedback if your problem goes away magically when updating to these driver versions. Chris Am 20.05.20, 10:24 schrieb "udeho" : Hi all, I have tried to query values from the holding register of a simulated modbus device and process them as integer using the following code: // read integer / holding register PlcDriverManager driverManager = new PlcDriverManager(); String conString = "modbus:tcp://localhost"; PlcConnection plcCon = driverManager.getConnection(conString); PlcReadRequest.Builder builder = plcCon.readRequestBuilder(); builder.addItem("value", "readholdingregisters:1"); PlcReadRequest readRequest = builder.build(); PlcReadResponse resp = readRequest.execute().get(); This runs well, but when I try to handle the result as integer (using resp.getInteger("value")) I always get null as result no matter what's in the register. For Boolean values in the coil this works without any problem (using getBoolean() of course). Another approach I tried is using the getAllByteArrays("value"); command, but I haven't found a way to get the returned collection of byte arrays into integers. Can you give me an indication of what my problem may be or what I'm doing wrong? Thank you very much in advance! Best Tim
Re: Exploring Plc4x
Hi Team,. Was able to successfully push data from OPC UA server using poll mechanism by fallowing example hello-kafka connectivity. Now I started testing with mod bus plc then logstash and elastic search. Will update and post if I have any questions here. On Tuesday, May 19, 2020, venki hadoop wrote: > Hi, > I was able to use prosys OPC UA simulator and able to read simulated data > using plc4x. Fallowed plc4x documentation with couple of changes. >Now want to extend this by pushing this data to > Kafka using kafka connector. So I went through the example provided in > GitHub , have couple of questions:. 1 . Is that example > general to any protocal or only for any specific protocal? > 2. If it is general, I > don't understand memeory block field in plc configuration pojo? Bcz in OPC > UA example o just used filed name to retrieve simulated value. >Regards,. > Venkatesh > On Monday, May 18, 2020, venki hadoop wrote: > >> Thanks Lukas, Let me go through the video and will post updated about my >> POC status in this thread. >> >> On Monday, May 18, 2020, Lukas Ott wrote: >> >>> Hi Venki welcome to the PLC4X community, >>> >>> First direction we can point you to is the webinar from Julian: >>> https://youtu.be/MIp_0OcDTr4 There he shows in detail how to connect >>> Siemens PLCs to PLC4X. >>> Additionally he shows you how to connect to a simulated PLC server which >>> is >>> maybe what you are looking for to test and develop your application with >>> the Kafka connector. >>> >>> Best regards, >>> Lukas >>> >>> Am Mo., 18. Mai 2020 um 16:04 Uhr schrieb venki hadoop < >>> hadoopons...@gmail.com>: >>> >>> > -- Forwarded message -- >>> > From: *venki hadoop* >>> > Date: Saturday, May 16, 2020 >>> > Subject: Exploring Plc4x >>> > To: dev-subscr...@plc4x.apache.org >>> > Cc: chtistofer.d...@c-ware.de >>> > >>> > >>> > Hello Everyone, >>> > Am a big data/cloud architect working on analytics >>> from >>> > India. Was working in IOT industry since 2 years with different >>> clients but >>> > mostly on analytics side than machine side. Recently when exploring >>> about >>> > IIOT got to know about plc4x tool. Since then trying to explore and >>> present >>> > to larger audience in my company if it suits our requirements. >>> >So what >>> am >>> > planning right now is : Read >>> > streaming data from siemens device and push it Kafka from there >>> dashboard. >>> > From examples provided in documentation was able to easily correlate >>> > pushing data into Kafka and afterwards. But as I don't have any >>> experience >>> > it's hard to understand for me about the device configuration and >>> > integrating with plc4x( I know this are basic plc questions, please >>> bear me >>> > with me for some time). Now in order to start my poc, I need fallowing >>> > information. Can someone help me on this. 1. Any siemens plc >>> > device simulator for poc? 2. What configuration >>> we >>> > need and we have to check from plc side( assuming I have some >>> temperature >>> > kind of sensor). >>> > 3. How to point to plc output data from Kafka >>> > connect?( Was confused with memory blocks, fields, etc in the code). >>> > >>> > I know this are very basic questions from plc side, but my no >>> > experience with plc side make me hard to understand using Google. >>> >Last but not least, >>> thanks >>> > Christofer for introducing me for this platform and plc4x tool. >>> >Best Regards, >>> > >>> >>
[Modbus] Querying Values from Holding Register
Hi all, I have tried to query values from the holding register of a simulated modbus device and process them as integer using the following code: // read integer / holding register PlcDriverManager driverManager = new PlcDriverManager(); String conString = "modbus:tcp://localhost"; PlcConnection plcCon = driverManager.getConnection(conString); PlcReadRequest.Builder builder = plcCon.readRequestBuilder(); builder.addItem("value", "readholdingregisters:1"); PlcReadRequest readRequest = builder.build(); PlcReadResponse resp = readRequest.execute().get(); This runs well, but when I try to handle the result as integer (using resp.getInteger("value")) I always get null as result no matter what's in the register. For Boolean values in the coil this works without any problem (using getBoolean() of course). Another approach I tried is using the getAllByteArrays("value"); command, but I haven't found a way to get the returned collection of byte arrays into integers. Can you give me an indication of what my problem may be or what I'm doing wrong? Thank you very much in advance! Best Tim
[BUILD-FAILURE]: Job 'PLC4X/PLC4X/develop [develop] [885]'
BUILD-FAILURE: Job 'PLC4X/PLC4X/develop [develop] [885]': Check console output at "https://builds.apache.org/job/PLC4X/job/PLC4X/job/develop/885/;>PLC4X/PLC4X/develop [develop] [885]"
Re: [VOTE] Apache PLC4X 0.7.0 RC2
+1 Binding Chris [OK] Download all staged artifacts under the url specified in the release vote email into a directory we’ll now call download-dir. [OK] Verify the signature is correct: Additional Apache tutorial on how to verify downloads can be found here. [OK] Check if the signature references an Apache email address. [OK] Verify the SHA512 hashes: [OK] Unzip the archive: [OK] Verify the existence of LICENSE, NOTICE, README, RELEASE_NOTES files in the extracted source bundle. [OK] Verify the content of LICENSE, NOTICE, README, RELEASE_NOTES files in the extracted source bundle. [OK] [RM] Verify the staged source README, RELEASE_NOTE files correspond to those in the extracted source bundle. [OK] [RM] Run RAT externally to ensure there are no surprises. [OK] Search for SNAPSHOT references: Only found in commented out dependencies and disabled parts of the project (Parts not yet deleted) [OK] Search for Copyright references, and if they are in headers, make sure these files containing them are mentioned in the LICENSE file: No findings in a bad form, however it seems some files use other apache headers as others (Some files have apache headers containing the word "copyright" but most don't) [OK] Build the project according to the information in the README.md file [OK] [RM] Build the project with all with-xyz profiles and tests enabled and an empty maven local repo: by appending -Dmaven.repo.local=../.m2. I did notice a copy+paste error in the vote email ... the nexus repo is missing a "-" before the last 4 digits. Am 19.05.20, 23:19 schrieb "Otto Fowler" : +1 ( FWIW) Followed the validation steps, built on java 8 On May 19, 2020 at 15:50:37, Lukas Ott (ott.lukas...@gmail.com) wrote: +1 (binding) Download all staged artifacts - OK Verify the signature is correct - OK Verify the SHA512 hashes - OK Verify the existence and content of LICENSE, NOTICE, README, RELEASE_NOTES - OK Search for SNAPSHOT references - OK BUILD SUCCESS with: "mvn -P with-sandbox,with-dotnet install" OS: Ubuntu 20.04 LTS Java Version: openjdk version "11.0.7" Maven Version: Apache Maven 3.6.3 dotnet Version: 3.1.202 No additional findings - works for me Am Di., 19. Mai 2020 um 21:01 Uhr schrieb Christofer Dutz < christofer.d...@c-ware.de>: > Apache PLC4X 0.7.0 has been staged under [2] and it’s time to vote > on accepting it for release. All Maven artifacts are available under [1]. > Voting will be open for 72hr. > > A minimum of 3 binding +1 votes and more binding +1 than binding -1 > are required to pass. > > Release tag: release/0.7.0 > Hash for the release tag: a936a9fe1935470f6103f2dcde6d6608d99ddf73 > > Per [3] "Before voting +1 PMC members are required to download > the signed source code package, compile it as provided, and test > the resulting executable on their own platform, along with also > verifying that the package meets the requirements of the ASF policy > on releases." > > You can achieve the above by following [4]. > > [ ] +1 accept (indicate what you validated - e.g. performed the non-RM > items in [4]) > [ ] -1 reject (explanation required) > > > [1] https://repository.apache.org/content/repositories/orgapacheplc4x1028 > [2] https://dist.apache.org/repos/dist/dev/plc4x/0.7.0/rc2 > [3] https://www.apache.org/dev/release.html#approving-a-release > [4] https://plc4x.apache.org/developers/release/validation.html > > >