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 <[email protected]>
Datum: Dienstag, 5. Juli 2022 um 14:25
An: [email protected] <[email protected]>
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 <[email protected]>
Sent: Monday, July 4, 2022 6:21 PM
To: [email protected]
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 <[email protected]> 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
> <[email protected]>
> 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>
>>
>

Reply via email to