Hello Antonio,
Apache PLC4X currently supports only anonymous connections. If your PLC is configured with some security (sign / sign and encrypt) then it will not work. There is working on adding support for that, but its not finalized nor ready for review yet.

Kind regards,
Łukasz

On 29.06.2023 11:10, FARIELLO, ANTONIO wrote:
Dear PLC4x Team,

I'm writing to you to document a problem we encountered when trying to connect to a Siemens PLC via OPC UA using a Java client.

We programmed a Java client to establish a connection to the Siemens PLC, following the recommended methods and procedures.

However, we were unable to get a working connection. During our tests, we were connected to a switch via network cable, and the same switch was in turn connected to the PLC.

Running the test several times (without any changes to the code) we obtained 3 different results:

1) Error: "Connection terminated by remote"

2) Error: "An established connection was aborted by the software in your host machine"

3) Connection established successfully (very rarely).

I would like to point out that we have tested the functionality of other tools such as Apache Milo and UA Expert, which successfully connected to Siemens PLC using the same network environment. These tools established a connection without problems, proving that the PLC and its configuration are correct.

Therefore, we are interested in understanding what could be the cause of the problem we are having with the Java client that we have developed using PLC4x. We can rule out a malfunction of the PLC or its configuration, as other tools work fine.

Thank you for the attention dedicated to our request and I look forward to your response to resolve this issue.

Best regards,

Antonio.

*Antonio Fariello*

Professional | Industrial Operations Engineer

Capgemini Italia | Italy

[email protected] <mailto:[email protected]>

www.capgemini.com <http://www.capgemini.com/>

<https://www.capgemini.com/resources/get-the-future-you-want>____________________________________________________________________

twitter <https://twitter.com/capgemini>linkedin <https://www.linkedin.com/company/capgemini>facebook <https://www.facebook.com/capgemini>youtube <https://www.youtube.com/profile?user=capgeminimedia>soundcloud <https://soundcloud.com/capgemini>Résultat de recherche d'images pour "instagram logo rond" <https://www.instagram.com/capgemini><https://www.slideshare.net/capgemini><https://www.glassdoor.com/Overview/Working-at-Capgemini-EI_IE3803.11,20.htm>

7  Switch off  |qRecycle |PPrint only if necessary

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.

Reply via email to