Problems connecting Node-RED to TwinCAT 3 (ADS connection errors)

Hello everyone,

I'm currently having problems connecting Node-RED to my Beckhoff PLC running TwinCAT 3.

I have already contacted Beckhoff support, but unfortunately they were not able to help me solve the issue. Therefore, I'm hoping someone here might have an idea.

When I try to establish the connection from Node-RED to TwinCAT, I receive multiple error messages (see the attached screenshots). The connection cannot be established.

My setup:

  • PLC: Beckhoff with TwinCAT 3
  • Node-RED running on a separate PC
  • ADS communication

I have attached:

  1. Screenshots of the error messages from Node-RED.
  2. A screenshot of the TwinCAT route/IP configuration on the Beckhoff controller.

Has anyone experienced similar issues or knows what could be causing this? Is there anything specific I should check regarding the AMS Net IDs, ADS routes, firewall settings, or Node-RED configuration?

Any suggestions would be greatly appreciated.

Thank you!