VisualHMI 动态按钮:带滑动反馈的开关控件与权限連動

freeFree Technical Resource

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

动态按钮是带视觉滑动反馈的开关控件:点击翻转 ON/OFF,滑块从左往右(或反向)滑动,模拟物理开关。デバイス启停、使能/無効这类「开关感」很强的操作用它最直观。

1. 属性介绍

1.1 功能設定

属性説明
读アドレスを書く。绑定的レジスター·アドレス
圆圈滑块圆圈的颜色
未选时关闭ステータス的颜色
选中时打开ステータス的颜色
禁止时权限不足且禁止触控時に表示的颜色

VisualHMI 动态按钮:带滑动反馈的开关控件与权限連動イラスト

2. 応用ケース

画面追加动态按钮,读アドレスを書く。 LW1000;圆圈白(255;255;255)、未选灰(150;150;150)、选中蓝(32;150;240)、禁止红(255;0;0);权限控制:LW1001=0 时禁止触控。

VisualHMI 动态按钮:带滑动反馈的开关控件与权限連動イラスト1

run:click 0→1,滑块从左往右滑动变蓝;PLC 改レジスタ同样有动态效果。权限不足时按钮红色禁止触控,但指令設定的ステータス仍会动态表示。

VisualHMI 动态按钮:带滑动反馈的开关控件与权限連動イラスト2

动态按钮的「禁止色」是权限連動的:不满足权限条件时按钮变红且禁触,但レジスタの値变化带来的滑块动画仍然表示——别把「按钮变红」当成故障,那是权限提示。

整理自 广州大彩科技 VisualHMI 开发ドキュメント(hmi-doc.gz-dc.com)组态控件チュートリアル「动态按钮」,著作権は大彩科技すべての。

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 *.