You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@plc4x.apache.org by Patrick Boisclair <pb...@noovelia.com> on 2022/07/04 20:14:13 UTC

Question about Ethernet/IP writing BOOL values to the PLC

Hi all,

I'm currently trying to WRITE a BOOL value to an Allen Bradley over Ethernet/IP.
Reading the values works just fine. Reading and WRITING DINT values works as well.

However, when writing a BOOL it hangs and then fails with:
2022-07-04 16:08:38.289 [nioEventLoopGroup-5-1] WARN  i.n.channel.DefaultChannelPipeline - An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.
java.net.SocketException: Connection reset
                at java.base/sun.nio.ch.SocketChannelImpl.throwConnectionReset(SocketChannelImpl.java:394)
                at java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:426)
                at io.netty.buffer.PooledByteBuf.setBytes(PooledByteBuf.java:258)
                at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1132)
                at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:350)
                at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:151)
                at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:722)
                at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:658)
                at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:584)
                at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)
                at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
                at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
                at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
                at java.base/java.lang.Thread.run(Thread.java:833)

In fact all those values (see image) works for reading (ALL WORK) and writing (BOOL ONLY FAILS):
[cid:image001.png@01D88FC0.8D041F20]


My connection string is:   eip://x.x.x.x?backplane=1&slot=0

For example: trying to WRITE to: %Rejet_Boite_OK:BOOL fails. Reading works.

Any input on this ?

Ty all for your help really appreciated


Patrick Boisclair
Analyste - Programmeur senior
Senior Analyst Programmer
noovelia.com

RE: Question about Ethernet/IP writing BOOL values to the PLC

Posted by Patrick Boisclair <pb...@noovelia.com>.
Ty Chris,

I'll translate this into Gradle Kotlin 😊

Really appreciate all the support, thank you !


Patrick Boisclair
Analyste - Programmeur senior
Senior Analyst Programmer
noovelia.com
-----Original Message-----
From: Christofer Dutz <ch...@c-ware.de> 
Sent: Tuesday, July 5, 2022 8:40 AM
To: dev@plc4x.apache.org
Subject: AW: Question about Ethernet/IP writing BOOL values to the PLC

Attention: Courriel provenant de l'externe. Veuillez valider la source et le contenu avant de cliquer sur un lien ou d'ouvrir un document.


Hi Patrick,

in order to use snapshots, just add this to your pom:

<!-- Make Snapshots of Apache projects available --> <repositories>
  <repository>
    <id>apache-snapshots</id>
    <url>https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frepository.apache.org%2Fcontent%2Frepositories%2Fsnapshots&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=pmLG4JRyagoNU0%2B6ZFqM3VujkInyJXm6aubUIigKm1w%3D&amp;reserved=0</url>
    <releases>
      <enabled>false</enabled>
    </releases>
    <snapshots>
      <enabled>true</enabled>
    </snapshots>
  </repository>
</repositories>

Hope that helps.

Chris

Von: Patrick Boisclair <pb...@noovelia.com>
Datum: Dienstag, 5. Juli 2022 um 14:25
An: dev@plc4x.apache.org <de...@plc4x.apache.org>
Betreff: RE: Question about Ethernet/IP writing BOOL values to the PLC Hi Ben, thank you very much for your help !

Im currently using PLC4X as an external dependencies:
dependencies {
//Noovelia
implementation(project(":nooveliabeats-core"))

//Apache PLC4X
implementation("org.apache.plc4x","plc4j-api", plc4xVersion) runtimeOnly("org.apache.plc4x","plc4j-driver-ads", plc4xVersion) runtimeOnly("org.apache.plc4x","plc4j-driver-modbus", plc4xVersion) runtimeOnly("org.apache.plc4x","plc4j-driver-opcua", plc4xVersion) runtimeOnly("org.apache.plc4x", "plc4j-driver-eip", plc4xVersion) }

I know there's a way I can try the latest "unreleased" version, maybe I can give that a try ??

Using the "snapshot" version or something...
Also needs to set a new repositories, I don’t remember the name tho

Is it something I should try??

Patrick Boisclair​
Analyste ‑ Programmeur senior
Senior Analyst Programmer
noovelia.com<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.noovelia.com%2Ffr-ca%2Faccueil&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=MIbJta7CqZb6KsKQsK6a3j7WhcYANeVC1AifsTw2AW4%3D&amp;reserved=0>
[Facebook]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=C2my0QFddqzTZH563riRLh%2FJICrAYY07HD3Qc4Ete4A%3D&amp;reserved=0>
[LinkedIn]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=QgI9SDPd1NIIvKU%2F6ziKOqKoE13YFADVETGuQB6IDB0%3D&amp;reserved=0>
[Vimeo]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvimeo.com%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=N546TGZUVRyliLE00I73ZapnJabtRYEatDYtKaHwGdI%3D&amp;reserved=0>
[Noovelia.com]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.noovelia.com%2Ffr-ca%2Faccueil&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=MIbJta7CqZb6KsKQsK6a3j7WhcYANeVC1AifsTw2AW4%3D&amp;reserved=0>
-----Original Message-----
From: Ben Hutcheson <be...@gmail.com>
Sent: Monday, July 4, 2022 6:21 PM
To: dev@plc4x.apache.org
Subject: Re: Question about Ethernet/IP writing BOOL values to the PLC

Attention: Courriel provenant de l'externe. Veuillez valider la source et le contenu avant de cliquer sur un lien ou d'ouvrir un document.


Also give the latest branch a try again, may have just been an easy fix?

On Tue, Jul 5, 2022 at 8:09 AM Ben Hutcheson <be...@gmail.com> wrote:

> Hi Patrick,
>
> I have been doing some work on this lately and was wondering if you'd 
> like to test out the changes on the eip_update branch?
>
> You should be able to use a connection string like
>
> "logix:tcp://192.168.1.12:44818?communicationPath=1,4"
>
> Instead, as well as not needing to include a % in front of the field 
> address.
>
> I'd also be interested to see if you needed to make any changes to the 
> code to get it work and what device you are using?
>
> Kind Regards
>
> Ben
>
>
>
> On Tue, Jul 5, 2022 at 6:14 AM Patrick Boisclair 
> <pb...@noovelia.com>
> wrote:
>
>> Hi all,
>>
>>
>>
>> I’m currently trying to WRITE a BOOL value to an Allen Bradley over 
>> Ethernet/IP.
>>
>> Reading the values works just fine. Reading and WRITING DINT values 
>> works as well.
>>
>>
>>
>> However, when writing a BOOL it hangs and then fails with:
>>
>> 2022-07-04 16:08:38.289 [nioEventLoopGroup-5-1] WARN 
>> i.n.channel.DefaultChannelPipeline - An exceptionCaught() event was 
>> fired, and it reached at the tail of the pipeline. It usually means 
>> the last handler in the pipeline did not handle the exception.
>>
>> java.net.SocketException: Connection reset
>>
>> at
>> java.base/sun.nio.ch.SocketChannelImpl.throwConnectionReset(SocketCha
>> nnelImpl.java:394)
>>
>> at
>> java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:42
>> 6)
>>
>> at
>> io.netty.buffer.PooledByteBuf.setBytes(PooledByteBuf.java:258)
>>
>> at
>> io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1132)
>>
>> at
>> io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketCha
>> nnel.java:350)
>>
>> at
>> io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(Abstra
>> ctNioByteChannel.java:151)
>>
>> at
>> io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.jav
>> a:722)
>>
>> at
>> io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEve
>> ntLoop.java:658)
>>
>> at
>> io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.ja
>> va:584)
>>
>> at
>> io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)
>>
>> at
>> io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThread
>> EventExecutor.java:986)
>>
>> at
>> io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java
>> :74)
>>
>> at
>> io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalR
>> unnable.java:30)
>>
>> at java.base/java.lang.Thread.run(Thread.java:833)
>>
>>
>>
>> In fact all those values (see image) works for reading (ALL WORK) and 
>> writing (BOOL ONLY FAILS):
>>
>>
>>
>>
>>
>> My connection string is: eip://x.x.x.x?backplane=1&slot=0
>>
>>
>>
>> For example: trying to WRITE to: %Rejet_Boite_OK:BOOL fails. Reading 
>> works.
>>
>>
>>
>> Any input on this ?
>>
>>
>>
>> Ty all for your help really appreciated
>>
>>
>> Patrick Boisclair​
>> Analyste ‑ Programmeur senior
>> Senior Analyst Programmer
>> *noovelia.com*
>> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
>> w.noovelia.com%2Ffr-ca%2Faccueil&amp;data=05%7C01%7Cpboisclair%40noov
>> elia.com%7Ca1cd795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d02
>> 44c4c8c4b%7C0%7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIj
>> oiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7
>> C%7C%7C&amp;sdata=uSY75wjX%2BoK61lk3NuAJnKM0L%2B52qgBW8zq3qfDQWwo%3D&
>> amp;reserved=0>
>> [image: Facebook]
>> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
>> w.facebook.com%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.co
>> m%7Ca1cd795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d0244c4c8c
>> 4b%7C0%7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wL
>> jAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C
>> &amp;sdata=lrRXP0XVoca9XTK1aOh0IjK63aimZIq1W1i3z0TwAx8%3D&amp;reserve
>> d=0>
>> [image: LinkedIn] <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=QgI9SDPd1NIIvKU%2F6ziKOqKoE13YFADVETGuQB6IDB0%3D&amp;reserved=0> [image:
>> Vimeo]
>> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvi
>> meo.com%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ca1c
>> d795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%
>> 7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAi
>> LCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sd
>> ata=y%2Bv4ubxvjzNifhpII4HcMyFkz%2B1x7%2FVhDoObMfHMA1Y%3D&amp;reserved
>> =0>
>> [image: Noovelia.com]
>> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
>> w.noovelia.com%2Ffr-ca%2Faccueil&amp;data=05%7C01%7Cpboisclair%40noov
>> elia.com%7Ca1cd795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d02
>> 44c4c8c4b%7C0%7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIj
>> oiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7
>> C%7C%7C&amp;sdata=uSY75wjX%2BoK61lk3NuAJnKM0L%2B52qgBW8zq3qfDQWwo%3D&
>> amp;reserved=0>
>>
>

Re: Question about Ethernet/IP writing BOOL values to the PLC

Posted by Ben Hutcheson <be...@gmail.com>.
Hi Patrick,

I don't fully understand why it was working in 0.9.1 but it looks as though
your device is using a little endian byte order. The eip driver we have
uses big endian.

