如果已经有做好的界面,能否直接放在twincat hmi中使用呢?

当然是可以的,用iframe控件即可,对前端开发的人肯定很熟悉了,用法也是一模一样的。

1、把写好的html css等文件,添加到twincat hmi中。注意html里引入的路径用相对路径,不要用绝对路径
twincat hmi 使用外部网页
2、到desktop.view中使用iframe控件,src填html/index.html 这个路径是在twincat hmi中index.html的路径
twincat hmi 使用外部网页
3、点击运行,直接看效果
twincat hmi 使用外部网页
4、再演示一个操作,在src中填入网址https://fanyi.baidu.com/
twincat hmi 使用外部网页
5、就能在twincat hmi中直接显示该网页了
twincat hmi 使用外部网页

相关文章:

  • 2022-01-09
  • 2021-04-29
  • 2022-12-23
  • 2021-12-05
  • 2021-12-20
  • 2021-04-13
  • 2022-12-23
  • 2022-01-22
猜你喜欢
  • 2022-12-23
  • 2021-09-26
  • 2022-02-22
  • 2022-02-20
  • 2021-12-03
  • 2022-12-23
  • 2021-07-04
相关资源
相似解决方案