Siemens S7-1200 is losing network

Yashka

Member
Join Date
Nov 2019
Location
WV
Posts
91
Hi All
I have a baghouse control system in production for many years. But some time ago the PLC began to lose the network suddenly until I restart by power switch off/on. It seems like the Ethernet port is going down and no one outside (HMI panel, Profinet devices, etc) doesn't see the PLC. The diagnostic buffer has contained only network errors for Profinet devices and nothing else.

The PLC is 6ES7 215-1HG40-0XB0 with firmware 4.2, occupied memory is less than half, CPU load < 10%, any ideas?

Thanks in advance!
 
You say it is the Ethernet port going down, but it could equally be an Ethernet cable problem, or whatever the other end of the cable is attached to, problem (Ethernet switch?). As there isn't an 'easy' way to try to diagnose Ethernet problems I tend to go with the 'swap out the cheapest' things first option. So try another port on the Ethernet switch, then swap the cable, then swap the PLC or Ethernet switch.
 
It seems like the Ethernet port is going down and no one outside (HMI panel, Profinet devices, etc) doesn't see the PLC. The diagnostic buffer has contained only network errors for Profinet devices and nothing else.
Do you go online and check the diagnostics buffer before or after the power cycle ? If you can get access with TIA then the port is not offline.

Is there a switch in the system ? Cheap unmanaged switches can be overwhelmed by Profinet traffic.
Can you check by removing the switch and connect directly to the S7-1200 ?

It is possible that some HMI or other device has a problem and try to setup too many connections, or do not release connections. That may cause the PLC to run out of connections. There should be 1 reserved PG connection, so you should be able to get online and check diagnostics buffer and the available connections.
 
You say it is the Ethernet port going down, but it could equally be an Ethernet cable problem, or whatever the other end of the cable is attached to, problem (Ethernet switch?). As there isn't an 'easy' way to try to diagnose Ethernet problems I tend to go with the 'swap out the cheapest' things first option. So try another port on the Ethernet switch, then swap the cable, then swap the PLC or Ethernet switch.

This is one of the biggest wonder things for me. The log from CISCO didn't show that the port has been down. The physical layer was okay. Something has happened on the upper layers.
 
Do you go online and check the diagnostics buffer before or after the power cycle ? If you can get access with TIA then the port is not offline.
Unfortunately, no. I'm asking employees to call me when it's happening but every time they didn't it.

Is there a switch in the system ? Cheap unmanaged switches can be overwhelmed by Profinet traffic.
Can you check by removing the switch and connect directly to the S7-1200 ?
We're using only managed CISCO switches on our plant with special VLAN for such equipment.

It is possible that some HMI or other device has a problem and try to setup too many connections, or do not release connections. That may cause the PLC to run out of connections. There should be 1 reserved PG connection, so you should be able to get online and check diagnostics buffer and the available connections.
Thanks for the great idea. If some equipment doing very fast reconnect cycles it could cause a "no more connection available" state in the kernel. I didn't think about it before. How I can see all incoming and outgoing connections from TIA? Is it possible to monitor these remotely?
 
We're using only managed CISCO switches on our plant with special VLAN for such equipment.
I would not trust the switch. When the error situation is active, dont reset by cycling the power. Instead disconnect the switch, connect a laptop directly and try to ping, try to go online with TIA, and/or try to access the webserver.
edit: One more thing to check is if the CPU appears in the "accessible nodes" list of devices. This method reaches the CPU via the MAC address instead of the IP address.

How I can see all incoming and outgoing connections from TIA? Is it possible to monitor these remotely?
When online with TIA, in the project tree left side, select the CPU, and in the Properties select Diagnostics tab, Connection information.
edit: Possibly you can also see this via the webserver. I havent tried that myself though.
 
Last edited:
I would not trust the switch. When the error situation is active, dont reset by cycling the power. Instead disconnect the switch, connect a laptop directly and try to ping, try to go online with TIA, and/or try to access the webserver.
edit: One more thing to check is if the CPU appears in the "accessible nodes" list of devices. This method reaches the CPU via the MAC address instead of the IP address.

When online with TIA, in the project tree left side, select the CPU, and in the Properties select Diagnostics tab, Connection information.
edit: Possibly you can also see this via the webserver. I havent tried that myself though.
Thank you, I've found those tables. But one question left - how to reach that info from the user program for logging/monitoring purposes? Is it possible?
 
Thank you, I've found those tables. But one question left - how to reach that info from the user program for logging/monitoring purposes? Is it possible?
Unfortunately I am not aware of that.
There are plenty of examples on how to get hardware errors via GET_DIAG, but I dont know how to query the no of available connections from the user program. I would be interested in that myself.
 
Unfortunately I am not aware of that.
There are plenty of examples on how to get hardware errors via GET_DIAG, but I dont know how to query the no of available connections from the user program. I would be interested in that myself.

I watch during some time current connections (see attachment). And I have doubts that it is the root cause of my issue. It seems to free resources enough.

S71200_Connections.png
 

Similar Topics

Hi all, Currently having trouble getting a speed reference to write over modbus to an Omron M1... I can successfully write a run command and...
Replies
6
Views
216
commentaire communiqué siemens s7-1200 avec vfd delta ? (cablage et sur tia portal )
Replies
0
Views
119
Hi, I have a 1214 on ip 192.168.0.100. This is connected to other modules through a switch on same network. I need to connect this to a company...
Replies
1
Views
170
Hi Experts, I would like to make firmware upgrade from v3.0 to v4.5 (S7-1200 CPU 1215C). Can I do it from v3.0 to v4.5? Do I need to take some...
Replies
6
Views
275
Hi Guys, I am trying to establish communication over profinet between Siemens S7-1200 PLC as IO device and codesys plc as IO controller. But I am...
Replies
43
Views
2,824
Back
Top Bottom