The eip_update branch should fix this, but you'd have to compile it
yourself (https://plc4x.apache.org/developers/building.html).

Kind Regards

Ben

On Wed, Jul 6, 2022 at 12:29 AM Patrick Boisclair <pb...@noovelia.com>
wrote:

> Ok I managed to find what was causing my POM to failed. It is now fixed.
>
>
>
> However, using the 0.10.0-SNAPSHOT, I can no longer READ values, which
> worked before. I get:
>
>
>
> [nioEventLoopGroup-2-1] WARN
> org.apache.plc4x.java.spi.GeneratedDriverByteToMessageCodec - Error
> decoding package with content
> [65000400300013000000000000000000000000000000000001000000]: Unsupported
> case for discriminated type parameters [command=25856]
>
> org.apache.plc4x.java.spi.generation.ParseException: Unsupported case for
> discriminated type parameters [command=25856]
>
>         at
> org.apache.plc4x.java.eip.readwrite.EipPacket.staticParse(EipPacket.java:212)
>
>         at
> org.apache.plc4x.java.eip.readwrite.EipPacket.staticParse(EipPacket.java:156)
>
>         at
> org.apache.plc4x.java.spi.GeneratedDriverByteToMessageCodec.decode(GeneratedDriverByteToMessageCodec.java:87)
>
>         at
> io.netty.handler.codec.ByteToMessageCodec$1.decode(ByteToMessageCodec.java:42)
>
>         at
> io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:510)
>
>         at
> io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:449)
>
>         at
> io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:279)
>
>         at
> io.netty.handler.codec.ByteToMessageCodec.channelRead(ByteToMessageCodec.java:103)
>
>         at
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
>
>         at
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
>
>         at
> io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
>
>         at
> io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
>
>         at
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
>
>         at
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
>
>         at
> io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
>
>         at
> io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
>
>         at
> io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:722)
>
>         at
> io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:658)
>
>         at
> io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:584)
>
>         at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)
>
>         at
> io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:995)
>
>         at
> io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
>
>         at
> io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
>
>         at java.base/java.lang.Thread.run(Thread.java:833)
>
>
>
>
>
> NOTE: I get the same error trying to write a value. Even DINT which worked
> before,
>
>
>
> Reverting back to 0.9.1 READING works, Writing  DINT works, Writing BOOL
> fails
>
>
>
>
> Patrick Boisclair​
> Analyste ‑ Programmeur senior
> Senior Analyst Programmer
> *noovelia.com* <https://www.noovelia.com/fr-ca/accueil>
> [image: Facebook] <https://www.facebook.com/noovelia>
> [image: LinkedIn] <https://www.linkedin.com/company/noovelia> [image:
> Vimeo] <https://vimeo.com/noovelia>
> [image: Noovelia.com] <https://www.noovelia.com/fr-ca/accueil>
>
> *From:* Patrick Boisclair <pb...@noovelia.com>
> *Sent:* Tuesday, July 5, 2022 10:01 AM
> *To:* dev@plc4x.apache.org
> *Subject:* RE: Question about Ethernet/IP writing BOOL values to the PLC
>
>
>
> *Attention:* Courriel provenant de l'externe. Veuillez valider la source
> et le contenu avant de cliquer sur un lien ou d'ouvrir un document.
>
>
>
> Sorry the url was replaced by outlook..
>
>
>
> My POM looks like this in fact:
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
>
>
> <project xmlns=http://maven.apache.org/POM/4.0.0
> <https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmaven.apache.org%2FPOM%2F4.0.0&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565124527%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=dDjl9KlR00nXj8IcsAPCixG28QAIpH0RMNZkxTLj%2FmQ%3D&reserved=0>
> xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
> <https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565124527%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=0hZ67bSO%2FDZLh%2BBw%2F%2FCq1LhsPxzZXu%2Fp0RTJQR1Hxdc%3D&reserved=0>
>
>   xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd
> <https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmaven.apache.org%2FPOM%2F4.0.0%2520http%3A%2Fmaven.apache.org%2Fxsd%2Fmaven-4.0.0.xsd&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565124527%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=G%2BnvavHJuuL9W%2FhipIWMYoyOWmCxDD8wjUvBYvYtQ5U%3D&reserved=0>
> >
>
>   <modelVersion>4.0.0</modelVersion>
>
>
>
>   <groupId>com.example</groupId>
>
>   <artifactId>demo</artifactId>
>
>   <version>0.0.1</version>
>
>
>
>   <name>demo</name>
>
>   *<!-- FIXME change it to the project's website -->*
>
>   <url>http://www.example.com</url>
>
>
>
>   <properties>
>
>     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>
>     <maven.compiler.source>1.7</maven.compiler.source>
>
>     <maven.compiler.target>1.7</maven.compiler.target>
>
>   </properties>
>
>
>
>   *<!-- Make Snapshots of Apache projects available -->*
>
>   <repositories>
>
>     <repository>
>
>       <id>apache-snapshots</id>
>
>       <url>
> https://repository.apache.org/content/repositories/snapshots/</url
> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frepository.apache.org%2Fcontent%2Frepositories%2Fsnapshots%2F%253c%2Furl&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565124527%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=BbsjYJ64adpfE%2BpNuYhQSME%2FeJV2nGvxWJStFcQ3YA8%3D&reserved=0>
> >
>
>       <releases>
>
>         <enabled>false</enabled>
>
>       </releases>
>
>       <snapshots>
>
>         <enabled>true</enabled>
>
>       </snapshots>
>
>     </repository>
>
>   </repositories>
>
>
>
>   <dependencies>
>
>     <dependency>
>
>         <groupId>org.apache.plc4x</groupId>
>
>         <artifactId>plc4j-api</artifactId>
>
>         <version>0.10.0-SNAPSHOT</version>
>
>     </dependency>
>
>     <dependency>
>
>       <groupId>org.apache.plc4x</groupId>
>
>         <artifactId>plc4j-driver-eip</artifactId>
>
>         <version>0.10.0-SNAPSHOT</version>
>
>         <scope>runtime</scope>
>
>       </dependency>
>
>     <dependency>
>
>       <groupId>org.slf4j</groupId>
>
>       <artifactId>slf4j-simple</artifactId>
>
>       <version>1.7.30</version>
>
>     </dependency>
>
>     <dependency>
>
>       <groupId>junit</groupId>
>
>       <artifactId>junit</artifactId>
>
>       <version>4.11</version>
>
>       <scope>test</scope>
>
>     </dependency>
>
>   </dependencies>
>
>
>
>   <build>
>
>
>
>
>
> *Patrick Boisclair**​*
>
> *Analyste ‑ Programmeur senior*
>
> *Senior Analyst Programmer*
>
> *noovelia.com*
> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.noovelia.com%2Ffr-ca%2Faccueil&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=F54iwtknss2BdX8mxH7wClFaVAdAdsj5z4aQamy2ciM%3D&reserved=0>
>
> [image: Facebook]
> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fnoovelia&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=kt%2B7zTmecdOreQr%2FUH8m0RiInfOf7gxOBWEmQpkWtBw%3D&reserved=0>
>
> [image: LinkedIn]
> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fnoovelia&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=SWm6ieY%2Fu0iRykF4IgO4ibncaG2AMuC%2B7n18Dfetnw0%3D&reserved=0>
>
> [image: Vimeo]
> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvimeo.com%2Fnoovelia&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ZtWhHpYNHxD8MzgNHy4ancX370oFU68KH4KqltsP3WE%3D&reserved=0>
>
> [image: Noovelia.com]
> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.noovelia.com%2Ffr-ca%2Faccueil&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=F54iwtknss2BdX8mxH7wClFaVAdAdsj5z4aQamy2ciM%3D&reserved=0>
>
> *From:* Patrick Boisclair <pb...@noovelia.com>
> *Sent:* Tuesday, July 5, 2022 9:40 AM
> *To:* dev@plc4x.apache.org
> *Subject:* RE: Question about Ethernet/IP writing BOOL values to the PLC
>
>
>
> *Attention:* Courriel provenant de l'externe. Veuillez valider la source
> et le contenu avant de cliquer sur un lien ou d'ouvrir un document.
>
>
>
> Hi Chris,
>
> For a reason, it doesn’t seems to find PLC4X
>
> <groupId>com.example</groupId>
> <artifactId>demo</artifactId>
> <version>0.0.1</version>
>
> <name>demo</name>
> <!-- FIXME change it to the project's website -->
> <url>http://www.example.com</url>
>
> <properties>
> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> <maven.compiler.source>1.7</maven.compiler.source>
> <maven.compiler.target>1.7</maven.compiler.target>
> </properties>
>
> <!-- Make Snapshots of Apache projects available --> <repositories>
> <repository>
> <id>apache-snapshots</id>
> <url>
> https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frepository.apache.org%2Fcontent%2Frepositories%2Fsnapshots&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=pmLG4JRyagoNU0%2B6ZFqM3VujkInyJXm6aubUIigKm1w%3D&amp;reserved=0</url
> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frepository.apache.org%2Fcontent%2Frepositories%2Fsnapshots&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=UawP7qKz2dTpchiSEhC%2FEosly6%2BV5ZusD%2Fw0h1Vg%2BGM%3D&reserved=0>
> >
> <releases>
> <enabled>false</enabled>
> </releases>
> <snapshots>
> <enabled>true</enabled>
> </snapshots>
> </repository>
> </repositories>
>
>
> <dependencies>
> <dependency>
> <groupId>org.apache.plc4x</groupId>
> <artifactId>plc4j-api</artifactId>
> <version>0.10.0-SNAPSHOT</version>
> </dependency>
> <dependency>
> <groupId>org.apache.plc4x</groupId>
> <artifactId>plc4j-driver-eip</artifactId>
> <version>0.10.0-SNAPSHOT</version>
> <scope>runtime</scope>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-simple</artifactId>
> <version>1.7.30</version>
> </dependency>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>4.11</version>
> <scope>test</scope>
> </dependency>
> </dependencies>
>
> Any input ?
>
> *Patrick Boisclair**​*
>
> *Analyste ‑ Programmeur senior*
>
> *Senior Analyst Programmer*
>
> *noovelia.com*
> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.noovelia.com%2Ffr-ca%2Faccueil&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=F54iwtknss2BdX8mxH7wClFaVAdAdsj5z4aQamy2ciM%3D&reserved=0>
>
> [image: Facebook]
> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fnoovelia&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=kt%2B7zTmecdOreQr%2FUH8m0RiInfOf7gxOBWEmQpkWtBw%3D&reserved=0>
>
> [image: LinkedIn]
> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fnoovelia&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=SWm6ieY%2Fu0iRykF4IgO4ibncaG2AMuC%2B7n18Dfetnw0%3D&reserved=0>
>
> [image: Vimeo]
> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvimeo.com%2Fnoovelia&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ZtWhHpYNHxD8MzgNHy4ancX370oFU68KH4KqltsP3WE%3D&reserved=0>
>
> [image: Noovelia.com]
> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.noovelia.com%2Ffr-ca%2Faccueil&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=F54iwtknss2BdX8mxH7wClFaVAdAdsj5z4aQamy2ciM%3D&reserved=0>
>
> -----Original Message-----
> From: Christofer Dutz <ch...@c-ware.de>
> Sent: Tuesday, July 5, 2022 8:40 AM
> To: dev@plc4x.apache.org
> Subject: AW: Question about Ethernet/IP writing BOOL values to the PLC
>
> Attention: Courriel provenant de l'externe. Veuillez valider la source et
> le contenu avant de cliquer sur un lien ou d'ouvrir un document.
>
>
> Hi Patrick,
>
> in order to use snapshots, just add this to your pom:
>
> <!-- Make Snapshots of Apache projects available --> <repositories>
> <repository>
> <id>apache-snapshots</id>
> <url>
> https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frepository.apache.org%2Fcontent%2Frepositories%2Fsnapshots&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=pmLG4JRyagoNU0%2B6ZFqM3VujkInyJXm6aubUIigKm1w%3D&amp;reserved=0</url
> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frepository.apache.org%2Fcontent%2Frepositories%2Fsnapshots&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=UawP7qKz2dTpchiSEhC%2FEosly6%2BV5ZusD%2Fw0h1Vg%2BGM%3D&reserved=0>
> >
> <releases>
> <enabled>false</enabled>
> </releases>
> <snapshots>
> <enabled>true</enabled>
> </snapshots>
> </repository>
> </repositories>
>
> Hope that helps.
>
> Chris
>
> Von: Patrick Boisclair <pb...@noovelia.com>
> Datum: Dienstag, 5. Juli 2022 um 14:25
> An: dev@plc4x.apache.org <de...@plc4x.apache.org>
> Betreff: RE: Question about Ethernet/IP writing BOOL values to the PLC Hi
> Ben, thank you very much for your help !
>
> Im currently using PLC4X as an external dependencies:
> dependencies {
> //Noovelia
> implementation(project(":nooveliabeats-core"))
>
> //Apache PLC4X
> implementation("org.apache.plc4x","plc4j-api", plc4xVersion)
> runtimeOnly("org.apache.plc4x","plc4j-driver-ads", plc4xVersion)
> runtimeOnly("org.apache.plc4x","plc4j-driver-modbus", plc4xVersion)
> runtimeOnly("org.apache.plc4x","plc4j-driver-opcua", plc4xVersion)
> runtimeOnly("org.apache.plc4x", "plc4j-driver-eip", plc4xVersion) }
>
> I know there's a way I can try the latest "unreleased" version, maybe I
> can give that a try ??
>
> Using the "snapshot" version or something...
> Also needs to set a new repositories, I don’t remember the name tho
>
> Is it something I should try??
>
> Patrick Boisclair​
> Analyste ‑ Programmeur senior
> Senior Analyst Programmer
> noovelia.com<
> https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.noovelia.com%2Ffr-ca%2Faccueil&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=MIbJta7CqZb6KsKQsK6a3j7WhcYANeVC1AifsTw2AW4%3D&amp;reserved=0
> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.noovelia.com%2Ffr-ca%2Faccueil&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=F54iwtknss2BdX8mxH7wClFaVAdAdsj5z4aQamy2ciM%3D&reserved=0>
> >
> [Facebook]<
> https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=C2my0QFddqzTZH563riRLh%2FJICrAYY07HD3Qc4Ete4A%3D&amp;reserved=0
> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fnoovelia&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=kt%2B7zTmecdOreQr%2FUH8m0RiInfOf7gxOBWEmQpkWtBw%3D&reserved=0>
> >
> [LinkedIn]<
> https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=QgI9SDPd1NIIvKU%2F6ziKOqKoE13YFADVETGuQB6IDB0%3D&amp;reserved=0
> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fnoovelia&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=SWm6ieY%2Fu0iRykF4IgO4ibncaG2AMuC%2B7n18Dfetnw0%3D&reserved=0>
> >
> [Vimeo]<
> https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvimeo.com%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=N546TGZUVRyliLE00I73ZapnJabtRYEatDYtKaHwGdI%3D&amp;reserved=0
> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvimeo.com%2Fnoovelia&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ZtWhHpYNHxD8MzgNHy4ancX370oFU68KH4KqltsP3WE%3D&reserved=0>
> >
> [Noovelia.com]<
> https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.noovelia.com%2Ffr-ca%2Faccueil&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=MIbJta7CqZb6KsKQsK6a3j7WhcYANeVC1AifsTw2AW4%3D&amp;reserved=0
> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.noovelia.com%2Ffr-ca%2Faccueil&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=F54iwtknss2BdX8mxH7wClFaVAdAdsj5z4aQamy2ciM%3D&reserved=0>
> >
> -----Original Message-----
> From: Ben Hutcheson <be...@gmail.com>
> Sent: Monday, July 4, 2022 6:21 PM
> To: dev@plc4x.apache.org
> Subject: Re: Question about Ethernet/IP writing BOOL values to the PLC
>
> Attention: Courriel provenant de l'externe. Veuillez valider la source et
> le contenu avant de cliquer sur un lien ou d'ouvrir un document.
>
>
> Also give the latest branch a try again, may have just been an easy fix?
>
> On Tue, Jul 5, 2022 at 8:09 AM Ben Hutcheson <be...@gmail.com> wrote:
>
> > Hi Patrick,
> >
> > I have been doing some work on this lately and was wondering if you'd
> > like to test out the changes on the eip_update branch?
> >
> > You should be able to use a connection string like
> >
> > "logix:tcp://192.168.1.12:44818?communicationPath=1,4"
> >
> > Instead, as well as not needing to include a % in front of the field
> > address.
> >
> > I'd also be interested to see if you needed to make any changes to the
> > code to get it work and what device you are using?
> >
> > Kind Regards
> >
> > Ben
> >
> >
> >
> > On Tue, Jul 5, 2022 at 6:14 AM Patrick Boisclair
> > <pb...@noovelia.com>
> > wrote:
> >
> >> Hi all,
> >>
> >>
> >>
> >> I’m currently trying to WRITE a BOOL value to an Allen Bradley over
> >> Ethernet/IP.
> >>
> >> Reading the values works just fine. Reading and WRITING DINT values
> >> works as well.
> >>
> >>
> >>
> >> However, when writing a BOOL it hangs and then fails with:
> >>
> >> 2022-07-04 16:08:38.289 [nioEventLoopGroup-5-1] WARN
> >> i.n.channel.DefaultChannelPipeline - An exceptionCaught() event was
> >> fired, and it reached at the tail of the pipeline. It usually means
> >> the last handler in the pipeline did not handle the exception.
> >>
> >> java.net.SocketException: Connection reset
> >>
> >> at
> >> java.base/sun.nio.ch.SocketChannelImpl.throwConnectionReset(SocketCha
> >> nnelImpl.java:394)
> >>
> >> at
> >> java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:42
> >> 6)
> >>
> >> at
> >> io.netty.buffer.PooledByteBuf.setBytes(PooledByteBuf.java:258)
> >>
> >> at
> >> io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1132)
> >>
> >> at
> >> io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketCha
> >> nnel.java:350)
> >>
> >> at
> >> io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(Abstra
> >> ctNioByteChannel.java:151)
> >>
> >> at
> >> io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.jav
> >> a:722)
> >>
> >> at
> >> io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEve
> >> ntLoop.java:658)
> >>
> >> at
> >> io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.ja
> >> va:584)
> >>
> >> at
> >> io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)
> >>
> >> at
> >> io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThread
> >> EventExecutor.java:986)
> >>
> >> at
> >> io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java
> >> :74)
> >>
> >> at
> >> io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalR
> >> unnable.java:30)
> >>
> >> at java.base/java.lang.Thread.run(Thread.java:833)
> >>
> >>
> >>
> >> In fact all those values (see image) works for reading (ALL WORK) and
> >> writing (BOOL ONLY FAILS):
> >>
> >>
> >>
> >>
> >>
> >> My connection string is: eip://x.x.x.x?backplane=1&slot=0
> >>
> >>
> >>
> >> For example: trying to WRITE to: %Rejet_Boite_OK:BOOL fails. Reading
> >> works.
> >>
> >>
> >>
> >> Any input on this ?
> >>
> >>
> >>
> >> Ty all for your help really appreciated
> >>
> >>
> >> Patrick Boisclair​
> >> Analyste ‑ Programmeur senior
> >> Senior Analyst Programmer
> >> *noovelia.com*
> >> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww%0b>>>
> w.noovelia.com%2Ffr-ca%2Faccueil&amp;data=05%7C01%7Cpboisclair%40noov
> >> elia.com%7Ca1cd795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d02
> >> 44c4c8c4b%7C0%7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIj
> >> oiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7
> >> C%7C%7C&amp;sdata=uSY75wjX%2BoK61lk3NuAJnKM0L%2B52qgBW8zq3qfDQWwo%3D&
> >> amp;reserved=0>
> >> [image: Facebook]
> >> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww%0b>>>
> w.facebook.com%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.co
> >> m%7Ca1cd795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d0244c4c8c
> >> 4b%7C0%7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wL
> >> jAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C
> >> &amp;sdata=lrRXP0XVoca9XTK1aOh0IjK63aimZIq1W1i3z0TwAx8%3D&amp;reserve
> >> d=0>
> >> [image: LinkedIn] <
> https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=QgI9SDPd1NIIvKU%2F6ziKOqKoE13YFADVETGuQB6IDB0%3D&amp;reserved=0
> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fnoovelia&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=SWm6ieY%2Fu0iRykF4IgO4ibncaG2AMuC%2B7n18Dfetnw0%3D&reserved=0>>
> [image:
> >> Vimeo]
> >> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvi
> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvi%0b>>>
> meo.com%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ca1c
> >> d795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%
> >> 7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAi
> >> LCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sd
> >> ata=y%2Bv4ubxvjzNifhpII4HcMyFkz%2B1x7%2FVhDoObMfHMA1Y%3D&amp;reserved
> >> =0>
> >> [image: Noovelia.com]
> >> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww%0b>>>
> w.noovelia.com%2Ffr-ca%2Faccueil&amp;data=05%7C01%7Cpboisclair%40noov
> >> elia.com%7Ca1cd795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d02
> >> 44c4c8c4b%7C0%7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIj
> >> oiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7
> >> C%7C%7C&amp;sdata=uSY75wjX%2BoK61lk3NuAJnKM0L%2B52qgBW8zq3qfDQWwo%3D&
> >> amp;reserved=0>
> >>
> >
>

