WinCC OA tutorial. Part 6. Navigation: Opening New Windows

Until now, our entire application project consisted, in fact, of one screen form - Flaps (the Flap panel can no longer be viewed, it is irrelevant, and Flap_ref is a template). Real "combat" projects contain, as is correct, (significantly) more than one mnemonic diagram, displaying the whole picture, separate technological areas, settings, trends, alarms, etc. Let us see how it is possible to navigate between screens in WinCC OA.





Let's create another panel in the project and name it Trends (for the future), make it the same size as the Flaps panel, and put something readable on it. For example - the inscription "These are trends", to be sure for sure.





Trends panel
Trends panel

To call the Trends panel from the Flaps panel, place the last button on the last button and name it Panels, for which we will change the object name (Name) and the label (Button label). Of course, the name and the label are different things, the name identifies the object in the project, and the label contains the text visible to the operator.





Using the wizard, set the button to open a new panel. Select the button, look for the Clicked event and select the Property Wizard next to the Clicked event. In the wizard, select Panel Functions and click Next.





Select Open panel (in new module) and click Next again.





We thoughtfully look at the next wizard window





Consider the wizard parameters:





Panel file β€” , . ( , xml, all files) Trends.pnl





Panel name β€” . ! $- , . ( ) . . , , «» ( ). , β€” . Trends. ( - ), .





Next





. Panel always on top, Finish.





Flaps PANELS, Trends.





, - (- modal).





, PANELS. . , . , .





Opened valve 1
1

, , β€” .





β€” Root panel in own module





.













: Flaps ( ), Trends. , _QuickTest_





β€”





( ), , , . ( Module name), β€” . . ui . . , . Β«ModuleΒ»





Finish .





In this case, we get two completely independent windows. Pay attention to the names of the module and panels of each window - everything matches. When you close the original window (_ QuickTest_ ), the new window remains.








All Articles