PLCHome / node-red-contrib-ads

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

What is my source NetID? #45

Closed mdhom closed 3 years ago

mdhom commented 3 years ago

Hey,

i am having problems configuring my node-red-ads installation. I am asked for the "Source NetID" what i assume would be the NetId of the device where my node red installation is running, am i right? But as i am running it from within a docker container on a raspberry pi, i do not have TwinCat installed, so i do not know how to get the AMS NetID of my raspberry pi?!

When i deploy my flow, the node logs "Error on connect: check target NetId or routing"

node-red-contrib-ads version: 1.1.29 nodered version: 1.1.3 on which operating system is the Node-RED running: Linux Raspbian on which hardware system is the Nodered running: Raspberry PLC type: standard windows pc with TwinCat Runtime Twincat version of the PLC: 3.1.4024.11 Twincat version of the development environment: 3.1.4024.11

Routes

image This is the routes manager captured on my development pc. You can see the route to the PLC. I think i have to establish another route to my raspberry, but when i enter the raspberrys IP, nothing is found...

image When i want to add a static route on the plc itself to the raspberry (leaving the username and password fields blank), i get this error (1800: ADSERR_DEVICE_BUSY)

PLC Task

image These are the settings of my main PLC-Task (the one where MAIN is running in).

ads-connection node

image These are the settings in the ads-connection node (192.168.188.149 is the raspberrys ip)

Would be glad if you could help me here!

mdhom commented 3 years ago

Found my problems:

  1. remove the checkbox for Remote Route static, check None instead
  2. AMS Port was 851, not 350.