This function block is used to refer to a slider in an HMI, where the user can manipulate an input value.

The input bShow is used to show or hide the HMI object. It is enabled or disabled via the input bEnable. If a HIGH signal is connected to the input bSet, the value at IPos is checked and the slider is repositioned to the next valid value.

The current position of the slider is provided at the output OPos.

HMI object

The HMI object displays a slider positioned horizontally, running from left to right or positioned vertically, running from top to bottom. The alignment depends on the aspect ratio. If the width is equal or greater than the height, a horizontal slider is provided. Otherwise the slider is vertical. The scale of horizontal sliders is below the stylized lever. At vertical sliders it is situated on the left side.

The position of the slider is changed by dragging the lever or clicking to any point in the HMI object. If a scale is available, the positions can be limited to the tics.


In the parameter dialog a slider HMI object is assigned to the function block.

Using the context menu of the function block the mask designer can be invoked as the parameter dialog. The mask designer is used to create the assignment to the HMI object. Now the preferences of the HMI object can be set with the help of the mask designer.

Besides the minimum and maximum values and the default value for the position also the activation state and graphic attributes are adjusted in the parameter dialog of the object. The background can be transparent or filled with a color. Furthermore the object can be framed with black lines. Or it can be raised or recessed.

The slider can contain a scale. The number of the tics and their color are entered in the parameter dialog. A dividing is valid, if every tic marks a valid WORD value.


Name I/O Type(s) Function
IPos I WORD Presetting value
bShow I BIT Show/hide object
bEnable I BIT Enable/disable
bSet I BIT Set IPos
OPos O WORD Current value

Note: If inputs are not connected, the object appears with the corresponding default parameters that have been entered in the mask designer. Otherwise the input signal from the function block overwrites the according setting from the parameter dialog.


The colored highlight in the function block indicates, whether an HMI object is assigned or not.