Join us today!

Notifications
Clear all

ADS-over-MQTT

3 Posts
3 Users
0 Reactions
2,174 Views
Posts: 2
Topic starter
(@gokul_g)
Active Member
Joined: 4 years ago
[#396]

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?


Reply
2 Replies
Posts: 1
 abeS
(@abes)
New Member
Joined: 10 months ago

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.


Reply
Posts: 34
 Alex
(@alex)
Eminent Member
Joined: 4 years ago

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 ?


Reply
Share: