Detailed Explanation of VisualHMI Gallery: Icon Index, Multi-frame Animation, Batch Import, and Frame Editing

freeFree Technical Resource

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

The gallery is the central repository for all control images in VisualHMI. Items such as bit status lights, multi-state indicator lights, animated controls, and buttons, which require icon replacement, are all managed within the gallery. This article clarifies the concept of gallery management and "multi-frame icons" - multi-frame is one of the biggest differences between HMI and ordinary configuration software.

1. What is a gallery?

The images used by all VisualHMI controls are managed in the menu [Project] → [Image Library], and are categorized into two types:

  • Project Gallery: user-defined images that are saved with the project
  • System Gallery: system-provided images of commonly used buttons, switches, progress bars, keyboards, etc.

The gallery supportsfour formats: bmp, svg, png, jpg.The gallery interface is divided into four areas:

The gallery interface is divided into four areas:

  • Area 1: Add, delete icon indexes
  • Area 2: Icon Index List (each index can contain multiple frames)
  • Area 3: Preview each frame of the selected index
  • Area 4: Edit Frames - Insert, Delete, Export, Modify (Replace), Copy, Move

Detailed Explanation of VisualHMI Gallery: Icon Index, Multi-frame Animation, Batch Import, and Frame Editing插图

Currently, a total of 15 controls for adding image libraries are supported. Specific image properties can be viewed in the control property bar.

2. Key Concepts: Icon Index and Frame

An icon indexis a "container for icons", where one index can containmultiple framesof images. Multiple-frame icons are commonly used for:

  • Multi-state indicator lights: displaying different frames for different states (e.g., running = green, stopped = gray, fault = red)
  • Animation controls: Play frames in sequence to create an animation

Detailed Explanation of VisualHMI Gallery: Icon Index, Multi-frame Animation, Batch Import, and Frame Editing插图1

Display format such as "1-frame number (8)": 1 is the index number, and 8 is 8 frames under that index.

3. Create icons

3.1 Add multi-frame icons

Click [+] to generate an icon index of "0-frame number (0)" → Click [Add Frame] → Select image files. If 8 images are added, index 0 will have 8 frames.

Detailed Explanation of VisualHMI Gallery: Icon Index, Multi-frame Animation, Batch Import, and Frame Editing插图2

3.2 Batch addition (single-frame icons)

Click [Batch Add] → Select multiple UI image files → Generate an independent index (1~8) for each file. Suitable for importing a batch of button icons at once.

Detailed Explanation of VisualHMI Gallery: Icon Index, Multi-frame Animation, Batch Import, and Frame Editing插图3

4. Frame editing operations

  • Add frames: Select index → Add frame number → Select image, and the new frame is appended at the end
  • Insert frames: Select a frame → Add frame number, and the new frame is inserted after that frame
  • Modify/Replace Frame: Select a frame → Modify → Select a new file, replace in place
  • Delete Frame: Delete a single frame, or delete all frames
  • Copy Frame: Select a frame → Copy → Paste, generate an identical frame
  • Move Frame: Select a frame → Move Up/Down, adjust the order (affects the display order of animations/multiple states)
  • Export Frame: Select a frame → Export, save as an image file

Detailed Explanation of VisualHMI Gallery: Icon Index, Multi-frame Animation, Batch Import, and Frame Editing插图4

Detailed Explanation of VisualHMI Gallery: Icon Index, Multi-frame Animation, Batch Import, and Frame Editing插图5

Detailed Explanation of VisualHMI Gallery: Icon Index, Multi-frame Animation, Batch Import, and Frame Editing插图6

Detailed Explanation of VisualHMI Gallery: Icon Index, Multi-frame Animation, Batch Import, and Frame Editing插图7

Detailed Explanation of VisualHMI Gallery: Icon Index, Multi-frame Animation, Batch Import, and Frame Editing插图8

Detailed Explanation of VisualHMI Gallery: Icon Index, Multi-frame Animation, Batch Import, and Frame Editing插图9

After deleting all frames, the icon displays as 'x-frame number (0)'.Do not force the deletion of empty frame icons—— The icon library may become disordered and display misaligned. Unused empty indexes should be retained or deleted according to normal procedures.

5. Debugging tips for multi-frame icons

  • The number of states and frames for multi-state indicator lights should match: prepare 3 frames for 3 states, and if the frames are insufficient, the states will display as blank
  • The playback order of animation controls = frame order. To play in reverse, reverse the frame order
  • If the screen does not refresh after replacing frames, recompile it

Organized from Guangzhou Dacai Technology VisualHMI development document (hmi-doc.gz-dc.com) resource introduction "icon library", 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 *.