twincat3 te2000 hmi howto呼叫循环脚本
快速问题:是否可以在新的TE2000 HMI中运行cylic功能(例如每秒)?如果是这样,我该怎么办?
quick question: is it possible to run a cylic function (eg every second) in the new TE2000 HMI? If so, how can I do so?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我希望回答为时不晚。代码如上所述。
对于事件呼叫,您需要转到Twincat HMI配置窗口,然后从那里转到全局事件,然后单击“ Initialialized Event Call”。在这里,您可以添加Roland提供的JavaScript调用并复制粘贴代码。
希望这回答您的问题。
I hope it's not too late for the answer. The code is as mentioned above..
And for the Event call you need to go to TwinCAT HMI Configuration window and from there go to Global Events and click edit on onInitialized event call. Here you can add JavaScript call and copy paste code that Roland gave.
Hope this answers your question.
您可以使用javascript方法
setInterval
setInterval a>。You can use the JavaScript method
setInterval
.