The Write Data Variable Action let’s you manipulate the value of a variable. Depending on which of the HMI Data Variable Types you have chosen, you’ll get different options to manipulate this variable.
If you would like to write to a variable of ‣ the action settings will look like this ☝️.
While working with the HMI Preview Panel (Content View) you are able to between Data Connection Modes (Preview Panel).
When writing data variables, you can choose the type of data you would like to write to this variable.
Write a Static Value
Writing static values means that you input a specific value e.g. the number 0
. This value will never change during the runtime of your HMI.
Write Dynamic Value
Writing dynamic values means that you use the current value of another variable. This means the value that gets written can change during the runtime of your HMI.
👆 In the above case you will write to the Water
variable using the current value of the Steam
variable.
When using variables of Boolean (Data Variable Type) , you may want to simply toggle the current value instead of setting it to a fixed value such as true
or false
. In this case, you can use the third Toggle
option to negate the current value.