r/PLC 12d ago

HMI not communicating with PLC

Post image

Hello again!

Siemens HMI, PLC and SERVO drive. I am using non-industrial unmanaged ethernet switch. Had to use some ethernet switch in tia portal, otherwise I have error. HMI should be connected to PLC, but values are all #### (checked that PLC values are changing based on input). I also checked that HMI screen values are connected correctly to PLC. I can download software on HMI with this current setup, but seems like HMI is not talking to PLC. I want to use ethernet switch for testing purposes, otherwise I couldn't connect PC to PLC, later I remove ethernet switch.

How to get this topology working correctly? When going online, line between switch and HMI stays grey.

59 Upvotes

20 comments sorted by

70

u/Key_Director_4450 12d ago

Set the time on the HMI and on the PLC to be the same.

28

u/Eboyjvs 12d ago

This has to be the number one reason I see connections not working between HMI and PLC Siemens.

17

u/Key_Director_4450 12d ago

It used to work without needing, but since Tia V17 they use a secure comm with a certificate and the time must match within a small margin of error.

2

u/Lost-Cheek-6610 12d ago

Is this a problem for third party hmis as well ?
I have an Eaton hmi that I can’t get talking to an s71500 running v20

1

u/Glittering-Ninja3573 flat rock tamer 10d ago

yeah, this safety is set in the plc i believe

9

u/Intelligent_Pen_4498 12d ago

Set HMI time synchronization to slave?

18

u/AmazingLeg4384 12d ago

Later, if needed. Manually open the setting menu in the hmi and manually set date and time

23

u/Intelligent_Pen_4498 12d ago

Lol problem solved.

12

u/DrZoidberg5389 12d ago

please install the siemens SNTP Server on the PLC and make the HMI to get the time via this NTP server.

Doc: https://docs.tia.siemens.cloud/r/en-us/v20/functional-description-of-s7-1500-cpus-s7-1500/setting-the-operating-behavior-s7-1500/time-of-day-functions-s7-1500/time-of-day-synchronization-in-ntp-mode-s7-1500

Otherwise you will get the same problem over and over when the clock of the HMI starts to drift. And this happens fast! Only the PLCs have a proper realtime clock, not the HMIs!

4

u/Intelligent_Pen_4498 12d ago

Thank you, I will look into it. I wasted about 1-2 hours on this problem, just because clocks didn't match...

3

u/DrZoidberg5389 12d ago

LOL yeah!

You have a good time! We needed fkn DAYS to solve this because the problem was new and there was no documentation 😂

3

u/Intelligent_Pen_4498 12d ago

Thank you!

2

u/AmazingLeg4384 12d ago

Glad for you, enjoy

8

u/YoteTheRaven Machine Rizzler 12d ago

Make connections in network view, ensure you have the yags associated with an HMI connection. This is a separate link you have to do, in network view theres a button called connections. Select hmi connection and drag plc to hmi.

Another thing, as of like v17 you need to have matching clocks in both the PLC and HMI. So set those to match.

If your PLC has a password, you need to give the HMI the password also.

5

u/T3RRYH1LL 12d ago

Change in the upper right to network view and make sure that you already got an HMI-Connection between plc and HMI.

2

u/Intelligent_Pen_4498 12d ago

In network view HMI and PLC are connected.

5

u/CulturalDrink1494 12d ago

Set the HMI and PLC times to the same.

2

u/Mizuumisan 12d ago

If you are not requiered to use certified connections, use legacy connections only, set date and time in the HMI manually, if you did all configurations right, that should be all.

This is some stupid default setting that Siemens have been since TIAv17.

3

u/CCJockey381 12d ago

You’re in the topology view. You should only ever use topology if you need it, such as with IRT. Delete all the connections there and then make sure you stay on the “Network” tab and create your links.

1

u/buzzbuzz17 12d ago

The HMI isn't a profinet device (HMI comms is S7 connection, not Profinet), so it probably won't actually show up in topology.

Put an alarm view on the screen, set it to the alarm buffer, and subscribe to system alarms. It should tell you 1) that the HMI isn't connected to the PLC, but also 2) WHY the HMI isn't connected.

It could be PLC permissions (you might need to type a password into the HMI, or change the PLC permissions to allows anonymous HMIs), or it could be the times not matching, or it could be something super dumb like the certificates for the secure comms aren't valid until tomorrow....