1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 <2021> 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 <2021> 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | ODP: Failed connection using e3-s7plc to Siemens S7-1500 |
From: | Mateusz Nabywaniec via Tech-talk <tech-talk at aps.anl.gov> |
To: | Miklós Boros <Miklos.Boros at ess.eu>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, Dominik Domagała <Dominik.Domagala at s2innovation.com>, "dirk.zimoch at psi.ch" <dirk.zimoch at psi.ch>, Timo Korhonen <timo.korhonen at ess.eu> |
Date: | Fri, 29 Oct 2021 14:28:49 +0000 |
Hi,
thanks for messages. Update from our side:
We changed port to 102 as we found it is port for S7 TCP/IP . (https://support.industry.siemens.com/cs/document/8970169/which-ports-are-used-by-the-various-services-for-data-transfer-via-tcp-and-udp-and-what-should-you-watch-out-for-when-using-routers-and-firewalls-?dti=0&lc=en-WW)
We can connect to 102 using telnet. Here is output after running st.cmd:
10/29/21 10:17:30.469 s7plcConnect cpu1: connected to 192.168.0.10:102 10/29/21 10:17:41.546 s7plcWaitForInput cpu1: timeout after 10 seconds. 10/29/21 10:17:41.546 s7plcReceiveThread cpu1: waiting for input failed: Connection timed out 10/29/21 10:17:41.546 s7plcCloseConnection cpu1 10/29/21 10:17:41.779 s7plcConnect cpu1: connected to 192.168.0.10:102 10/29/21 10:17:52.806 s7plcWaitForInput cpu1: timeout after 10 seconds. 10/29/21 10:17:52.806 s7plcReceiveThread cpu1: waiting for input failed: Connection timed out 10/29/21 10:17:52.806 s7plcCloseConnection cpu1 10/29/21 10:17:53.068 s7plcConnect cpu1: connected to 192.168.0.10:102 10/29/21 10:18:04.070 s7plcWaitForInput cpu1: timeout after 10 seconds. 10/29/21 10:18:04.070 s7plcReceiveThread cpu1: waiting for input failed: Connection timed out 10/29/21 10:18:04.070 s7plcCloseConnection cpu1 10/29/21 10:18:04.085 s7plcConnect cpu1: connected to 192.168.0.10:102 10/29/21 10:18:15.332 s7plcWaitForInput cpu1: timeout after 10 seconds. 10/29/21 10:18:15.332 s7plcReceiveThread cpu1: waiting for input failed: Connection timed out 10/29/21 10:18:15.332 s7plcCloseConnection cpu1 Do you have any suggestions about that?
Regards,
Mateusz Nabywaniec,
S2Innovation, Cracow, Poland
Od: Miklós Boros <Miklos.Boros at ess.eu>
Wysłane: czwartek, 28 października 2021 17:31 Do: Mateusz Nabywaniec <mateusz.nabywaniec at s2innovation.com>; tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>; Dominik Domagała <Dominik.Domagala at s2innovation.com>; dirk.zimoch at psi.ch <dirk.zimoch at psi.ch>; Timo Korhonen <Timo.Korhonen at ess.eu> Temat: Re: Failed connection using e3-s7plc to Siemens S7-1500 Dear Mateusz,
Usually the issue is in the PLC.
You can doublecheck it by telnet into the PLC IP on port 2000.
for example: telnet 192.168.0.100 2000
You should get an active connection and if you send something you should see it too in a binary form.
If you can't telnet it means the PLC does not open the port 2000 properly.
Check if you use the proper HW_ID for T_CON. X1 is usually 64 and X2 is 72.
The send block also needs a constant trigger.
Tell me if you need an example.
Cheers,
Miklós Boros |