Connection between S7-300 PLC with CP343-1 and Home Assistant

Hello everybody. I have got a question about a Integration called ha-s7plc. I have found it in the HACS store, and installed it on my home assistant server.
The situation is that there is running a Siemens S7 300 PLC with a CP343-1 card next to the CPU. So the CPU is on slot 2, the CP card on slot 4. The CP card type is 6GK7 343-1EX30-0XE0.
Now the problem; I had read somewhere that a normal connection with Rack/Slot is not suitable for the older types (such as S7-300) PLC. So, therefore I needed to make a TSAP connection.
But, whatever I do with settings, I can’t get a connection via Home Assistant to this PLC. I know that port 102 is open (looked with Windows PowerShell).
The IP setting of my HA server is 192.168.2.36, the PLC has got 192.168.2.240.
I have programmed it in TIA Portal V20. I have also tried to create a solution with the benefits of AI, but unfortunately it didn’t come up with the right solution.
Has got anyone experience on this topic? And is there a possibillity that someone can help me with this? I really would appreciate that!

Regards, Wesley

Hello!
Connecting Home Assistant’s ha‑s7plc integration to an older Siemens S7‑300 with a CP343‑1 card requires using TSAP settings instead of Rack/Slot. The CP343‑1 communicates via ISO on TCP (port 102), so you need to match the local greenskyonline login and remote TSAP values configured in TIA Portal with those in ha‑s7plc. If the values don’t align, the connection will fail even though port 102 is open. In short, double‑check the TSAP configuration in your PLC hardware setup and replicate it exactly in Home Assistant to establish communication.

Thank you for your answer already!
Okay, I got that, TSAP is necessary to get a connection.
There is one problem I don’t get. Where can I fine the TSAP configuration in TIA Portal for my CP card? And where can I find the TSAP settings on my HA server?