VisualHMI multi-state indicator lights: numerical mapping, state transition table, and cyclic switching

freeFree Technical Resource

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

The bit status indicator can only display 0/1, while multi-status indicators are different - they map to multiple predefined states according to the specific valueregister, and each state can be assigned an independent icon, color, and text. Scenarios such as pattern recognition, process stages, and gear display are its strong suits.of the

1. Core capability

  • multi-status mapping: Preset multiple status items, each associated with a specific value or value range. For example, 0=stop (gray), 1=automatic operation (green), 2=manual debugging (yellow), 3=fault lockout (red)
  • interactive: On registers that allow writing, clicking the control to cycle through states (incrementally 0→1→2→0…)
  • non-continuous value mapping: Supports a state transition table, mapping discrete codes such as 0, 5, 10, 99 to states one-to-one, without requiring continuous increment

VisualHMI multi-state indicator lights: numerical mapping, state transition table, and cyclic switching插图

In industry, status words are often non-continuous codes (compatibility/reserved bits/historical reasons), such as 0=stop, 5=automatic operation, 10=manual mode, 99=serious fault - the state transition table is for this purpose.

2. Attribute introduction

2.1 Function Settings

AttributesDescription
Read AddressRegister Address for Binding
Toggle SwitchAllow Touch Write Operation after Checking
Write AddressAfter Checking the Toggle Switch, you can set whether the write address is the same as the read address
Operation ModeIncrement: value +1 each time; Decrement: value -1 each time
Cyclic AdjustmentIf the current state is 7 (the last state) and the state number is 8, click back to 1
Execution timingTiming for setting registers
Data typeUINT16, INT16, UINT32, INT32
Play soundPlay a specified sound when clicked

VisualHMI multi-state indicator lights: numerical mapping, state transition table, and cyclic switching插图1

2.2 State setting

  • State number: 1~256 states
  • Transition state: Fill in the value mapping according to the state number, such as '0;200;300;400;8;88;888;8888' - register value 0 displays frame 0, 200 displays frame 1, and so on
  • Use gallery: State 0 gallery/State 1 gallery, cropping;Use text: Different texts for each state, configurable font/size/line spacing/label;Select state: Set the text content, color, alignment, blinking, and marquee for each state individually

VisualHMI multi-state indicator lights: numerical mapping, state transition table, and cyclic switching插图2

⚠️ When the register value is not within the range of state numbers, the multi-state iconwill not be displayed. Example: If the state number is 8 and only 0~7 are recognized, and the register value is set to 8, the control will be blank. The same applies to the conversion state table - if a value is not present in the table, the control will not display. To troubleshoot "lights not working", check this first.

3. Application cases

3.1 Incremental mode (cyclic adjustment)

Smart home scenario: 2 multi-state indicator lights (gallery version + text version) + 1 numeric control.LW1000, INT16, with 8 statuses, loop adjustment checked, text statuses S0-Home, S1-Away, S2-Dining...S7-Auto. Click to switch, status and value change in real time.

VisualHMI multi-state indicator lights: numerical mapping, state transition table, and cyclic switching插图3

VisualHMI multi-state indicator lights: numerical mapping, state transition table, and cyclic switching插图4

3.2 Decrease + Status Transition Table

ReadLW1001, with 8 statuses, transition statuses "0;200;300;400;8;88;888" (non-continuous coding), operation mode decreasing. Manually change the value with the numeric control, observe the status follow.

VisualHMI multi-state indicator lights: numerical mapping, state transition table, and cyclic switching插图5

VisualHMI multi-state indicator lights: numerical mapping, state transition table, and cyclic switching插图6

Compiled from Guangzhou Dacai Technology VisualHMI development document (hmi-doc.gz-dc.com) configuration control tutorial "Multi-Status Indicator", copyright owned by 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 *.