Which widget should I opt for rotation of a motor in mappview. The data type is enumeration.
I would imagine ImageList widget would handle this nicely.
Image list widget wont work, the widget that I am looking for should have the capability to choose positive or negative direction for the motor and the biding should be to direction parameter.
How do you want to represent the direction in the HMI?
With the ImageList you can have an image mapped to the values of the enumeration. Enumerations are just a DINT value under the hood and you can match that value to an image with the ImageList widget.
If you need something else, you could take a look at the following topics here in the community.
I agree with Tommi but I’m not quite sure about the end goal.
If you want visualize the only direction the ImageList or even just the ToggleButton would work if you only care about positive and negative since
- mcDIR_POSITIVE = 0
- mcDIR_NEGATIVE = 1
So assign different images for Image = DIR_POSITIVE and MouseDownImage = DIR_NEGATIVE.
Like Tommi said ENUM = DINT and even for the ToggleButton that would work.
If you instead want true position movement I would use the RadialSlider