PLCHome / node-red-contrib-ads

Beckhoff TwinCat ADS support for Node-Red.
MIT License
15 stars 11 forks source link

Can't connect via ADS #51

Closed SamHouser closed 1 year ago

SamHouser commented 1 year ago

Hi, i need help. Since two days, i try to connect node red to my VM Twincat 3.1.4024.4.

This is the error message i get: "Failed to connect 10.0.2.15.1.1:851 at startup: ClientException: Connection to 127.0.0.1:48898 failed (socket error -111) (connect ECONNREFUSED 127.0.0.1:48898)". What do i wrong. or Failed to connect 10.0.2.15.1.1:851 at startup: ClientException: Connection to 192.168.178.1:48898 failed (socket error -111) (connect ECONNREFUSED 192.168.178.1:48898)

My steps:

  1. Install docker with node-red on my Qnap (Container Station). The IP is 192.168.178.10:1880. So far so good. It works fine.

  2. Start my VM with Twincat 3.1.4024.4 and make a simple program. Is connected via Bridge. The IP of the VM is 192.168.178.68. I reach node-red on VM. Symbols are created on the PLCTask

grafik

grafik.

I put a static root. The AMSNetID is 10.0.2.15.1.1 grafik

What else can i do?

Do i need install npm i ads-client too?

Regards Sam