Troubleshooting HMI Simulation in TIA Portal V18: Issues with Input and Output Control

Question:

Greetings everyone, I am a newcomer to the tiaportal platform. I have recently created a new project and HMI screen. While the program is functioning properly with PLC-sim, I am facing issues controlling it through the HMI screen as I do not see any changes in the inputs or outputs. It is important to note that modifications made to inputs from the PLC-sim are reflected on the HMI screen, but not vice versa. I have utilized the correct tags and HMI tagging. How can I resolve this issue and successfully utilize my HMI in simulation?

Top Replies

Do you have the checkbox for each PLC tag properly configured to enable writing values from external sources like an HMI? It is important to ensure that the tags' values can be written as needed for efficient operation.

When working with PLC tags, it is important to ensure that the checkbox allowing external writing, such as from an HMI, is configured correctly. If you are experiencing issues with writing values, consider changing the tags to memory tags, such as using M0.0 instead of I0.0. Remember that using memory tags may be necessary even for input tags. Check your program and HMI tags to make sure they align with this configuration.

When simulating an HMI instead of a PLC, it is not possible to directly write to inputs or outputs. To work around this, create a mapping block to link inputs to internal tags and internal tags to outputs. Use these mapped tags in the program instead of real I/O. During simulation, avoid calling the mapping block. When commissioning, enable the mapping routine by calling the block. I recommend naming the internal tags similarly to the original I/O tags, adding a "_M" for mapped. While some simulators can force inputs on/off, this feature is uncommon in PLCs.

When simulating both the PLC and HMI, it is not possible to write to inputs directly. Instead, create a mapping block to link internal tags to inputs and outputs. During simulation, use these mapped tags in the program. To prevent the block from running during simulation, exclude it. When commissioning, enable the block to call the mapping routine. For ease of reference, name internal tags similarly to their corresponding inputs, adding a suffix like "_M" for mapped tags. While simulators can force inputs on/off, this feature is not common in most PLCs. To simulate effectively, create new internal tags with matching names in the database and utilize them in the HMI.

Internal memory in DB tags is a key distinction, with "M" memory being fixed while DB tags are dynamic. It has been a while since I last used the S7 simulator, so I am unsure about the specific issue you are facing with it.

Welcome to the tiaportal community! From what I understand, it seems like a synchronization problem between your HMI and the PLC. My usual starting point for troubleshooting this kind of issue would be to double-check my PLC and HMI connections thoroughly. If you're using the 'PLCSIM + NetToPLCSim', ensure you have correctly configured it. Sometimes, the issue can also be with WinCC runtime. Ensure your WinCC runtime is compatible with your TIA Portal version. If all the setups are correct, there's a good chance the problem is with 'events' settings in your HMI buttons. Make sure your HMI buttons have their 'events' set to write values to the PLC. I hope this helps, and keep us posted on how you progress!

Welcome to the tiaportal community! It sounds like your HMI and PLC-sim are working in a one-way communication setup where the HMI is not delivering control-command to the PLC-sim. This can occur due to a variety of reasons, mainly revolved around communication settings or PLC/HMI configuration. One thing you may want to double-check against is the "Controller setting" in the HMI properties. Be sure that the right PLC is selected and the MPI address matches. Another potential culprit might be the connection setup within your program. Ensuring the PLC and HMI are properly connected in your project tree might solve the problem as well. Lastly, make sure your tags are linked correctly, as a small error in your addressing could lead to unresponsive buttons on your HMI screen. Keep us updated, and happy coding!

Hello, welcome to the Tiaportal community! Your problem sounds like it might be tied to connection settings, rather than your tags. Please ensure that the HMI is properly connected to the PLC in your simulated environment. In the TIA Portal, go to the 'Device view' -> PLC -> 'Device configuration' and ensure the PN/IE interface has the correct IP. Next, in the HMI properties under 'Connections', ensure that the S7 connection references the correct PLC. After these adjustments, it should work seamlessly. Remember, changes made in the simulation environment need to match those made on the hardware side – this tripped me up when I was a newbie too. Keep going, you'll get the hang of it!

More Replies →

Streamline Your Asset Management
See How Oxmaint Works!!

✅   Work Order Management

✅   Asset Tracking

✅   Preventive Maintenance

✅   Inspection Report

We have received your information. We will share Schedule Demo details on your Mail Id.

You must be a registered user to add a comment. If you've already registered,
sign in. Otherwise, register and sign in.

Frequently Asked Questions (FAQ)

FAQ: 1. Why am I facing issues controlling my program through the HMI screen in TIA Portal V18 simulation?

Answer: Answer: This issue could be due to a lack of bidirectional communication between the PLC-sim and the HMI screen. Make sure that the tags and HMI tagging are correctly implemented for both input and output control.

FAQ: 2. How can I ensure that changes made in the HMI screen are reflected in the inputs and outputs during simulation in TIA Portal V18?

Answer: Answer: To resolve this issue, double-check that the tags used for input and output control are properly configured and assigned in both the PLC-sim and the HMI screen. Correctly setting up the bidirectional communication will ensure that modifications are synchronized.

FAQ: 3. I see changes in inputs from the PLC-sim on the HMI screen, but not the other way around. What could be causing this one-way communication issue?

Answer: Answer: This one-way communication problem may occur if the tags or HMI tagging are not configured correctly for output control. Verify that the tags are correctly mapped and updated bidirectionally to enable proper communication between the PLC-sim and the HMI screen.

Ready to Simplify Maintenance?

Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.

Request Demo  â†’