我在 twincat 的 HMI HTMLhost 中使用 了状态指示器Web 组件。
我创建了 HTMLhost 并将这些行添加到脚本中:
<style>
@import 'status-indicator';
</style>
<div class="indicator">
<status-indicator positive></status-indicator>
</div>
<style>
.indicator {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
</style>
它看起来像这样: HTMLhost 中的状态指示器
我还在参数中创建了一个 BOOL 值,以将 PLC 的状态从激活更改为停用,如下所示:
问题是我不知道如何链接<status-indicator positive></status-indicator>
到那个 BOOL 参数,所以它可以用来从 PLC 改变它的状态?
感谢您的帮助,在此先感谢。