威纶通官方论坛

离线模拟使用【动态绘图】元件绘制30w个点渲染问题

[复制链接]
发表于 2024-1-26 11:53:38 | 显示全部楼层 |阅读模式
请大佬们指教,如果不加延时渲染会大量绘制不出来

//宏指令
macro_command main()
unsigned int row = 0, column = 0, addr = 0

short point[10]
short drawType=4, xy[2]={0, 0},color=6

SetDataEx(color, "Local HMI", EM0, 5003, 1)
for column = 1 to 450
        for row = 1 to 700
                xy[0] = row
                xy[1] = column
                SetDataEx(xy[0], "Local HMI", EM0, 5005, 2)
                SetDataEx(drawType, "Local HMI", EM0, 5000, 1)
                DELAY(50)
        next
next

end macro_command

示例代码

示例代码

不加延时

不加延时

增加50ms延时也会丢失

增加50ms延时也会丢失
发表于 2024-2-21 19:57:48 | 显示全部楼层
使用JS元件绘制
您需要登录后才可以发帖 登录 | 注册

本版积分规则

回复帖子

Archiver|小黑屋|威纶通官网 ( 粤ICP备06054553号 )

GMT+8, 2024-5-21 10:27

Powered by Discuz! X3.4

© 2001-2023 Comsenz Inc.

快速回复 返回顶部 返回列表