RE: Question about Ethernet/IP writing BOOL values to the PLC

Posted by Patrick Boisclair <pb...@noovelia.com>.
Ok I managed to find what was causing my POM to failed. It is now fixed.

However, using the 0.10.0-SNAPSHOT, I can no longer READ values, which worked before. I get:

[nioEventLoopGroup-2-1] WARN org.apache.plc4x.java.spi.GeneratedDriverByteToMessageCodec - Error decoding package with content [65000400300013000000000000000000000000000000000001000000]: Unsupported case for discriminated type parameters [command=25856]
org.apache.plc4x.java.spi.generation.ParseException: Unsupported case for discriminated type parameters [command=25856]
        at org.apache.plc4x.java.eip.readwrite.EipPacket.staticParse(EipPacket.java:212)
        at org.apache.plc4x.java.eip.readwrite.EipPacket.staticParse(EipPacket.java:156)
        at org.apache.plc4x.java.spi.GeneratedDriverByteToMessageCodec.decode(GeneratedDriverByteToMessageCodec.java:87)
        at io.netty.handler.codec.ByteToMessageCodec$1.decode(ByteToMessageCodec.java:42)
        at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:510)
        at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:449)
        at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:279)
        at io.netty.handler.codec.ByteToMessageCodec.channelRead(ByteToMessageCodec.java:103)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
        at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
        at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
        at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
        at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:722)
        at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:658)
        at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:584)
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:995)
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
        at java.base/java.lang.Thread.run(Thread.java:833)


NOTE: I get the same error trying to write a value. Even DINT which worked before,

Reverting back to 0.9.1 READING works, Writing  DINT works, Writing BOOL fails



Patrick Boisclair
Analyste - Programmeur senior
Senior Analyst Programmer
noovelia.com
From: Patrick Boisclair <pb...@noovelia.com>
Sent: Tuesday, July 5, 2022 10:01 AM
To: dev@plc4x.apache.org
Subject: RE: Question about Ethernet/IP writing BOOL values to the PLC

Attention: Courriel provenant de l'externe. Veuillez valider la source et le contenu avant de cliquer sur un lien ou d'ouvrir un document.

Sorry the url was replaced by outlook..

