• Not Answered

Two different writes to two different destinations with use of one button?

Hello, 

I was wondering if it was possible to have two separate writes to two different destinations with the use of one button? 

Thank you! 

3 Replies

  • Hi Marianna,

    Yes, it is possible to have two or more variables written to with the use of one (the same) button. The solution may differ depending on the which DeltaV HMI you are using. Are you using DeltaV Live or DeltaV Operate?

    Thanks,

    Camilo Fadul

    Camilo Fadul | DeltaV Solution Marketing Director

    https://www.linkedin.com/in/cfadul

  • In reply to Camilo Fadul:

    Hello Camilo,

    I am using DeltaV Live.

    Thank you,

    Marianna Gomez-Wormington
  • In reply to Marianna Gomez-Wormington:

    Hi Marianna,

    Thank you.

    When you create a button using DeltaV Live, the drop down of options for the button's behavior includes many preconfigured actions that are the most common use cases. Including "Write Value to Destination", which writes to a single destination.

    Since you need to write to multiple destinations with the same click of the button, I would suggest you use Custom Script and launch the script editor.

    From this script editor you can use the WriteAsync function to assign the values to the parameters you are trying to modify:

    The WriteAsync function waits until the parameter can be located and the value written, and it has additional properties to return the success of the operation and error messages if it fails. You can find more details looking up WriteAsync Function in Books Online.

    Best regards,

    Camilo Fadul

    Camilo Fadul | DeltaV Solution Marketing Director

    https://www.linkedin.com/in/cfadul