Workspace faceplate button text from genie metadata.

Hi All I am looking for a way to display different text strings on workspace faceplate buttons for diverters ie up/down left/right on/off etc. The faceplate is generic and called from generic genie. I can get the different strings from the equipment references ie ?__EquipmentName?.etc, ?EquipmentRef?.etc but they show as a long function string on faceplate overlapping each other. I would like to use metadata associations but can't work out best way to pass them to workspace faceplate pane. In the past with popups i was able to use assmetadatapopup with genie metadata ie ON_STRING, OFF_STRING and in popup reference ?ON_STRING?, ?OFF_STRING? on button text. Any ideas?

  • Hi Tony,

    I'm not sure I fully grasped what you meant by the "overlapping each other" bit.

    But, hopefully I've interpreted what you were asking for and this helps you.

    Open up the FP_AI_Polar_HD1080 faceplate in the ExampleSA project.

    You will note in the bottom right of that page it has "Runtime Parameter Example" with a text element. When you open the properties up on that text object you will note that it is bound to ?MyLabel?. 
    What is going to happen at runtime is that when ever an equipment is selected that has this faceplate content associated with it, this faceplate will display. The context (the equipment selected) is passed to the faceplate, but also the workspace system also sets up various supergenie params for you based up your Equipment Runtime Parameters for that equipment.

    So open up the ExampleSA project. Go to System Model > Equipment > Runtime Parameters.

    You will see 4 parameters defined. Three of those are called "MyLabel" and are associated with : Company.TopMilk.Production.Bottling.Totals.Peak, Company.TopMilk.Production.Bottling.Totals.OffPeak and Company.TopMilk.Production.Bottling.Totals.Shoulder equipment objects. Each param then defines a value for MyLabel.

    If you run up the ExampleSA project:

    1. go to the "SA Library" tab in the Nav Menu (bottom left)
    2. select "Other" button
    3. then click on the Polar star
    4. You will then see in the faceplate zone that the "Runtime Parameter Example" shows "Peak". This particular polar star composite genie has been associated with Company.TopMilk.Production.Bottling.Totals.Peak equipment.

    This all works because the Workspace automatically associated your Equipment Runtime Parameters as super genie associations for you.

    So for your question, you should be able to define "OnString" and "OffString" parameters for each of the equipment. Then on your faceplates refer to ?OnString? ?OffString? on your buttons. At runtime when your equipment is selected, it will then pick up the right text.

  • Hi Bradley

    Thanks for showing me the steps for using the runtime parameters that was a good example.

    The overlapping part was using direct equipment references instead of associations. Screenshot attached

    Correct me if i am wrong but we are using the Equipment Editor to populate device variables etc and i don't think i can add Runtime parameters from there? I would have to create that list some other way?

    Definitely an option which would create the associations but was hoping to be able to do it direct on graphics whenever the genie was used.

  • You can change the object type to a Numeric to prevent displaying the long function name at design-time.
    It will still display the correct text at run-time.

    For example:

  • Wow thanks Steve that makes complete sense! Haha I can knock off now I've learn something new for the day. Cheers

  • You are right Tony, unfortunately you have to manually add those in. The Eq Editor would need to be extended to have a separate section for them. Like what we just did for the Configuration Parameters.