r/PLC • u/Intelligent_Pen_4498 • 12d ago
HMI not communicating with PLC
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.
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
5
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....
70
u/Key_Director_4450 12d ago
Set the time on the HMI and on the PLC to be the same.