HI Patrick,

Please keep the discussion on our list.

Right now the ADS diver requires you to provide connection Url parameters. 
Unfortunately I see that our documentation for ADS needs some updating. Sorry 
for that.

ads:tcp://10.10.11.77/5.62.206.200.1.1:851?sourceAmsNetId=x.x.x.x.x.x&sourceAmsPort=yyyyy&targetAmsPort=x.x.x.x.x.x&targetAmsNetId=yyyyy

With AMS you need to setup routes on your PLC, so I hope you know how to do 
that … I think we did explain this on our website on the VPN documentation: 
PLC4X – 
(apache.org)<https://plc4x.apache.org/developers/infrastructure/vpn.html> in 
the Beckhoff part.

Hope that helps.

Chris



Von: Patrick Boisclair <pboiscl...@noovelia.com>
Gesendet: Samstag, 5. Dezember 2020 15:24
An: Christofer Dutz <christofer.d...@c-ware.de>
Betreff: RE: ADS Driver: 
org.apache.plc4x.java.api.exceptions.PlcRuntimeException: 
java.util.concurrent.TimeoutException


Ty very much !

I'm now able to use the 0..8.0-SNAPSHOT :)



I now have a:

java.lang.IllegalArgumentException: Missing required fields: [sourceAmsNetId, 
sourceAmsPort, targetAmsPort, targetAmsNetId]



Which I guess the connection :

PlcConnection connection = 
driver.getConnection("ads:tcp://10.10.11.77/5.62.206.200.1.1:851");


This is probably not the way to do now. I'll check how to do it now.



Thank you very much for your help, really appreciated !

Reply via email to