Join us today!
ADS-over-MQTT
Im trying to use ADS‑over‑MQTT as a transport layer to allow the Beckhoff ADS protocol to operate over MQTT, connecting TwinCAT Engineering and Runtime. Beckhoff even provides official samples and configuration files in their GitHub repo:
https://github.com/Beckhoff/ADS-over-MQTT_Samples
However, following these steps hasn’t helped—has anyone been successful in getting this to work?
Had to set this up a few weeks ago.
To test if your MQTT broker (I used Mosquitto) is working properly, you can use a free tool like MQTT Explorer. It helps verify that the broker is reachable and can also show whether a message router (like the ADS Router) has successfully connected to it.
If there is a connection but communication still doesn’t work, it’s possible that a static route is still configured somewhere from a previous setup. In that case, you need to delete that static route manually—otherwise, it can interfere with the correct operation.
Also, make sure the .xml files for the ADS router (like TargetRoutes.xml) are located in the correct directory. The MQTT route should be placed under TwinCAT\3.1\Target\Routes, inside the same TwinCAT installation folder where the TcSysSrv.exe (TwinCAT System Service) is located. If you're in the wrong location, the router won't pick up the configuration.
Hello, I have setup a mosquitto broker. I am able to connect my Laptop to PLCs.
Unfortunally, when I tried to migrate to AWS I had this error : 'CTcpSocketOwner' (32770): TlsConnect failed: 'SSL - Client received an extended server hello containing an unsupported extension', ConnState 25
AWS delivered certificats and I used them.
Any idea ?
- 17 Forums
- 410 Topics
- 1,111 Posts
- 3 Online
- 1,193 Members
