VisualHMI slider: continuous value adjustment, fixed/variable range, and slider appearance

freeFree Technical Resource

This content is free to read, suitable for basic learning and search traffic.

The slider is acontinuous value adjustmentcontrol: drag the slider or point on the track to adjust parameters. Volume, screen brightness, target temperature/speed/pressure settings all rely on it.

1. Attribute introduction

1.1 Function settings

AttributeDescription
Read-write addressBound variable address
Data typeUINT16/INT16/UINT32/INT32/UINT64/INT64/FLOAT/DOUBLE
Slider adjustmentDrag the progress bar to adjust the value; when released, the notification can be checked
and read the samewhether the written address is the same as the read
scale numbertotal readable quantity of the control
range limitNone / Fixed range (fixed upper and lower limits) / Variable range (upper and lower limits dynamically adjusted)

VisualHMI slider: continuous value adjustment, fixed/variable range, and slider appearance插图

1.2 Appearance settings

  • Direction: From left to right / From right to left / From top to bottom / From bottom to top
  • Slider gallery: Slider image;Width/Height: Slider Size

VisualHMI slider: continuous value adjustment, fixed/variable range, and slider appearance插图1

2. Application Cases

2.1 Fixed Range

Read-WriteLW1001(UINT16), Slider Adjustment + Notification on Release, Fixed Range 0~100, Direction from Left to Right. Equipped with a Numeric Control to Display the Slider Value. The value changes in real-time when dragged and is limited to 0~100.

VisualHMI slider: continuous value adjustment, fixed/variable range, and slider appearance插图2

VisualHMI slider: continuous value adjustment, fixed/variable range, and slider appearance插图3

2.2 Variable Range

Read-WriteLW1002(UINT16), Scale Count 100, Variable Range: Lower LimitLW1003, Upper LimitLW1004. Equipped with 3 Numeric Controls to Display the Slider Value, Lower Limit, and Upper Limit Respectively. When running, change LW1003=100 and LW1004=1000, and the slider range dynamically changes.

VisualHMI slider: continuous value adjustment, fixed/variable range, and slider appearance插图4

VisualHMI slider: continuous value adjustment, fixed/variable range, and slider appearance插图5

Essence of Variable Range:The upper and lower limits are stored in registers, and can be changed at any time by PLC or LUA. For example, the temperature setting range changes with seasons (10~30 in winter, 16~28 in summer), and there is no need to change the screen; simply changing the upper limit address value is sufficient.

This content is compiled from the "Slider" tutorial in the VisualHMI development documentation of Guangzhou Dacai Technology (hmi-doc.gz-dc.com). The copyright belongs to Dacai Technology.

Put this resource to use in a real project?

Go to the Tool Center for message parsing, CRC verification and device debugging, or submit your requirements for selection and integration advice.

Engineer Membership

Turn this article into actionable debugging resources

After activation, you can use advanced message parsing, resource pack downloads, code examples, engineering cases and priority technical support, suitable for real project delivery.

Unlimited Advanced Tools
Resource & Code Packs
Complete Engineering Case Library
Priority Technical Support

Leave a Reply

Your email address will not be published. Required fields are marked *.