Vai al contenuto

Series image display

This functionality allows to display an image series, based on values read from a PLC array.To use this functionality it’s necessary to specify, in addition to “images”, also properties: “indexes” (with the list of the images associated values) and “values” (a PLC DINT array which will contain the values list used to specify which images to display).Example:images = “img1.gif, img3.gif, img7.gif, img2.gif”indexes = “1, 5, 21, 8”values = PLCVARARRAY (array [0..5] of DINT) containing values: 5, 5, 1, 21, 1, 8The widget will display the images searching the values (read from the PLC) inside the “indexes” property.For the above example, the following images will be displayed:img3.gif (for value 5 of PLC array)img3.gif (for value 5 of PLC array)img1.gif (for value 1 of PLC array)img7.gif (for value 2 of PLC array)img1.gif (for value 1 of PLC array)img2.gif (for value 8 of PLC array)Selecting one of the displayed images, the “selectedValue” variable will contain the PLC array associated value.If, for example, the third image is selected, the following values will take place:selectedPos = 2 (it’s the third image = index 2)selectedValue = 1 (it’s the PLC array value at index 2)