Connection CX8090 with HA Raspberry PI4 ADS

Hello, i know this an earlier discussed topic and it has been very useful up to the point i’m now to connect my plc to HA , i checked them all but without luck

but i’m keep struggeling to connect with correct ADS route from my CX8090 to Raspberry PI4 . So i’m desperate and asking you guys some help what can be wrong still.

situation is :

my PLC :

  • CX8090 build 2.11
  • Twincat 2
  • Ip 192.168.0.222
  • AMS ID :5.36.35.167.1.1

Route Settings for ADS i made:

true tc system manager => System configuration => Route Settings => Static routes => Add

Added new route with these settings :

  • Route Name(Target) : Pi4
  • AmsNetId : 192.168.0.223.1.1
  • Transp type: TCP/IP
  • Adres info: 192.168.0.223
  • Setting on Ip adress (not host)
  • Target route: Static
  • Remote route: None

Activated config/PLC is in run and restarted

My Raspberry PI4:

Network :
192.168.0.223

in Yaml file:

ads:
device: ‘5.36.35.167.1.1’
port: 801
ip_address: ‘192.168.0.222’

binary_sensor:

  • platform: ads
    adsvar: .HA_TestBool

sensor:

  • platform: ads
    adsvar: .HA_TestInt
    unit_of_measurement: “°C”
    adstype: int

but i still cannot manage to make connection after many tries and changes everything i can that i know. i’m missing something but i dont see what?