My POM looks like this in fact:

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns=http://maven.apache.org/POM/4.0.0<https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmaven.apache.org%2FPOM%2F4.0.0&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565124527%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=dDjl9KlR00nXj8IcsAPCixG28QAIpH0RMNZkxTLj%2FmQ%3D&reserved=0> xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance<https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565124527%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=0hZ67bSO%2FDZLh%2BBw%2F%2FCq1LhsPxzZXu%2Fp0RTJQR1Hxdc%3D&reserved=0>
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd<https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmaven.apache.org%2FPOM%2F4.0.0%2520http%3A%2Fmaven.apache.org%2Fxsd%2Fmaven-4.0.0.xsd&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565124527%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=G%2BnvavHJuuL9W%2FhipIWMYoyOWmCxDD8wjUvBYvYtQ5U%3D&reserved=0>>
  <modelVersion>4.0.0</modelVersion>

  <groupId>com.example</groupId>
  <artifactId>demo</artifactId>
  <version>0.0.1</version>

  <name>demo</name>
  <!-- FIXME change it to the project's website -->
  <url>http://www.example.com</url<http://www.example.com%3c/url>>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.source>1.7</maven.compiler.source>
    <maven.compiler.target>1.7</maven.compiler.target>
  </properties>

  <!-- Make Snapshots of Apache projects available -->
  <repositories>
    <repository>
      <id>apache-snapshots</id>
      <url>https://repository.apache.org/content/repositories/snapshots/</url<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frepository.apache.org%2Fcontent%2Frepositories%2Fsnapshots%2F%253c%2Furl&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565124527%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=BbsjYJ64adpfE%2BpNuYhQSME%2FeJV2nGvxWJStFcQ3YA8%3D&reserved=0>>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
  </repositories>

  <dependencies>
    <dependency>
        <groupId>org.apache.plc4x</groupId>
        <artifactId>plc4j-api</artifactId>
        <version>0.10.0-SNAPSHOT</version>
    </dependency>
    <dependency>
      <groupId>org.apache.plc4x</groupId>
        <artifactId>plc4j-driver-eip</artifactId>
        <version>0.10.0-SNAPSHOT</version>
        <scope>runtime</scope>
      </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-simple</artifactId>
      <version>1.7.30</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>


Patrick Boisclair​
Analyste ‑ Programmeur senior
Senior Analyst Programmer
noovelia.com<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.noovelia.com%2Ffr-ca%2Faccueil&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=F54iwtknss2BdX8mxH7wClFaVAdAdsj5z4aQamy2ciM%3D&reserved=0>
[Facebook]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fnoovelia&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=kt%2B7zTmecdOreQr%2FUH8m0RiInfOf7gxOBWEmQpkWtBw%3D&reserved=0>
[LinkedIn]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fnoovelia&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=SWm6ieY%2Fu0iRykF4IgO4ibncaG2AMuC%2B7n18Dfetnw0%3D&reserved=0>
[Vimeo]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvimeo.com%2Fnoovelia&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ZtWhHpYNHxD8MzgNHy4ancX370oFU68KH4KqltsP3WE%3D&reserved=0>
[Noovelia.com]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.noovelia.com%2Ffr-ca%2Faccueil&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=F54iwtknss2BdX8mxH7wClFaVAdAdsj5z4aQamy2ciM%3D&reserved=0>
From: Patrick Boisclair <pb...@noovelia.com>>
Sent: Tuesday, July 5, 2022 9:40 AM
To: dev@plc4x.apache.org<ma...@plc4x.apache.org>
Subject: RE: Question about Ethernet/IP writing BOOL values to the PLC

Attention: Courriel provenant de l'externe. Veuillez valider la source et le contenu avant de cliquer sur un lien ou d'ouvrir un document.

Hi Chris,

For a reason, it doesn’t seems to find PLC4X

<groupId>com.example</groupId>
<artifactId>demo</artifactId>
<version>0.0.1</version>

<name>demo</name>
<!-- FIXME change it to the project's website -->
<url>http://www.example.com</url<http://www.example.com%3c/url>>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>

<!-- Make Snapshots of Apache projects available --> <repositories>
<repository>
<id>apache-snapshots</id>
<url>https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frepository.apache.org%2Fcontent%2Frepositories%2Fsnapshots&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=pmLG4JRyagoNU0%2B6ZFqM3VujkInyJXm6aubUIigKm1w%3D&amp;reserved=0</url<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frepository.apache.org%2Fcontent%2Frepositories%2Fsnapshots&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=UawP7qKz2dTpchiSEhC%2FEosly6%2BV5ZusD%2Fw0h1Vg%2BGM%3D&reserved=0>>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>


<dependencies>
<dependency>
<groupId>org.apache.plc4x</groupId>
<artifactId>plc4j-api</artifactId>
<version>0.10.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.plc4x</groupId>
<artifactId>plc4j-driver-eip</artifactId>
<version>0.10.0-SNAPSHOT</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.30</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
</dependencies>

Any input ?
Patrick Boisclair​
Analyste ‑ Programmeur senior
Senior Analyst Programmer
noovelia.com<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.noovelia.com%2Ffr-ca%2Faccueil&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=F54iwtknss2BdX8mxH7wClFaVAdAdsj5z4aQamy2ciM%3D&reserved=0>
[Facebook]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fnoovelia&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=kt%2B7zTmecdOreQr%2FUH8m0RiInfOf7gxOBWEmQpkWtBw%3D&reserved=0>
[LinkedIn]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fnoovelia&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=SWm6ieY%2Fu0iRykF4IgO4ibncaG2AMuC%2B7n18Dfetnw0%3D&reserved=0>
[Vimeo]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvimeo.com%2Fnoovelia&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ZtWhHpYNHxD8MzgNHy4ancX370oFU68KH4KqltsP3WE%3D&reserved=0>
[Noovelia.com]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.noovelia.com%2Ffr-ca%2Faccueil&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=F54iwtknss2BdX8mxH7wClFaVAdAdsj5z4aQamy2ciM%3D&reserved=0>
-----Original Message-----
From: Christofer Dutz <ch...@c-ware.de>>
Sent: Tuesday, July 5, 2022 8:40 AM
To: dev@plc4x.apache.org<ma...@plc4x.apache.org>
Subject: AW: Question about Ethernet/IP writing BOOL values to the PLC

Attention: Courriel provenant de l'externe. Veuillez valider la source et le contenu avant de cliquer sur un lien ou d'ouvrir un document.


Hi Patrick,

in order to use snapshots, just add this to your pom:

<!-- Make Snapshots of Apache projects available --> <repositories>
<repository>
<id>apache-snapshots</id>
<url>https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frepository.apache.org%2Fcontent%2Frepositories%2Fsnapshots&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=pmLG4JRyagoNU0%2B6ZFqM3VujkInyJXm6aubUIigKm1w%3D&amp;reserved=0</url<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frepository.apache.org%2Fcontent%2Frepositories%2Fsnapshots&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=UawP7qKz2dTpchiSEhC%2FEosly6%2BV5ZusD%2Fw0h1Vg%2BGM%3D&reserved=0>>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>

Hope that helps.

Chris

Von: Patrick Boisclair <pb...@noovelia.com>>
Datum: Dienstag, 5. Juli 2022 um 14:25
An: dev@plc4x.apache.org<ma...@plc4x.apache.org> <de...@plc4x.apache.org>>
Betreff: RE: Question about Ethernet/IP writing BOOL values to the PLC Hi Ben, thank you very much for your help !

Im currently using PLC4X as an external dependencies:
dependencies {
//Noovelia
implementation(project(":nooveliabeats-core"))

//Apache PLC4X
implementation("org.apache.plc4x","plc4j-api", plc4xVersion) runtimeOnly("org.apache.plc4x","plc4j-driver-ads", plc4xVersion) runtimeOnly("org.apache.plc4x","plc4j-driver-modbus", plc4xVersion) runtimeOnly("org.apache.plc4x","plc4j-driver-opcua", plc4xVersion) runtimeOnly("org.apache.plc4x", "plc4j-driver-eip", plc4xVersion) }

I know there's a way I can try the latest "unreleased" version, maybe I can give that a try ??

Using the "snapshot" version or something...
Also needs to set a new repositories, I don’t remember the name tho

Is it something I should try??

Patrick Boisclair​
Analyste ‑ Programmeur senior
Senior Analyst Programmer
noovelia.com<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.noovelia.com%2Ffr-ca%2Faccueil&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=MIbJta7CqZb6KsKQsK6a3j7WhcYANeVC1AifsTw2AW4%3D&amp;reserved=0<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.noovelia.com%2Ffr-ca%2Faccueil&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=F54iwtknss2BdX8mxH7wClFaVAdAdsj5z4aQamy2ciM%3D&reserved=0>>
[Facebook]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=C2my0QFddqzTZH563riRLh%2FJICrAYY07HD3Qc4Ete4A%3D&amp;reserved=0<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fnoovelia&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=kt%2B7zTmecdOreQr%2FUH8m0RiInfOf7gxOBWEmQpkWtBw%3D&reserved=0>>
[LinkedIn]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=QgI9SDPd1NIIvKU%2F6ziKOqKoE13YFADVETGuQB6IDB0%3D&amp;reserved=0<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fnoovelia&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=SWm6ieY%2Fu0iRykF4IgO4ibncaG2AMuC%2B7n18Dfetnw0%3D&reserved=0>>
[Vimeo]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvimeo.com%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=N546TGZUVRyliLE00I73ZapnJabtRYEatDYtKaHwGdI%3D&amp;reserved=0<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvimeo.com%2Fnoovelia&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ZtWhHpYNHxD8MzgNHy4ancX370oFU68KH4KqltsP3WE%3D&reserved=0>>
[Noovelia.com]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.noovelia.com%2Ffr-ca%2Faccueil&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=MIbJta7CqZb6KsKQsK6a3j7WhcYANeVC1AifsTw2AW4%3D&amp;reserved=0<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.noovelia.com%2Ffr-ca%2Faccueil&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=F54iwtknss2BdX8mxH7wClFaVAdAdsj5z4aQamy2ciM%3D&reserved=0>>
-----Original Message-----
From: Ben Hutcheson <be...@gmail.com>>
Sent: Monday, July 4, 2022 6:21 PM
To: dev@plc4x.apache.org<ma...@plc4x.apache.org>
Subject: Re: Question about Ethernet/IP writing BOOL values to the PLC

Attention: Courriel provenant de l'externe. Veuillez valider la source et le contenu avant de cliquer sur un lien ou d'ouvrir un document.


Also give the latest branch a try again, may have just been an easy fix?

On Tue, Jul 5, 2022 at 8:09 AM Ben Hutcheson <be...@gmail.com>> wrote:

