![](https://iknow-base.cdn.bcebos.com/lxb/notice.png)
wincc中创建一个文本窗口,要求用变量连接控制,可以显示不同的文字,用VBS脚本做,文字内容在脚本中修改
2个回答
展开全部
在文本窗口 右击 属性 字体 右击 选择 vbs
Function Text_Trigger(Byval Item)
Dim a
Set a=HMIRuntime.Tags("变量")
a.read
If "a= " Then
Item.Text="内容1"
End If
If "a= " Then
Item.Text="内容2"
End If
......
End Function
希望能帮到你
Function Text_Trigger(Byval Item)
Dim a
Set a=HMIRuntime.Tags("变量")
a.read
If "a= " Then
Item.Text="内容1"
End If
If "a= " Then
Item.Text="内容2"
End If
......
End Function
希望能帮到你
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询