Compact HMI faceplate icons area
I want to create one faceplate with COMPACT HMI 5.1,
I want to add one icon that change according one process variable per example manual auto indicator.
we try to add the expression but it does not work,
how is the format to add one expression??
the help of faceplate shows :
$’./FormalInstanceName:aspectName:propertyName’
but this format, but it does not work.
Voted best answer
That's because your faceplate is located in "functional structure" while the reference variable is in the "control structure" (unfortunately you didn't attach screenshot of a control structure so I can't say where it is). When you specified "." in "$'expression'" the dot here assuming that object is in the same structure. But object reference that's intended to change icon is not there I guess.
Then you need specify full path to the object reference.
To get full path to the object you need right-click the object, select "details" and go to tab "Names & Paths".
For instance: iif($'[Control Structure]Root/PLC_Network/Controllers/Your PLC/InstanceOfYourObject/YourSignal:Value' < 100500, 0, 1)
Here 0 - icon under index 0 (will be shown if value < 100500),
1 - icon under index 1 (will be shown in value ≥ 100500).
P.S.: I advise you create faceplates for your object in the object type structure. Then you can use shorter expression: iif($'./YourSignal:Value' < 100500, 0,1) and all new object instances will have the same behavior and can be easily renamed or edited. If you use full path after renaming object you must update all expressions manually to get faceplate icons work.
Good luck
Add new comment