> Hi Patrick,
>
> I have been doing some work on this lately and was wondering if you'd
> like to test out the changes on the eip_update branch?
>
> You should be able to use a connection string like
>
> "logix:tcp://192.168.1.12:44818?communicationPath=1,4"
>
> Instead, as well as not needing to include a % in front of the field
> address.
>
> I'd also be interested to see if you needed to make any changes to the
> code to get it work and what device you are using?
>
> Kind Regards
>
> Ben
>
>
>
> On Tue, Jul 5, 2022 at 6:14 AM Patrick Boisclair
> <pb...@noovelia.com>>
> wrote:
>
>> Hi all,
>>
>>
>>
>> I’m currently trying to WRITE a BOOL value to an Allen Bradley over
>> Ethernet/IP.
>>
>> Reading the values works just fine. Reading and WRITING DINT values
>> works as well.
>>
>>
>>
>> However, when writing a BOOL it hangs and then fails with:
>>
>> 2022-07-04 16:08:38.289 [nioEventLoopGroup-5-1] WARN
>> i.n.channel.DefaultChannelPipeline - An exceptionCaught() event was
>> fired, and it reached at the tail of the pipeline. It usually means
>> the last handler in the pipeline did not handle the exception.
>>
>> java.net.SocketException: Connection reset
>>
>> at
>> java.base/sun.nio.ch.SocketChannelImpl.throwConnectionReset(SocketCha
>> nnelImpl.java:394)
>>
>> at
>> java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:42
>> 6)
>>
>> at
>> io.netty.buffer.PooledByteBuf.setBytes(PooledByteBuf.java:258)
>>
>> at
>> io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1132)
>>
>> at
>> io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketCha
>> nnel.java:350)
>>
>> at
>> io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(Abstra
>> ctNioByteChannel.java:151)
>>
>> at
>> io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.jav
>> a:722)
>>
>> at
>> io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEve
>> ntLoop.java:658)
>>
>> at
>> io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.ja
>> va:584)
>>
>> at
>> io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)
>>
>> at
>> io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThread
>> EventExecutor.java:986)
>>
>> at
>> io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java
>> :74)
>>
>> at
>> io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalR
>> unnable.java:30)
>>
>> at java.base/java.lang.Thread.run(Thread.java:833)
>>
>>
>>
>> In fact all those values (see image) works for reading (ALL WORK) and
>> writing (BOOL ONLY FAILS):
>>
>>
>>
>>
>>
>> My connection string is: eip://x.x.x.x?backplane=1&slot=0
>>
>>
>>
>> For example: trying to WRITE to: %Rejet_Boite_OK:BOOL fails. Reading
>> works.
>>
>>
>>
>> Any input on this ?
>>
>>
>>
>> Ty all for your help really appreciated
>>
>>
>> Patrick Boisclair​
>> Analyste ‑ Programmeur senior
>> Senior Analyst Programmer
>> *noovelia.com*
>> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww%0b>>> w.noovelia.com%2Ffr-ca%2Faccueil&amp;data=05%7C01%7Cpboisclair%40noov
>> elia.com%7Ca1cd795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d02
>> 44c4c8c4b%7C0%7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIj
>> oiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7
>> C%7C%7C&amp;sdata=uSY75wjX%2BoK61lk3NuAJnKM0L%2B52qgBW8zq3qfDQWwo%3D&
>> amp;reserved=0>
>> [image: Facebook]
>> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww%0b>>> w.facebook.com%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.co
>> m%7Ca1cd795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d0244c4c8c
>> 4b%7C0%7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wL
>> jAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C
>> &amp;sdata=lrRXP0XVoca9XTK1aOh0IjK63aimZIq1W1i3z0TwAx8%3D&amp;reserve
>> d=0>
>> [image: LinkedIn] <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=QgI9SDPd1NIIvKU%2F6ziKOqKoE13YFADVETGuQB6IDB0%3D&amp;reserved=0<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fnoovelia&data=05%7C01%7Cpboisclair%40noovelia.com%7C1d2bee86ac124cffe5b208da5e8ec63e%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926264565280740%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=SWm6ieY%2Fu0iRykF4IgO4ibncaG2AMuC%2B7n18Dfetnw0%3D&reserved=0>> [image:
>> Vimeo]
>> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvi
<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvi%0b>>> meo.com%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ca1c
>> d795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%
>> 7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAi
>> LCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sd
>> ata=y%2Bv4ubxvjzNifhpII4HcMyFkz%2B1x7%2FVhDoObMfHMA1Y%3D&amp;reserved
>> =0>
>> [image: Noovelia.com]
>> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww%0b>>> w.noovelia.com%2Ffr-ca%2Faccueil&amp;data=05%7C01%7Cpboisclair%40noov
>> elia.com%7Ca1cd795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d02
>> 44c4c8c4b%7C0%7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIj
>> oiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7
>> C%7C%7C&amp;sdata=uSY75wjX%2BoK61lk3NuAJnKM0L%2B52qgBW8zq3qfDQWwo%3D&
>> amp;reserved=0>
>>
>

RE: Question about Ethernet/IP writing BOOL values to the PLC

Posted by Patrick Boisclair <pb...@noovelia.com>.
Sorry the url was replaced by outlook..

My POM looks like this in fact:

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns=http://maven.apache.org/POM/4.0.0 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd<http://maven.apache.org/POM/4.0.0%20http:/maven.apache.org/xsd/maven-4.0.0.xsd>>
  <modelVersion>4.0.0</modelVersion>

  <groupId>com.example</groupId>
  <artifactId>demo</artifactId>
  <version>0.0.1</version>

  <name>demo</name>
  <!-- FIXME change it to the project's website -->
  <url>http://www.example.com</url<http://www.example.com%3c/url>>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.source>1.7</maven.compiler.source>
    <maven.compiler.target>1.7</maven.compiler.target>
  </properties>

  <!-- Make Snapshots of Apache projects available -->
  <repositories>
    <repository>
      <id>apache-snapshots</id>
      <url>https://repository.apache.org/content/repositories/snapshots/</url<https://repository.apache.org/content/repositories/snapshots/%3c/url>>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
  </repositories>

  <dependencies>
    <dependency>
        <groupId>org.apache.plc4x</groupId>
        <artifactId>plc4j-api</artifactId>
        <version>0.10.0-SNAPSHOT</version>
    </dependency>
    <dependency>
      <groupId>org.apache.plc4x</groupId>
        <artifactId>plc4j-driver-eip</artifactId>
        <version>0.10.0-SNAPSHOT</version>
        <scope>runtime</scope>
      </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-simple</artifactId>
      <version>1.7.30</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>



Patrick Boisclair
Analyste - Programmeur senior
Senior Analyst Programmer
noovelia.com
From: Patrick Boisclair <pb...@noovelia.com>
Sent: Tuesday, July 5, 2022 9:40 AM
To: dev@plc4x.apache.org
Subject: RE: Question about Ethernet/IP writing BOOL values to the PLC

Attention: Courriel provenant de l'externe. Veuillez valider la source et le contenu avant de cliquer sur un lien ou d'ouvrir un document.

Hi Chris,

For a reason, it doesn’t seems to find PLC4X

<groupId>com.example</groupId>
<artifactId>demo</artifactId>
<version>0.0.1</version>

<name>demo</name>
<!-- FIXME change it to the project's website -->
<url>http://www.example.com</url<http://www.example.com%3c/url>>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>

<!-- Make Snapshots of Apache projects available --> <repositories>
<repository>
<id>apache-snapshots</id>
<url>https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frepository.apache.org%2Fcontent%2Frepositories%2Fsnapshots&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=pmLG4JRyagoNU0%2B6ZFqM3VujkInyJXm6aubUIigKm1w%3D&amp;reserved=0</url<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frepository.apache.org%2Fcontent%2Frepositories%2Fsnapshots&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=pmLG4JRyagoNU0%2B6ZFqM3VujkInyJXm6aubUIigKm1w%3D&amp;reserved=0%3c/url>>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>


<dependencies>
<dependency>
<groupId>org.apache.plc4x</groupId>
<artifactId>plc4j-api</artifactId>
<version>0.10.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.plc4x</groupId>
<artifactId>plc4j-driver-eip</artifactId>
<version>0.10.0-SNAPSHOT</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.30</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
</dependencies>

Any input ?
Patrick Boisclair​
Analyste ‑ Programmeur senior
Senior Analyst Programmer
noovelia.com<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.noovelia.com%2Ffr-ca%2Faccueil&data=05%7C01%7Cpboisclair%40noovelia.com%7C6901df2733064db9e0db08da5e8beebb%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926252346572495%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=10eHGi5yM8ma1eVmxV%2FxtXiv61us7aC9bNq0AHf4De4%3D&reserved=0>
[Facebook]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fnoovelia&data=05%7C01%7Cpboisclair%40noovelia.com%7C6901df2733064db9e0db08da5e8beebb%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926252346728712%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ABj%2BbpSwM7OmHKon2Bi0vwEcwZe2sgkvrSmHwJxTsPs%3D&reserved=0>
[LinkedIn]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fnoovelia&data=05%7C01%7Cpboisclair%40noovelia.com%7C6901df2733064db9e0db08da5e8beebb%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926252346728712%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=3%2BEWgTjy8R10gU7HR3RsnB3en9USLHsobMQkghfOaN4%3D&reserved=0>
[Vimeo]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvimeo.com%2Fnoovelia&data=05%7C01%7Cpboisclair%40noovelia.com%7C6901df2733064db9e0db08da5e8beebb%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926252346728712%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=KVG0IdkLBZygPiYNMIWyX4Ln1LuhUyeWZ7KWERy307k%3D&reserved=0>
[Noovelia.com]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.noovelia.com%2Ffr-ca%2Faccueil&data=05%7C01%7Cpboisclair%40noovelia.com%7C6901df2733064db9e0db08da5e8beebb%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926252346728712%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=fqtfzQiOyolsJ6WlcboUYWslZV2rH1Ysjep%2FJXNP5d4%3D&reserved=0>
-----Original Message-----
From: Christofer Dutz <ch...@c-ware.de>>
Sent: Tuesday, July 5, 2022 8:40 AM
To: dev@plc4x.apache.org<ma...@plc4x.apache.org>
Subject: AW: Question about Ethernet/IP writing BOOL values to the PLC

Attention: Courriel provenant de l'externe. Veuillez valider la source et le contenu avant de cliquer sur un lien ou d'ouvrir un document.


Hi Patrick,

in order to use snapshots, just add this to your pom:

<!-- Make Snapshots of Apache projects available --> <repositories>
<repository>
<id>apache-snapshots</id>
<url>https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frepository.apache.org%2Fcontent%2Frepositories%2Fsnapshots&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=pmLG4JRyagoNU0%2B6ZFqM3VujkInyJXm6aubUIigKm1w%3D&amp;reserved=0</url<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frepository.apache.org%2Fcontent%2Frepositories%2Fsnapshots&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=pmLG4JRyagoNU0%2B6ZFqM3VujkInyJXm6aubUIigKm1w%3D&amp;reserved=0%3c/url>>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>

Hope that helps.

Chris

Von: Patrick Boisclair <pb...@noovelia.com>>
Datum: Dienstag, 5. Juli 2022 um 14:25
An: dev@plc4x.apache.org<ma...@plc4x.apache.org> <de...@plc4x.apache.org>>
Betreff: RE: Question about Ethernet/IP writing BOOL values to the PLC Hi Ben, thank you very much for your help !

Im currently using PLC4X as an external dependencies:
dependencies {
//Noovelia
implementation(project(":nooveliabeats-core"))

//Apache PLC4X
implementation("org.apache.plc4x","plc4j-api", plc4xVersion) runtimeOnly("org.apache.plc4x","plc4j-driver-ads", plc4xVersion) runtimeOnly("org.apache.plc4x","plc4j-driver-modbus", plc4xVersion) runtimeOnly("org.apache.plc4x","plc4j-driver-opcua", plc4xVersion) runtimeOnly("org.apache.plc4x", "plc4j-driver-eip", plc4xVersion) }

I know there's a way I can try the latest "unreleased" version, maybe I can give that a try ??

Using the "snapshot" version or something...
Also needs to set a new repositories, I don’t remember the name tho

Is it something I should try??

Patrick Boisclair​
Analyste ‑ Programmeur senior
Senior Analyst Programmer
noovelia.com<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.noovelia.com%2Ffr-ca%2Faccueil&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=MIbJta7CqZb6KsKQsK6a3j7WhcYANeVC1AifsTw2AW4%3D&amp;reserved=0>
[Facebook]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=C2my0QFddqzTZH563riRLh%2FJICrAYY07HD3Qc4Ete4A%3D&amp;reserved=0>
[LinkedIn]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=QgI9SDPd1NIIvKU%2F6ziKOqKoE13YFADVETGuQB6IDB0%3D&amp;reserved=0>
[Vimeo]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvimeo.com%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=N546TGZUVRyliLE00I73ZapnJabtRYEatDYtKaHwGdI%3D&amp;reserved=0>
[Noovelia.com]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.noovelia.com%2Ffr-ca%2Faccueil&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=MIbJta7CqZb6KsKQsK6a3j7WhcYANeVC1AifsTw2AW4%3D&amp;reserved=0>
-----Original Message-----
From: Ben Hutcheson <be...@gmail.com>>
Sent: Monday, July 4, 2022 6:21 PM
To: dev@plc4x.apache.org<ma...@plc4x.apache.org>
Subject: Re: Question about Ethernet/IP writing BOOL values to the PLC

Attention: Courriel provenant de l'externe. Veuillez valider la source et le contenu avant de cliquer sur un lien ou d'ouvrir un document.


