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!
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?
Hi Wesley
In TIA goto “devices & networks”. Next to the overview you should see a field with tabs like “network overview”…
click on connections. maybe there are some, maybe not.
on the top of the visual depiction chose connections.
right click on the PLC CPU and choose “add new connection”
in the appearing pop up choose at type (I mean) s7 connection or Iso on TCP
That’s what I’m working on, my connection isn:t running at all.
I know the parameters but a connection I couldn’t get working.
The homeassistant seems does not accept the TSAP values for own (10.0) and remote (15.02)
The problem is also that I cannot create a new connection in TIA. Whatever I do, I can’t get a new one.
Also my connection isn’t running, the message “connection is disrupted” is visible.
Also tried TSAP, but also that doesn’t work.
Last week I tried to connect a S7-1500 CPU to HA, same result. Not working at all. Anybody have suggestions on what to do, step by step?