-

'Image List' / 'Image List When Down' Dynamics

Note
The 'Image List' and 'Image List When Down' dynamics can only be bound to a button object.

Further Info
For details on managing and editing image lists and also how to make an image list dynamic using the 'Image list' dynamic, refer to the topic "Working with Image Lists".

'Image list' dynamic

The 'Image list' dynamic allows to make image list entries dynamic. Dynamic means, the image for an HMI object at runtime can be selected by changing the HMI tag or variable (integer or floating point variable) connected to the 'Image list' dynamic. For example, you can use an 'Image list' dynamic for an HMI button object to display an image in the button instead of the numeric variable value if the variable value has a specific value or is within a specific range.

To configure an 'Image list' dynamic for an object, proceed as follows:

  1. Connect a numeric variable (integer or floating point) to the dynamic. To do so, click the input field right of the 'Variable' field and select a variable. The value of this variable determines which image the HMI object displays when executing the HMI application. Depending on the value of the configured variable, the image from the associated image list is displayed at runtime.

    When binding a variable or HMI tag of type REAL/LREAL to the 'Image list' dynamic, the 'Integer converter strategy' field is additionally shown. Here you can set whether the variable value is truncated or rounded before it is used as source value.

  2. Connect the image list to the dynamic. To do so, click the input field right of the 'Image list' field and select the image list from which an image is displayed (the field provides all image lists for selection you have created in you project).

Example:

With the following configuration, the button displays the image "Image2", as defined in the connected image list 'Image List', at runtime if the value of the integer variable 'temperature' lies in the range between 0 and 5. If the variable value is between 6 and 15, the image "Image3" is displayed and if the variable value is between 16 and 25, the image "Image4" is shown. If the variable value is not within the range between 0 and 25, the default image "Image1" is shown.

'Image list when down' dynamic

The button with a configured 'Image list when down' dynamic displays an image from the connected image list depending on the value of the variable assigned to the linked HMI tag or the evaluation result of the defined expression when the user presses the button and keeps it pressed.

Example:

With the following configuration, the button shows the image "Image2", as defined in the connected image list 'Image List', if the value of the integer variable 'var1' lies in the range between 0 and 5 and the user presses the button and keeps it pressed. If the variable value is between 6 and 15, the image "Image3" is displayed and if the variable value is between 16 and 25, the image "Image4" is shown. If the variable value is not within the range between 0 and 25, the default image "Image1" is shown.