Professional Documents
Culture Documents
Module 14
Generic HMI
Contents
1 Introduction 4
1.1 PcVue version 4
1.2 In this module you will learn 4
1.3 Files used in this module 4
1.4 Third party software used in this module 4
5 Generic mimic 14
5.1 The branch concept 14
5.2 Open a mimic with branch using the Link/Open animation 19
5.3 Displaying the mimic branch 21
5.4 Forwarding the mimic branch 22
5.5 Popup mimics 24
6 Symbols 26
6.1 Create a Symbol 27
6.2 Insert a Symbol in a mimic 27
6.3 Modify a Symbol 29
6.4 Delete a Symbol 30
6.5 Animated Symbol 30
6.6 Generic Symbol 32
6.7 Add a symbol from the PcVue Library 35
Figure 1
Figure 2
Figure 3
Figure 4
Note that you manage a mimic template as you do a normal mimic. The only
difference is the location where it is saved.
You can insert any graphical object (animated or not), Viewer or Form Control in a
Template the same as in any normal mimic.
If you switch a template to run mode any animations are
“played” normally. But if you have configured an action
animation (for example Send / Bit) and try to run it directly from
the template then it will not work.
Figure 5
2. Graphics
Figure 6
Figure 7
Figure 8
Figure 9
[A]: Template name. Click the None button if you want the mimic not to be linked
with any template.
[B]: Properties inherited from template. Using these options you can select some
properties independently from the template. For example if you want all properties to
be like those of the template except the size, you must deselect the Size option.
Exercise 2.
Link the following mimics with the template “MyTemplate”:
Homepage, Basic objects, Animations, Floor 1 and Alarms.
You can select all the properties inherited from the template.
Figure 10
The two text objects have a normal Color / Bit animation like this:
Figure 11
Figure 12
Figure 13
This is normal because the variable FAULT doesn’t exist in the Variables Tree. But we
ignore this error, confirm, save and close the mimic.
Now we open it again using the command File / Open but in the dialog we select the
Branch BUILDING.FLOOR_01.METER in the Branch combo box.
Figure 14
Figure 15
You can see that we have the same mimic (Test_Branch) opened twice. Actually we
say that we have two windows opened with different branches.
You can see the branch used for a mimic in the Window menu.
Figure 16
You can display the current mimic branch on the Title bar by
using the special substitution string #B in the mimic Title of the
window’s properties.
Now if we click on the SET buttons we can see that the first window’s animation is
working for the variable BUILDING.FLOOR_01.METER.FAULT and the second window’s
animation is working for the variable BUILDING.FLOOR_02.METER.FAULT.
The final result is: we have created only one mimic and, by opening it with different
branches, it is working for all meters!
How does this work?
Actually when the HMI opens a mimic it tries to connect each animation to the
corresponding variables according the following algorithm:
If the CONNECT operation fails then the following error message appears:
Figure 17
Figure 18
3. Add a text to display the value of the kWh meter to the Floor
mimic.
a. Open the Floor mimic using the branch
BUILDING.FLOOR_01. Add a text and animate it to display
the register representing the kWh meter. Use the branch
and variable METER.KWH.
b. Save the mimic.
c. Test the mimic by opening it using each of the newly
created floor buttons.
Figure 19
Exercise 5.
Add a text object to the Floor mimic to display its branch.
Figure 20
Figure 21
Step 6. Enter the mimic (and its branch) into which the mimic will be
included. 99 times out of 100 this will be the mimic in which the animation
resides and you can use the “*” character meaning “me”.
Step 7. Save the mimic.
Exercise 7.
Enable pop-up behavior for the POP_KWH mimic.
a. Open the properties for the mimic POP_KWH and select the
Included Mimic tab.
b. Enable Pop-up behavior and select the Opening position.
c. Save and close the mimic.
d. Open the FLOOR mimic and display the properties of the
Link-Open animation that opens POP_KWH.
e. Configure the Included In properties.
f. Save the mimic.
g. Switch the mimic to Run mode and test the behavior!
Figure 23
The Symbol is a graphical object model which is saved in the Symbols library. One
saved in a library you can insert one or more instances of the symbol in one or more
mimics. If you modify the original symbol, all instances of it are modified in real
time.
Figure 24
Exercise 9.
Modify the “Light” Symbol:
- Change its background color.
- Add a button.
Figure 25
The variables used for the animation of the Symbol are displayed.
You can also use the Graphic Explorer (via the Display menu) to
modify the symbol. Advantages:
- You don’t need to ungroup it.
- You can also do it in Run-time mode!
Figure 26
Figure 27
Figure 28
Figure 29
Step 4. Double-click the variable name with which the symbol was created
and select the actual variable to be used by this particular instance. The original
variable is replaced (substituted) by the new one.
Figure 30
Figure 31
Step 3. Save and generate. Make sure that the Generate Graphical Elements
option is selected in the Generation Options dialog.
Figure 33
Figure 34
Step 2. Select the actual symbol that is to instantiated from the symbol
library. The name of the symbol is entered in the Symbol property in the lower
right pane. Clicking the Ellipsis button adjacent to the Symbol property displays
the Library Browser dialog from where the symbol can be selected. The other
properties are optional and we will leave these set at the default.
Figure 35
Step 3. Save and generate. Make sure that the Generate Graphical Elements
option is selected in the Generation Options dialog.
Figure 36
Exercise 14.
Add symbols to the AC and LIGHT templates in the Application
Architect: