I have a User Interface programmed in Codesys v3.5 Patch17. The last page of the User Interface should stay on the screen until the value of a variable changes. That variable could be an integer or a bool variable, I don't mind. How could I program this in Codesys?
Thanks in advance!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If the check mark is selected in the VisualizationManager for "Use CurrentVisu variable". Then you can just write directly to the VisuElems.CurrentVisu variable to change the visualization.
Example:
IF xGotoPage1 THEN
VisuElems.CurrentVisu := 'Page1';
END_IF
π
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
A lovely visualization element for the page handling is the basic element FRAME of the toolbox.
After you insert all your pages and linked the switch frame variable (int start by zero), you could easily handle the page you want to show with IEC code.
π
1
Last edit: ludecus 2022-03-24
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi guys,
I have a User Interface programmed in Codesys v3.5 Patch17. The last page of the User Interface should stay on the screen until the value of a variable changes. That variable could be an integer or a bool variable, I don't mind. How could I program this in Codesys?
Thanks in advance!
If the check mark is selected in the VisualizationManager for "Use CurrentVisu variable". Then you can just write directly to the VisuElems.CurrentVisu variable to change the visualization.
Example:
IF xGotoPage1 THEN
VisuElems.CurrentVisu := 'Page1';
END_IF
A lovely visualization element for the page handling is the basic element FRAME of the toolbox.
After you insert all your pages and linked the switch frame variable (int start by zero), you could easily handle the page you want to show with IEC code.
Last edit: ludecus 2022-03-24
Thank you both so much, you solved my problem!