回复:Wincc趋势曲线再续

已锁定

龟仙人

西门子1847工业学习平台

  • 帖子

    928
  • 精华

    15
  • 被关注

    161

论坛等级:奇侠

注册时间:2006-12-15

普通 普通 如何晋级?

发布于 2022-03-28 12:49:29

4楼

查询按钮,根据实现范围进行查询:


Sub OnLButtonDown(Byval Item, Byval Flags, Byval x, Byval y)                         

Dim Trend1

Set Trend1 = ScreenItems("Trend1")

Dim Begin_Date

Set Begin_Date = ScreenItems("Begin_Date")

Dim Begin_Time

Set Begin_Time = ScreenItems("Begin_Time")

Dim End_Date

Set End_Date = ScreenItems("End_Date")

Dim End_Time

Set End_Time = ScreenItems("End_Time")

Dim Begin_DT

Dim End_DT

Trend1.Online = 0

Sleep 300000

Begin_DT= FormatDateTime(Begin_Date.Value,2)&" "&FormatDateTime(Begin_Time.Value,3)

End_DT = FormatDateTime(End_Date.Value,2)&" "&FormatDateTime(End_Time.Value,3)

Trend1.TimeAxisBeginTime = Begin_DT

Trend1.TimeAxisEndTime = End_DT


End Sub


评论
编辑推荐: 关闭

请填写推广理由:

本版热门话题

SIMATIC WinCC / Panel

共有32564条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

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

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

  • 分享

  • 只看
    楼主

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