WinCC Unified and PLC weird communication issue

aamirawan91

Member
Join Date
Feb 2024
Location
Karachi
Posts
33
I have created a project in TIA Portal v16 Upd6 with S7-1200 (6ES7214-1AG40-0XB0) and WinCC Unified (PC station). The communication between the runtime and the PLC was perfect, and all the IO fields, buttons, and everything else were working smoothly when the PC was directly connected to the PLC with an Ethernet cable.

The PLC needs to be installed in a location which is at a considerable distance from the PC. I installed the PLC there and connected it to the nearest Ethernet port in the plant, then connected my PC to its closest Ethernet port. Both of these ports are in the same network/subnet. I manually assigned a static IP to the PC, which was configured in the project. I can ping the PLC from the PC, but in the browser, the runtime doesn't seem to be connected to the PLC, and the IO fields etc. are showing an exclamation mark as if there is no connectivity to the PLC.

Now, the interesting part: I brought the PLC back to the PC and connected it directly again; it starts working. Then I connected it back to the same Ethernet port where it was not working, but now it works. It keeps working until the PC restarts or its IP address is changed. If I want them to communicate again, I have to do this weird trick again: connect them directly, and it works; connect them back via network, and it will keep working. Please note that both of these Ethernet ports are in the same subnet. No routing is done or required. PG/PC interface is also set correctly to TCPIP.

Why is this happening, and how can I make it work without having to connect them directly the first time before connecting them indirectly in the network?
 
For either your info, or the info of people who come later, TCPIP.Auto assigns itself an IP address automatically in the subnet of the device it's trying to communicate to. Very helpful when you're walking up to a bunch of random PLCs and plugging in (might not have to change your IP for each); but it prevents you from doing Routing/NAT and gives IT departments headaches.
 
Yes. Avoid '.auto'.

For either your info, or the info of people who come later, TCPIP.Auto assigns itself an IP address automatically in the subnet of the device it's trying to communicate to. [..] but it prevents you from doing Routing/NAT and gives IT departments headaches.
I think something more is happening when you select the .auto option.
Just like aamirawan91 says, ports are in the same subnet, routing is not needed. Have experienced the same. Usually it is colleagues that start with TIA for the first time, they chose the .auto option, because why not, and then they cant come online.
 
There could be more magic than I mentioned above, that's just the part I know about
 

Similar Topics

Hello Experts I am working on a project with WinCC Unified v16 PC system and want to create an option on the screen to export logs to the...
Replies
0
Views
69
Does anyone happen to know how to install the graphic picture in HMI when I go into blower selection there are no graphics shown not only blower...
Replies
1
Views
90
I am creating a project with WinCC Unified v16 Upd6 (PC runtime) with an S7-1200. The communication is good between the PC and the PLC as I can...
Replies
6
Views
237
I was looking for this function, so that i doesn´t need to do it in the PLC. If there are an alarm in the alarm list, i want to flash the...
Replies
2
Views
551
Hi! Doin my first project in Unified, can’t find anything. I use the tool Alarm Control, and there is buttons everywhere as well as fields...
Replies
1
Views
472
Back
Top Bottom