jisotalo/ads-client

Connection issues

RikMe opened this issue · 10 comments

RikMe commented

PLC: 192.168.11.3
AMSnetID PLC: 5.50.37.33.1.1
Twincat 2

Raspberry Pi : 192.168.11.2

Route has been created on PLC. Settings should be according tot tutorials

Error : "Failed to connect 5.50.37.33.1.1:801 at startup: ClientException: Connection failed: Device system manager state read failed - ADS error -1 (Timeout - no response in 6000 ms)"

image
image
image

Can you set debugging level to 3 and copy paste the console output here?

RikMe commented

Screenshot 2022-10-25 at 07 30 04
Screenshot 2022-10-25 at 07 29 06
Screenshot 2022-10-25 at 07 29 26

I mean from Node.js side (terminal).

RikMe commented

Not quite sure how to pull these up. i'm using the function blocks in NodeRed

Did you start node-red from a command line or terminal? If yes, then you will see it there.
If not, it's most probably logged somewhere else.

See
https://stackoverflow.com/questions/39243198/where-to-find-console-in-node-red
https://nodered.org/docs/user-guide/runtime/logging

The latter has a note:
Note : if you are running as a service on the Raspberry Pi using our install script, you can use the node-red-log command to view the service log.

RikMe commented

Screenshot 2022-10-25 at 19 05 42

RikMe commented

i see targetAdsPort : 1000. Should this not be 801 on TC2 ? is configured as 801 in settings.

Unfortunately I don't know why it isn't working. Are you sure that you don't have multiple connections already? See #47

10000 is the port for system manager so that is correct.

Any news on this?

RikMe commented

No, I tried multiple other settings but no effect I'm afraid.