Host Engineering Forum
General Category => Do-more CPUs and Do-more Designer Software => Topic started by: fluidpowerman on April 28, 2015, 08:48:40 AM
-
I am using a DoMore and a Cmore HMI. I want to have the plc change the cmore screen if for example if an alarm bit is set I want the HMI to go to an alarm screen. Then the operator will reset the alarm bit and return to which ever mode I was in ie. Auto or Manual. I understand how to set up the settings in the Cmore. I am just not sure how to keep everything in synch. I am currently using the Cmore hmi to tell the plc which part of the program to go to by comparing the address (N100) which is tagged as the screen name. Where I am confused is I am told that you have to keep updating the screen number address to keep every thing in synch. Any ideas how I might write my ladder to accomplish this? I would appreciate any input :)
Thank
Bryan
-
The only trick to this is that when you put the screen number to change to in the PLC to Screen tag, then watch the Screen to PLC tag for a match with that screen number. After it matches, then set the PLC to Screen tag to a number that is not a used screen or zero. That way when you put a new valid screen number in next time you want the screen to change C-more can see that the value has changed.
It is really that simple.
-
I prefer to do all of my screen changes on the PLC side. I have attached a screenshot of the HMI program block from a really small project to show how I did/do it.
(https://forum.hosteng.com/proxy.php?request=http%3A%2F%2Fi761.photobucket.com%2Falbums%2Fxx256%2Fplcnut%2FDMDToCmore_zpswasocpfl.png&hash=919a4d2639a8ace45665724feb17fbf530a241c2) (http://s761.photobucket.com/user/plcnut/media/DMDToCmore_zpswasocpfl.png.html)
-
I have attached a screenshot of the HMI program block from a really small project to show how I did/do it.
Modular Programming at its best!
-
Got It! Thank you automation Kings! :D