Open JoonasC opened 2 days ago
Just a quick question ... why would you access a Beckhoff ADS device with EIP and not ADS? It's sort of like having a Porsche in the garage but driving with the Dacia ;-)
I'm investigating the Ethernet/IP functionality of PLC4X, but do not have any other Ethernet/IP capable devices on hand.
Hehe ... ok ... I guess that's really the only case it would make sense ;-)
As I also have a Beckhoff ADS device here ... if you could describe and document how to setup the EIP stuff, I could give it a try on my device.
Sure, here is Beckhoff's official documentation: https://infosys.beckhoff.com/english.php?content=../content/1033/tf6281_tc3_ethernetipscanner/index.html&id=
For a TLDR version:
ETHIP
, which contains variables declared in the M
memory area:
Tc2_EthernetIP
library to the PLC project:
What happened?
It seems like PLC4X does not wait for a response from the Ethernet/IP server when reading data (specifically using the Ethernet/IP scanner device in Beckhoff Twincat3 PLCs)
I'm using the following code to test reading:
Stacktrace:
Looking at Wireshark, PLC4X closes the connection before the PLC has a chance to respond to the read request:
Capture.pcapng.gz
I can workaround this bug by adding a manual
Thread.sleep
before trying to interact with the read response object:Here is my Twincat3 Ethernet/IP explicit messaging configuration:
Version
0.12.0
Programming Languages
Protocols