Also give the latest branch a try again, may have just been an easy fix?

On Tue, Jul 5, 2022 at 8:09 AM Ben Hutcheson <be...@gmail.com>> wrote:

> Hi Patrick,
>
> I have been doing some work on this lately and was wondering if you'd
> like to test out the changes on the eip_update branch?
>
> You should be able to use a connection string like
>
> "logix:tcp://192.168.1.12:44818?communicationPath=1,4"
>
> Instead, as well as not needing to include a % in front of the field
> address.
>
> I'd also be interested to see if you needed to make any changes to the
> code to get it work and what device you are using?
>
> Kind Regards
>
> Ben
>
>
>
> On Tue, Jul 5, 2022 at 6:14 AM Patrick Boisclair
> <pb...@noovelia.com>>
> wrote:
>
>> Hi all,
>>
>>
>>
>> I’m currently trying to WRITE a BOOL value to an Allen Bradley over
>> Ethernet/IP.
>>
>> Reading the values works just fine. Reading and WRITING DINT values
>> works as well.
>>
>>
>>
>> However, when writing a BOOL it hangs and then fails with:
>>
>> 2022-07-04 16:08:38.289 [nioEventLoopGroup-5-1] WARN
>> i.n.channel.DefaultChannelPipeline - An exceptionCaught() event was
>> fired, and it reached at the tail of the pipeline. It usually means
>> the last handler in the pipeline did not handle the exception.
>>
>> java.net.SocketException: Connection reset
>>
>> at
>> java.base/sun.nio.ch.SocketChannelImpl.throwConnectionReset(SocketCha
>> nnelImpl.java:394)
>>
>> at
>> java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:42
>> 6)
>>
>> at
>> io.netty.buffer.PooledByteBuf.setBytes(PooledByteBuf.java:258)
>>
>> at
>> io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1132)
>>
>> at
>> io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketCha
>> nnel.java:350)
>>
>> at
>> io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(Abstra
>> ctNioByteChannel.java:151)
>>
>> at
>> io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.jav
>> a:722)
>>
>> at
>> io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEve
>> ntLoop.java:658)
>>
>> at
>> io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.ja
>> va:584)
>>
>> at
>> io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)
>>
>> at
>> io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThread
>> EventExecutor.java:986)
>>
>> at
>> io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java
>> :74)
>>
>> at
>> io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalR
>> unnable.java:30)
>>
>> at java.base/java.lang.Thread.run(Thread.java:833)
>>
>>
>>
>> In fact all those values (see image) works for reading (ALL WORK) and
>> writing (BOOL ONLY FAILS):
>>
>>
>>
>>
>>
>> My connection string is: eip://x.x.x.x?backplane=1&slot=0
>>
>>
>>
>> For example: trying to WRITE to: %Rejet_Boite_OK:BOOL fails. Reading
>> works.
>>
>>
>>
>> Any input on this ?
>>
>>
>>
>> Ty all for your help really appreciated
>>
>>
>> Patrick Boisclair​
>> Analyste ‑ Programmeur senior
>> Senior Analyst Programmer
>> *noovelia.com*
>> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww%0b>>> w.noovelia.com%2Ffr-ca%2Faccueil&amp;data=05%7C01%7Cpboisclair%40noov
>> elia.com%7Ca1cd795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d02
>> 44c4c8c4b%7C0%7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIj
>> oiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7
>> C%7C%7C&amp;sdata=uSY75wjX%2BoK61lk3NuAJnKM0L%2B52qgBW8zq3qfDQWwo%3D&
>> amp;reserved=0>
>> [image: Facebook]
>> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww%0b>>> w.facebook.com%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.co
>> m%7Ca1cd795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d0244c4c8c
>> 4b%7C0%7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wL
>> jAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C
>> &amp;sdata=lrRXP0XVoca9XTK1aOh0IjK63aimZIq1W1i3z0TwAx8%3D&amp;reserve
>> d=0>
>> [image: LinkedIn] <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=QgI9SDPd1NIIvKU%2F6ziKOqKoE13YFADVETGuQB6IDB0%3D&amp;reserved=0> [image:
>> Vimeo]
>> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvi
<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvi%0b>>> meo.com%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ca1c
>> d795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%
>> 7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAi
>> LCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sd
>> ata=y%2Bv4ubxvjzNifhpII4HcMyFkz%2B1x7%2FVhDoObMfHMA1Y%3D&amp;reserved
>> =0>
>> [image: Noovelia.com]
>> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww%0b>>> w.noovelia.com%2Ffr-ca%2Faccueil&amp;data=05%7C01%7Cpboisclair%40noov
>> elia.com%7Ca1cd795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d02
>> 44c4c8c4b%7C0%7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIj
>> oiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7
>> C%7C%7C&amp;sdata=uSY75wjX%2BoK61lk3NuAJnKM0L%2B52qgBW8zq3qfDQWwo%3D&
>> amp;reserved=0>
>>
>

RE: Question about Ethernet/IP writing BOOL values to the PLC

Posted by Patrick Boisclair <pb...@noovelia.com>.
Hi Chris, 

For a reason, it doesn’t seems to find PLC4X

  <groupId>com.example</groupId>
  <artifactId>demo</artifactId>
  <version>0.0.1</version>

  <name>demo</name>
  <!-- FIXME change it to the project's website -->
  <url>http://www.example.com</url>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.source>1.7</maven.compiler.source>
    <maven.compiler.target>1.7</maven.compiler.target>
  </properties>

  <!-- Make Snapshots of Apache projects available --> <repositories>
  <repository>
      <id>apache-snapshots</id>
      <url>https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frepository.apache.org%2Fcontent%2Frepositories%2Fsnapshots&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=pmLG4JRyagoNU0%2B6ZFqM3VujkInyJXm6aubUIigKm1w%3D&amp;reserved=0</url>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
  </repositories>


  <dependencies>
    <dependency>
        <groupId>org.apache.plc4x</groupId>
        <artifactId>plc4j-api</artifactId>
        <version>0.10.0-SNAPSHOT</version>
    </dependency>
    <dependency>
      <groupId>org.apache.plc4x</groupId>
        <artifactId>plc4j-driver-eip</artifactId>
        <version>0.10.0-SNAPSHOT</version>
        <scope>runtime</scope>
      </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-simple</artifactId>
      <version>1.7.30</version>
    </dependency>  
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

Any input ?


Patrick Boisclair
Analyste - Programmeur senior
Senior Analyst Programmer
noovelia.com
-----Original Message-----
From: Christofer Dutz <ch...@c-ware.de> 
Sent: Tuesday, July 5, 2022 8:40 AM
To: dev@plc4x.apache.org
Subject: AW: Question about Ethernet/IP writing BOOL values to the PLC

Attention: Courriel provenant de l'externe. Veuillez valider la source et le contenu avant de cliquer sur un lien ou d'ouvrir un document.


Hi Patrick,

in order to use snapshots, just add this to your pom:

<!-- Make Snapshots of Apache projects available --> <repositories>
  <repository>
    <id>apache-snapshots</id>
    <url>https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frepository.apache.org%2Fcontent%2Frepositories%2Fsnapshots&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=pmLG4JRyagoNU0%2B6ZFqM3VujkInyJXm6aubUIigKm1w%3D&amp;reserved=0</url>
    <releases>
      <enabled>false</enabled>
    </releases>
    <snapshots>
      <enabled>true</enabled>
    </snapshots>
  </repository>
</repositories>

Hope that helps.

Chris

Von: Patrick Boisclair <pb...@noovelia.com>
Datum: Dienstag, 5. Juli 2022 um 14:25
An: dev@plc4x.apache.org <de...@plc4x.apache.org>
Betreff: RE: Question about Ethernet/IP writing BOOL values to the PLC Hi Ben, thank you very much for your help !

Im currently using PLC4X as an external dependencies:
dependencies {
//Noovelia
implementation(project(":nooveliabeats-core"))

//Apache PLC4X
implementation("org.apache.plc4x","plc4j-api", plc4xVersion) runtimeOnly("org.apache.plc4x","plc4j-driver-ads", plc4xVersion) runtimeOnly("org.apache.plc4x","plc4j-driver-modbus", plc4xVersion) runtimeOnly("org.apache.plc4x","plc4j-driver-opcua", plc4xVersion) runtimeOnly("org.apache.plc4x", "plc4j-driver-eip", plc4xVersion) }

I know there's a way I can try the latest "unreleased" version, maybe I can give that a try ??

Using the "snapshot" version or something...
Also needs to set a new repositories, I don’t remember the name tho

Is it something I should try??

Patrick Boisclair​
Analyste ‑ Programmeur senior
Senior Analyst Programmer
noovelia.com<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.noovelia.com%2Ffr-ca%2Faccueil&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=MIbJta7CqZb6KsKQsK6a3j7WhcYANeVC1AifsTw2AW4%3D&amp;reserved=0>
[Facebook]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=C2my0QFddqzTZH563riRLh%2FJICrAYY07HD3Qc4Ete4A%3D&amp;reserved=0>
[LinkedIn]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=QgI9SDPd1NIIvKU%2F6ziKOqKoE13YFADVETGuQB6IDB0%3D&amp;reserved=0>
[Vimeo]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvimeo.com%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=N546TGZUVRyliLE00I73ZapnJabtRYEatDYtKaHwGdI%3D&amp;reserved=0>
[Noovelia.com]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.noovelia.com%2Ffr-ca%2Faccueil&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=MIbJta7CqZb6KsKQsK6a3j7WhcYANeVC1AifsTw2AW4%3D&amp;reserved=0>
-----Original Message-----
From: Ben Hutcheson <be...@gmail.com>
Sent: Monday, July 4, 2022 6:21 PM
To: dev@plc4x.apache.org
Subject: Re: Question about Ethernet/IP writing BOOL values to the PLC

Attention: Courriel provenant de l'externe. Veuillez valider la source et le contenu avant de cliquer sur un lien ou d'ouvrir un document.


Also give the latest branch a try again, may have just been an easy fix?

On Tue, Jul 5, 2022 at 8:09 AM Ben Hutcheson <be...@gmail.com> wrote:

