由 HMIx AI 生成器创建
此资源由 ai.hmix.tech 上的 AI 创建。描述您的需求,几分钟内即可免费生成您自己的 HMI 控件。
Custom Web Control
About File Browser
File Browser is a Custom Web Control that gives operators a familiar, Windows Explorer style view of folders and files stored on the HMI, such as batch reports, alarm log exports and recipe archives. A folder tree on the left and a details list on the right present the hierarchy built automatically from slash-separated paths in the entries property. The control is read-only, so operators can browse and select files without changing them.
Key Features
- Automatic hierarchy: Missing parent folders are created from the entries path list, so a flat list of files is enough.
- Breadcrumb and Up navigation: The breadcrumb trail, starting at rootLabel, and the Up button move operators quickly through nested folders.
- Column sorting: Name, date, type and size columns sort on click, with folders always listed first.
- Detail row: The full path of the selected file appears beneath the list, or the noSelectionText message when nothing is chosen.
- Item count chip: Shows the number of items using the singular and plural unit words you define.
Customization
All text is set in the engineering tool: rootLabel, the four column captions, emptyFolderText, noDataText, noSelectionText, upButtonTooltip and the item unit words. The backgroundColor property sets the surface behind the panel. Bind currentFolder and selectedPath to HMI tags to restore the open folder and highlighted file after a screen change.
Automation logic can drive the control with the openFolder, selectFile and clearSelection methods, while the FileSelected and FolderChanged events report operator actions back to WinCC.
Use Cases
Ideal for browsing report archives, log file exports, recipe libraries and data files on operator panels and control room displays.
Compatibility
Works with WinCC Unified (TIA Portal) and WinCC V8. When linking a tag to a property the control must write, such as selectedPath or currentFolder, clear the Read only option for that tag in TIA Portal. Otherwise the control can read the value but cannot write it back.
AI-Generated: This custom web control was generated using AI. Test and validate it thoroughly before deploying in production environments.
⚠️ AI-Generated: This custom web control was automatically generated using AI technology. It may contain errors or unexpected behavior. Users are responsible for testing and validating before using in production environments.