求高手指教WINCC问题!!!!!!!!!

已锁定

手机用户20181222441343

  • 帖子

    2
  • 精华

    0
  • 被关注

    0

论坛等级:新手

注册时间:2018-12-22

普通 普通 如何晋级?

求高手指教WINCC问题!!!!!!!!!

366

2

2019-02-13 18:02:59

If SmartTags("PropertiesC12")  Then

   SmartTags("PropertiesC13")= 8

Select Case SmartTags("PropertiesC13")

Case 8

SmartTags("PropertiesC13")=16

Case 16

SmartTags("PropertiesC13")=32

Case 32

SmartTags("PropertiesC13")=8

End Select


End If


如上在面板实例中编写如上VB脚本,希望通过C12=1时,C13=8.16.32.8...实现三个画面切换循环,请高手指点下,脚本不会写,求高手指教



已解决:


If SmartTags("Properties\B01") Then

      SmartTags("Properties\C16")= 4

Elseif SmartTags("Properties\D01") Or SmartTags("Properties\T01")Or SmartTags("Properties\T02")Or SmartTags("Properties\T03")Or SmartTags("Properties\T04")Or SmartTags("Properties\T05")Or SmartTags("Properties\T06")Or SmartTags("Properties\T07")Then       

      SmartTags("Properties\C16")= 2

Elseif SmartTags("Properties\C12")And SmartTags("Properties\C13")=0  Then

Select Case SmartTags("Properties\C16")

Case 0    

SmartTags("Properties\C16")= 8

Case 8

SmartTags("Properties\C16")= 16

Case 16

SmartTags("Properties\C16")= 32

Case 32

SmartTags("Properties\C16")= 8

 

Case 2    

SmartTags("Properties\C16")= 8

 

Case 4    

SmartTags("Properties\C16")= 8

 

Case 64    

SmartTags("Properties\C16")= 8

 

Case 128    

SmartTags("Properties\C16")= 8

 

Case 256   

SmartTags("Properties\C16")= 8

End Select

Elseif SmartTags("Properties\C13") And SmartTags("Properties\C12")=0 Then

Select Case SmartTags("Properties\C16")

Case 0    

SmartTags("Properties\C16")= 64

Case 64

SmartTags("Properties\C16")= 128

Case 128

SmartTags("Properties\C16")= 256

Case 256

SmartTags("Properties\C16")= 64

 

Case 2    

 

SmartTags("Properties\C16")= 64

 

Case 4    

 SmartTags("Properties\C16")= 64

Case 8    

 SmartTags("Properties\C16")= 64

 

Case 16   

 SmartTags("Properties\C16")= 64

 

Case 32    

 SmartTags("Properties\C16")= 64

 

End Select

Else

SmartTags("Properties\C16")= 0

 End If


求高手指教WINCC问题!!!!!!!!! 已锁定
编辑推荐: 关闭

请填写推广理由:

本版热门话题

SIMATIC WinCC / Panel

共有32981条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

快扫描右侧二维码晒一晒吧!

再发帖或跟帖交流2条,就能晋升VIP啦!开启更多专属权限!

  • 分享

  • 只看
    楼主

top
X 图片
您收到0封站内信:
×
×
信息提示
很抱歉!您所访问的页面不存在,或网址发生了变化,请稍后再试。