> Hi Patrick,
>
> I have been doing some work on this lately and was wondering if you'd 
> like to test out the changes on the eip_update branch?
>
> You should be able to use a connection string like
>
> "logix:tcp://192.168.1.12:44818?communicationPath=1,4"
>
> Instead, as well as not needing to include a % in front of the field 
> address.
>
> I'd also be interested to see if you needed to make any changes to the 
> code to get it work and what device you are using?
>
> Kind Regards
>
> Ben
>
>
>
> On Tue, Jul 5, 2022 at 6:14 AM Patrick Boisclair 
> <pb...@noovelia.com>
> wrote:
>
>> Hi all,
>>
>>
>>
>> I’m currently trying to WRITE a BOOL value to an Allen Bradley over 
>> Ethernet/IP.
>>
>> Reading the values works just fine. Reading and WRITING DINT values 
>> works as well.
>>
>>
>>
>> However, when writing a BOOL it hangs and then fails with:
>>
>> 2022-07-04 16:08:38.289 [nioEventLoopGroup-5-1] WARN 
>> i.n.channel.DefaultChannelPipeline - An exceptionCaught() event was 
>> fired, and it reached at the tail of the pipeline. It usually means 
>> the last handler in the pipeline did not handle the exception.
>>
>> java.net.SocketException: Connection reset
>>
>> at
>> java.base/sun.nio.ch.SocketChannelImpl.throwConnectionReset(SocketCha
>> nnelImpl.java:394)
>>
>> at
>> java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:42
>> 6)
>>
>> at
>> io.netty.buffer.PooledByteBuf.setBytes(PooledByteBuf.java:258)
>>
>> at
>> io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1132)
>>
>> at
>> io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketCha
>> nnel.java:350)
>>
>> at
>> io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(Abstra
>> ctNioByteChannel.java:151)
>>
>> at
>> io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.jav
>> a:722)
>>
>> at
>> io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEve
>> ntLoop.java:658)
>>
>> at
>> io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.ja
>> va:584)
>>
>> at
>> io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)
>>
>> at
>> io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThread
>> EventExecutor.java:986)
>>
>> at
>> io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java
>> :74)
>>
>> at
>> io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalR
>> unnable.java:30)
>>
>> at java.base/java.lang.Thread.run(Thread.java:833)
>>
>>
>>
>> In fact all those values (see image) works for reading (ALL WORK) and 
>> writing (BOOL ONLY FAILS):
>>
>>
>>
>>
>>
>> My connection string is: eip://x.x.x.x?backplane=1&slot=0
>>
>>
>>
>> For example: trying to WRITE to: %Rejet_Boite_OK:BOOL fails. Reading 
>> works.
>>
>>
>>
>> Any input on this ?
>>
>>
>>
>> Ty all for your help really appreciated
>>
>>
>> Patrick Boisclair​
>> Analyste ‑ Programmeur senior
>> Senior Analyst Programmer
>> *noovelia.com*
>> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
>> w.noovelia.com%2Ffr-ca%2Faccueil&amp;data=05%7C01%7Cpboisclair%40noov
>> elia.com%7Ca1cd795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d02
>> 44c4c8c4b%7C0%7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIj
>> oiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7
>> C%7C%7C&amp;sdata=uSY75wjX%2BoK61lk3NuAJnKM0L%2B52qgBW8zq3qfDQWwo%3D&
>> amp;reserved=0>
>> [image: Facebook]
>> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
>> w.facebook.com%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.co
>> m%7Ca1cd795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d0244c4c8c
>> 4b%7C0%7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wL
>> jAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C
>> &amp;sdata=lrRXP0XVoca9XTK1aOh0IjK63aimZIq1W1i3z0TwAx8%3D&amp;reserve
>> d=0>
>> [image: LinkedIn] <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ce7e1dc8d27324cc55acf08da5e8392cc%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637926216441517099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=QgI9SDPd1NIIvKU%2F6ziKOqKoE13YFADVETGuQB6IDB0%3D&amp;reserved=0> [image:
>> Vimeo]
>> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvi
>> meo.com%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ca1c
>> d795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%
>> 7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAi
>> LCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sd
>> ata=y%2Bv4ubxvjzNifhpII4HcMyFkz%2B1x7%2FVhDoObMfHMA1Y%3D&amp;reserved
>> =0>
>> [image: Noovelia.com]
>> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
>> w.noovelia.com%2Ffr-ca%2Faccueil&amp;data=05%7C01%7Cpboisclair%40noov
>> elia.com%7Ca1cd795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d02
>> 44c4c8c4b%7C0%7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIj
>> oiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7
>> C%7C%7C&amp;sdata=uSY75wjX%2BoK61lk3NuAJnKM0L%2B52qgBW8zq3qfDQWwo%3D&
>> amp;reserved=0>
>>
>

AW: Question about Ethernet/IP writing BOOL values to the PLC

Posted by Christofer Dutz <ch...@c-ware.de>.
Hi Patrick,

in order to use snapshots, just add this to your pom:

<!-- Make Snapshots of Apache projects available -->
<repositories>
  <repository>
    <id>apache-snapshots</id>
    <url>https://repository.apache.org/content/repositories/snapshots</url>
    <releases>
      <enabled>false</enabled>
    </releases>
    <snapshots>
      <enabled>true</enabled>
    </snapshots>
  </repository>
</repositories>

Hope that helps.

Chris

Von: Patrick Boisclair <pb...@noovelia.com>
Datum: Dienstag, 5. Juli 2022 um 14:25
An: dev@plc4x.apache.org <de...@plc4x.apache.org>
Betreff: RE: Question about Ethernet/IP writing BOOL values to the PLC
Hi Ben, thank you very much for your help !

Im currently using PLC4X as an external dependencies:
dependencies {
//Noovelia
implementation(project(":nooveliabeats-core"))

//Apache PLC4X
implementation("org.apache.plc4x","plc4j-api", plc4xVersion)
runtimeOnly("org.apache.plc4x","plc4j-driver-ads", plc4xVersion)
runtimeOnly("org.apache.plc4x","plc4j-driver-modbus", plc4xVersion)
runtimeOnly("org.apache.plc4x","plc4j-driver-opcua", plc4xVersion)
runtimeOnly("org.apache.plc4x", "plc4j-driver-eip", plc4xVersion)
}

I know there's a way I can try the latest "unreleased" version, maybe I can give that a try ??

Using the "snapshot" version or something...
Also needs to set a new repositories, I don’t remember the name tho

Is it something I should try??

Patrick Boisclair​
Analyste ‑ Programmeur senior
Senior Analyst Programmer
noovelia.com<https://www.noovelia.com/fr-ca/accueil>
[Facebook]<https://www.facebook.com/noovelia>
[LinkedIn]<https://www.linkedin.com/company/noovelia>
[Vimeo]<https://vimeo.com/noovelia>
[Noovelia.com]<https://www.noovelia.com/fr-ca/accueil>
-----Original Message-----
From: Ben Hutcheson <be...@gmail.com>
Sent: Monday, July 4, 2022 6:21 PM
To: dev@plc4x.apache.org
Subject: Re: Question about Ethernet/IP writing BOOL values to the PLC

Attention: Courriel provenant de l'externe. Veuillez valider la source et le contenu avant de cliquer sur un lien ou d'ouvrir un document.


Also give the latest branch a try again, may have just been an easy fix?

On Tue, Jul 5, 2022 at 8:09 AM Ben Hutcheson <be...@gmail.com> wrote:

> Hi Patrick,
>
> I have been doing some work on this lately and was wondering if you'd
> like to test out the changes on the eip_update branch?
>
> You should be able to use a connection string like
>
> "logix:tcp://192.168.1.12:44818?communicationPath=1,4"
>
> Instead, as well as not needing to include a % in front of the field
> address.
>
> I'd also be interested to see if you needed to make any changes to the
> code to get it work and what device you are using?
>
> Kind Regards
>
> Ben
>
>
>
> On Tue, Jul 5, 2022 at 6:14 AM Patrick Boisclair
> <pb...@noovelia.com>
> wrote:
>
>> Hi all,
>>
>>
>>
>> I’m currently trying to WRITE a BOOL value to an Allen Bradley over
>> Ethernet/IP.
>>
>> Reading the values works just fine. Reading and WRITING DINT values
>> works as well.
>>
>>
>>
>> However, when writing a BOOL it hangs and then fails with:
>>
>> 2022-07-04 16:08:38.289 [nioEventLoopGroup-5-1] WARN
>> i.n.channel.DefaultChannelPipeline - An exceptionCaught() event was
>> fired, and it reached at the tail of the pipeline. It usually means
>> the last handler in the pipeline did not handle the exception.
>>
>> java.net.SocketException: Connection reset
>>
>> at
>> java.base/sun.nio.ch.SocketChannelImpl.throwConnectionReset(SocketCha
>> nnelImpl.java:394)
>>
>> at
>> java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:42
>> 6)
>>
>> at
>> io.netty.buffer.PooledByteBuf.setBytes(PooledByteBuf.java:258)
>>
>> at
>> io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1132)
>>
>> at
>> io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketCha
>> nnel.java:350)
>>
>> at
>> io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(Abstra
>> ctNioByteChannel.java:151)
>>
>> at
>> io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.jav
>> a:722)
>>
>> at
>> io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEve
>> ntLoop.java:658)
>>
>> at
>> io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.ja
>> va:584)
>>
>> at
>> io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)
>>
>> at
>> io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThread
>> EventExecutor.java:986)
>>
>> at
>> io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java
>> :74)
>>
>> at
>> io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalR
>> unnable.java:30)
>>
>> at java.base/java.lang.Thread.run(Thread.java:833)
>>
>>
>>
>> In fact all those values (see image) works for reading (ALL WORK) and
>> writing (BOOL ONLY FAILS):
>>
>>
>>
>>
>>
>> My connection string is: eip://x.x.x.x?backplane=1&slot=0
>>
>>
>>
>> For example: trying to WRITE to: %Rejet_Boite_OK:BOOL fails. Reading
>> works.
>>
>>
>>
>> Any input on this ?
>>
>>
>>
>> Ty all for your help really appreciated
>>
>>
>> Patrick Boisclair​
>> Analyste ‑ Programmeur senior
>> Senior Analyst Programmer
>> *noovelia.com*
>> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
>> w.noovelia.com%2Ffr-ca%2Faccueil&amp;data=05%7C01%7Cpboisclair%40noov
>> elia.com%7Ca1cd795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d02
>> 44c4c8c4b%7C0%7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIj
>> oiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7
>> C%7C%7C&amp;sdata=uSY75wjX%2BoK61lk3NuAJnKM0L%2B52qgBW8zq3qfDQWwo%3D&
>> amp;reserved=0>
>> [image: Facebook]
>> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
>> w.facebook.com%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.co
>> m%7Ca1cd795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d0244c4c8c
>> 4b%7C0%7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wL
>> jAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C
>> &amp;sdata=lrRXP0XVoca9XTK1aOh0IjK63aimZIq1W1i3z0TwAx8%3D&amp;reserve
>> d=0>
>> [image: LinkedIn] <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ca1cd795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=awbl%2BTeIFXJsMDU873KYwnp9XOqeHRoXsyL1B%2FTLhvs%3D&amp;reserved=0> [image:
>> Vimeo]
>> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvi
>> meo.com%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ca1c
>> d795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%
>> 7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAi
>> LCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sd
>> ata=y%2Bv4ubxvjzNifhpII4HcMyFkz%2B1x7%2FVhDoObMfHMA1Y%3D&amp;reserved
>> =0>
>> [image: Noovelia.com]
>> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
>> w.noovelia.com%2Ffr-ca%2Faccueil&amp;data=05%7C01%7Cpboisclair%40noov
>> elia.com%7Ca1cd795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d02
>> 44c4c8c4b%7C0%7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIj
>> oiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7
>> C%7C%7C&amp;sdata=uSY75wjX%2BoK61lk3NuAJnKM0L%2B52qgBW8zq3qfDQWwo%3D&
>> amp;reserved=0>
>>
>

RE: Question about Ethernet/IP writing BOOL values to the PLC

Posted by Patrick Boisclair <pb...@noovelia.com>.
Hi Ben, thank you very much for your help !

Im currently using PLC4X as an external dependencies:
dependencies {
    //Noovelia
    implementation(project(":nooveliabeats-core"))

    //Apache PLC4X
    implementation("org.apache.plc4x","plc4j-api", plc4xVersion)
    runtimeOnly("org.apache.plc4x","plc4j-driver-ads", plc4xVersion)
    runtimeOnly("org.apache.plc4x","plc4j-driver-modbus", plc4xVersion)
    runtimeOnly("org.apache.plc4x","plc4j-driver-opcua", plc4xVersion)
    runtimeOnly("org.apache.plc4x", "plc4j-driver-eip", plc4xVersion)
}

I know there's a way I can try the latest "unreleased" version, maybe I can give that a try ??

Using the "snapshot" version or something...
Also needs to set a new repositories, I don’t remember the name tho

Is it something I should try??



