VisualHMI address label: naming registers, batch import and export, bit label writing

freeFree Technical Resource

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

Address Label = Give a name to the register address. Write "Temporary_Temperature" for LW1000, and "Current01" for 4x0021 - this makes it easier to recognize the addresses referenced throughout the screen. Supports batch import and export, which is essential for large projects.

1. Two types of address labels

Open the menu by clicking on "Project" and then selecting "Address Label":

  • System Parameter Label: LW addresses less than 0x1000,cannot be modified, imported, or exported(system reserved area)
  • User-defined Label: Self-defined, can be added, deleted, modified, imported, or exported

VisualHMI address label: naming registers, batch import and export, bit label writing插图

Labels do not distinguish data types(UINT16/INT16/UINT32/String...), labels only indicate thestarting address of the variableThe specific type is determined by the control property.

Example: Numerical control associated with "Current01 (4x0021)": Data type: INT16 → Address range: 4x0021; INT32 → 4x0021~4x0022.

2. Add tags

2.1 LW address tag (HMI local)

Address location: HMI local; Data type: LW; Hex address: 1000 (Memory variable must be >= 1000 hexadecimal). The tag name is defaulted to Addx, which can be changed to a meaningful name such as "Temporary_Temperature".

VisualHMI address label: naming registers, batch import and export, bit label writing插图1

2.2 Modbus hold register specific bit

Use .Reference to a specific bit of a non-bit register: Label bit1 of 4x1000 → Address filled with1000.1.

VisualHMI address label: naming registers, batch import and export, bit label writing插图2

2.3 Modbus hold register consecutive bits

Use .~Reference to consecutive bits: Label bit0~bit3 of 4x1000 → Address filled with1000.0~3.

VisualHMI address label: naming registers, batch import and export, bit label writing插图3

3. Delete / Export / Import

  • DeleteSelect and delete rows, or click [Clear] to clear all
  • Export: Export as xml or csv. Modify
  • Import csv: Column 1 is label name, column 2 is variable address, column 3 is description (open and edit in WPS).
  • Import xml: NAMEas name,ADDRas address,TIPas description.

VisualHMI address label: naming registers, batch import and export, bit label writing插图4

VisualHMI address label: naming registers, batch import and export, bit label writing插图5

VisualHMI address label: naming registers, batch import and export, bit label writing插图6

4. Use address label in the control.

Control property panel → Address selection → Select [Label] → User label → Choose the corresponding address label and click OK. From then on, the control will display the label name, making it easier to recognize and maintain.

VisualHMI address label: naming registers, batch import and export, bit label writing插图7

As the project grows larger, it is strongly recommended to label all registers used on the PLC side: firstly, it will no longer be a mess of bare addresses in the interface; secondly, after batch exporting CSV, it can be handed over to electrical engineers for point verification; thirdly, when changing register addresses, only the label needs to be changed.

Compiled from the VisualHMI development documentation of Guangzhou Dacai Technology (hmi-doc.gz-dc.com) resource introduction "Address Label", 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 *.