Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - monteran

Pages: [1]
1
Hi all,

After some more testing I think I found the set of conditions that has been causing a freezing problem with my AdvancedHMI project.

I have an interface made up of regular visual basic tab controls. When I start the project with no PLC connected everything is fine, a label on the left outside of the tab control says no PLC is connected, etc. I can click on tabs that do not have basic labels on them and they also work just fine. However, the moment I click on a tab that has basic labels it appears as if they try to fetch their update text from the PLC. From then on the program is frozen.

This is a bit of a problem for me because our program is intended to be used for other tasks besides simply controlling the PLC. Any advice on how to bypass this issue would be appreciated!

2
Support Questions / Freezing when run without a PLC connected
« on: April 06, 2017, 04:03:16 PM »
I have an AdvancedHMI solution I am working with that has been a great help for me and my workflow the past few months. I am wrapping up a project and trying to iron out a few little hindrances before I call it a day and hand off the project to the next guy.

Specifically, one issue I have had is that when I debug the software on a PC that is not connected to the our AB CompactLogix PLC via Ethernet, after a few seconds the application will freeze and need to be restarted. No exceptions or anything seem to be called, and currently all of our code that reads from the PLC is handled in functions tied to buttons. Without touching any of those buttons, the various AdvancedHMI labels will show their typical errors and then the program stalls.

One detail I would like to clean up to figure out how to ensure that the program remains responsive when the PLC is not detected. In the worse case I can try and put up a error box to the user that allows them to know what the issue is. Both would be fine solutions, I suppose. I'm now in the "cleanup" phase where I'm adding in the necessary exception handling and other important usability items.

Any tips or tricks from the community would be appreciated. I certainly couldn't have gotten this system working without this forum.

Pages: [1]