Patrick Boisclair
Analyste - Programmeur senior
Senior Analyst Programmer
noovelia.com
-----Original Message-----
From: Ben Hutcheson <be...@gmail.com> 
Sent: Monday, July 4, 2022 6:21 PM
To: dev@plc4x.apache.org
Subject: Re: Question about Ethernet/IP writing BOOL values to the PLC

Attention: Courriel provenant de l'externe. Veuillez valider la source et le contenu avant de cliquer sur un lien ou d'ouvrir un document.


Also give the latest branch a try again, may have just been an easy fix?

On Tue, Jul 5, 2022 at 8:09 AM Ben Hutcheson <be...@gmail.com> wrote:

> Hi Patrick,
>
> I have been doing some work on this lately and was wondering if you'd 
> like to test out the changes on the eip_update branch?
>
> You should be able to use a connection string like
>
> "logix:tcp://192.168.1.12:44818?communicationPath=1,4"
>
> Instead, as well as not needing to include a % in front of the field 
> address.
>
> I'd also be interested to see if you needed to make any changes to the 
> code to get it work and what device you are using?
>
> Kind Regards
>
> Ben
>
>
>
> On Tue, Jul 5, 2022 at 6:14 AM Patrick Boisclair 
> <pb...@noovelia.com>
> wrote:
>
>> Hi all,
>>
>>
>>
>> I’m currently trying to WRITE a BOOL value to an Allen Bradley over 
>> Ethernet/IP.
>>
>> Reading the values works just fine. Reading and WRITING DINT values 
>> works as well.
>>
>>
>>
>> However, when writing a BOOL it hangs and then fails with:
>>
>> 2022-07-04 16:08:38.289 [nioEventLoopGroup-5-1] WARN 
>> i.n.channel.DefaultChannelPipeline - An exceptionCaught() event was 
>> fired, and it reached at the tail of the pipeline. It usually means 
>> the last handler in the pipeline did not handle the exception.
>>
>> java.net.SocketException: Connection reset
>>
>>                 at
>> java.base/sun.nio.ch.SocketChannelImpl.throwConnectionReset(SocketCha
>> nnelImpl.java:394)
>>
>>                 at
>> java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:42
>> 6)
>>
>>                 at
>> io.netty.buffer.PooledByteBuf.setBytes(PooledByteBuf.java:258)
>>
>>                 at
>> io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1132)
>>
>>                 at
>> io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketCha
>> nnel.java:350)
>>
>>                 at
>> io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(Abstra
>> ctNioByteChannel.java:151)
>>
>>                 at
>> io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.jav
>> a:722)
>>
>>                 at
>> io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEve
>> ntLoop.java:658)
>>
>>                 at
>> io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.ja
>> va:584)
>>
>>                 at
>> io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)
>>
>>                 at
>> io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThread
>> EventExecutor.java:986)
>>
>>                 at
>> io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java
>> :74)
>>
>>                 at
>> io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalR
>> unnable.java:30)
>>
>>                 at java.base/java.lang.Thread.run(Thread.java:833)
>>
>>
>>
>> In fact all those values (see image) works for reading (ALL WORK) and 
>> writing (BOOL ONLY FAILS):
>>
>>
>>
>>
>>
>> My connection string is:   eip://x.x.x.x?backplane=1&slot=0
>>
>>
>>
>> For example: trying to WRITE to: %Rejet_Boite_OK:BOOL fails. Reading 
>> works.
>>
>>
>>
>> Any input on this ?
>>
>>
>>
>> Ty all for your help really appreciated
>>
>>
>> Patrick Boisclair​
>> Analyste ‑ Programmeur senior
>> Senior Analyst Programmer
>> *noovelia.com* 
>> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
>> w.noovelia.com%2Ffr-ca%2Faccueil&amp;data=05%7C01%7Cpboisclair%40noov
>> elia.com%7Ca1cd795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d02
>> 44c4c8c4b%7C0%7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIj
>> oiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7
>> C%7C%7C&amp;sdata=uSY75wjX%2BoK61lk3NuAJnKM0L%2B52qgBW8zq3qfDQWwo%3D&
>> amp;reserved=0>
>> [image: Facebook] 
>> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
>> w.facebook.com%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.co
>> m%7Ca1cd795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d0244c4c8c
>> 4b%7C0%7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wL
>> jAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C
>> &amp;sdata=lrRXP0XVoca9XTK1aOh0IjK63aimZIq1W1i3z0TwAx8%3D&amp;reserve
>> d=0>
>> [image: LinkedIn] <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ca1cd795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=awbl%2BTeIFXJsMDU873KYwnp9XOqeHRoXsyL1B%2FTLhvs%3D&amp;reserved=0> [image:
>> Vimeo] 
>> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvi
>> meo.com%2Fnoovelia&amp;data=05%7C01%7Cpboisclair%40noovelia.com%7Ca1c
>> d795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d0244c4c8c4b%7C0%
>> 7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAi
>> LCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sd
>> ata=y%2Bv4ubxvjzNifhpII4HcMyFkz%2B1x7%2FVhDoObMfHMA1Y%3D&amp;reserved
>> =0>
>> [image: Noovelia.com] 
>> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
>> w.noovelia.com%2Ffr-ca%2Faccueil&amp;data=05%7C01%7Cpboisclair%40noov
>> elia.com%7Ca1cd795b574a4575a67508da5e0b8fc8%7C7c23133a4fda483abf15d02
>> 44c4c8c4b%7C0%7C0%7C637925700997931285%7CUnknown%7CTWFpbGZsb3d8eyJWIj
>> oiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7
>> C%7C%7C&amp;sdata=uSY75wjX%2BoK61lk3NuAJnKM0L%2B52qgBW8zq3qfDQWwo%3D&
>> amp;reserved=0>
>>
>

Re: Question about Ethernet/IP writing BOOL values to the PLC

Posted by Ben Hutcheson <be...@gmail.com>.
Also give the latest branch a try again, may have just been an easy fix?

On Tue, Jul 5, 2022 at 8:09 AM Ben Hutcheson <be...@gmail.com> wrote:

> Hi Patrick,
>
> I have been doing some work on this lately and was wondering if you'd like
> to test out the changes on the eip_update branch?
>
> You should be able to use a connection string like
>
> "logix:tcp://192.168.1.12:44818?communicationPath=1,4"
>
> Instead, as well as not needing to include a % in front of the field
> address.
>
> I'd also be interested to see if you needed to make any changes to the
> code to get it work and what device you are using?
>
> Kind Regards
>
> Ben
>
>
>
> On Tue, Jul 5, 2022 at 6:14 AM Patrick Boisclair <pb...@noovelia.com>
> wrote:
>
>> Hi all,
>>
>>
>>
>> I’m currently trying to WRITE a BOOL value to an Allen Bradley over
>> Ethernet/IP.
>>
>> Reading the values works just fine. Reading and WRITING DINT values works
>> as well.
>>
>>
>>
>> However, when writing a BOOL it hangs and then fails with:
>>
>> 2022-07-04 16:08:38.289 [nioEventLoopGroup-5-1] WARN
>> i.n.channel.DefaultChannelPipeline - An exceptionCaught() event was fired,
>> and it reached at the tail of the pipeline. It usually means the last
>> handler in the pipeline did not handle the exception.
>>
>> java.net.SocketException: Connection reset
>>
>>                 at
>> java.base/sun.nio.ch.SocketChannelImpl.throwConnectionReset(SocketChannelImpl.java:394)
>>
>>                 at
>> java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:426)
>>
>>                 at
>> io.netty.buffer.PooledByteBuf.setBytes(PooledByteBuf.java:258)
>>
>>                 at
>> io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1132)
>>
>>                 at
>> io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:350)
>>
>>                 at
>> io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:151)
>>
>>                 at
>> io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:722)
>>
>>                 at
>> io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:658)
>>
>>                 at
>> io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:584)
>>
>>                 at
>> io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)
>>
>>                 at
>> io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
>>
>>                 at
>> io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
>>
>>                 at
>> io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
>>
>>                 at java.base/java.lang.Thread.run(Thread.java:833)
>>
>>
>>
>> In fact all those values (see image) works for reading (ALL WORK) and
>> writing (BOOL ONLY FAILS):
>>
>>
>>
>>
>>
>> My connection string is:   eip://x.x.x.x?backplane=1&slot=0
>>
>>
>>
>> For example: trying to WRITE to: %Rejet_Boite_OK:BOOL fails. Reading
>> works.
>>
>>
>>
>> Any input on this ?
>>
>>
>>
>> Ty all for your help really appreciated
>>
>>
>> Patrick Boisclair​
>> Analyste ‑ Programmeur senior
>> Senior Analyst Programmer
>> *noovelia.com* <https://www.noovelia.com/fr-ca/accueil>
>> [image: Facebook] <https://www.facebook.com/noovelia>
>> [image: LinkedIn] <https://www.linkedin.com/company/noovelia> [image:
>> Vimeo] <https://vimeo.com/noovelia>
>> [image: Noovelia.com] <https://www.noovelia.com/fr-ca/accueil>
>>
>

Re: Question about Ethernet/IP writing BOOL values to the PLC

Posted by Ben Hutcheson <be...@gmail.com>.
Hi Patrick,

I have been doing some work on this lately and was wondering if you'd like
to test out the changes on the eip_update branch?

You should be able to use a connection string like

"logix:tcp://192.168.1.12:44818?communicationPath=1,4"

Instead, as well as not needing to include a % in front of the field
address.

I'd also be interested to see if you needed to make any changes to the code
to get it work and what device you are using?

Kind Regards

Ben



On Tue, Jul 5, 2022 at 6:14 AM Patrick Boisclair <pb...@noovelia.com>
wrote:

> Hi all,
>
>
>
> I’m currently trying to WRITE a BOOL value to an Allen Bradley over
> Ethernet/IP.
>
> Reading the values works just fine. Reading and WRITING DINT values works
> as well.
>
>
>
> However, when writing a BOOL it hangs and then fails with:
>
> 2022-07-04 16:08:38.289 [nioEventLoopGroup-5-1] WARN
> i.n.channel.DefaultChannelPipeline - An exceptionCaught() event was fired,
> and it reached at the tail of the pipeline. It usually means the last
> handler in the pipeline did not handle the exception.
>
> java.net.SocketException: Connection reset
>
>                 at
> java.base/sun.nio.ch.SocketChannelImpl.throwConnectionReset(SocketChannelImpl.java:394)
>
>                 at
> java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:426)
>
>                 at
> io.netty.buffer.PooledByteBuf.setBytes(PooledByteBuf.java:258)
>
>                 at
> io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1132)
>
>                 at
> io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:350)
>
>                 at
> io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:151)
>
>                 at
> io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:722)
>
>                 at
> io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:658)
>
>                 at
> io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:584)
>
>                 at
> io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)
>
>                 at
> io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
>
>                 at
> io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
>
>                 at
> io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
>
>                 at java.base/java.lang.Thread.run(Thread.java:833)
>
>
>
> In fact all those values (see image) works for reading (ALL WORK) and
> writing (BOOL ONLY FAILS):
>
>
>
>
>
> My connection string is:   eip://x.x.x.x?backplane=1&slot=0
>
>
>
> For example: trying to WRITE to: %Rejet_Boite_OK:BOOL fails. Reading works.
>
>
>
> Any input on this ?
>
>
>
> Ty all for your help really appreciated
>
>
> Patrick Boisclair​
> Analyste ‑ Programmeur senior
> Senior Analyst Programmer
> *noovelia.com* <https://www.noovelia.com/fr-ca/accueil>
> [image: Facebook] <https://www.facebook.com/noovelia>
> [image: LinkedIn] <https://www.linkedin.com/company/noovelia> [image:
> Vimeo] <https://vimeo.com/noovelia>
> [image: Noovelia.com] <https://www.noovelia.com/fr-ca/accueil>
>