Skip to content

Indirect addressing, reference tags, reference variables for eHMI programming

edited July 2020 in PLCnext Engineer

Is there a way in PLC Next HMI Webserver to create a single popup that can manipulate the contents of different structure elements based on how the popup is opened.  For example, if I have 35 valves and want a single popup or dialogue box to be able to control those 35 valves. The example HMI screen has 35 valve specific buttons that trigger this dialogue box to pop up and control that specific valve.

Other platforms use concepts called “reference variables”, “reference tags” or “indirect addressing”.

I don't want to have to make 35 individual boxes..

Thanks

Comments

  • Hello,

    I am curious about this also.  I have used parameter files in other software, but you need a button to tell the pop-up which value to show.  How do you plan to tell the dialog box which valve to manipulate?

    Thanks

  • Here is the answer from our specialist:

    ======================================

    You will need to create a new screen to be your dialog box.  Resize the screen to the size you desire for the dialog box.  All data to be placed on the dialog screen will be passed by parameters.  Use the parameters tab of the screen to create the parameters.  Here we create a screen that is 200 x 200 with a text input box with a parameter called DataTag of the type Variable-ANY_NUM.

    From another screen, you can use a button to use the Dynamic, Action on Click() with the action Open Dialog.  The action on click() will call the previous designed dialog box and will allow you to attach data to the DataTag parameter.  In this example we pass one element of an array to the dialog.  Each button can call the same dialog box and change a different variable.

    (ref: 00132163)

     

Sign In or Register to comment.