|
类型 |
HMI指令 |
|
描述 |
写入群组数据 |
|
语法 |
HMI_GDataWrite(winid, controlid, channel, y [,pointNum]) winid:HMI文件里面窗口编号 controlid:元件编号 channel:指定通道 y:写入坐标(y)/存储连续坐标(y)的table下标 pointNum:写入点数,缺省0,当pointNum>0时,y参数作为存储连续Y位置的table下标 |
|
适用控制器 |
支持ZHMI |
|
例子 |
'数据群组通道0写入一点 HMI_GDataWrite(10, 1, 0, 66)
'数据群组通道0批量写入5个点 table(0) = 10 table(1) = 50 table(2) = 30 table(3) = 40 table(4) = 20 HMI_GDataWrite(10, 1, 0, 0, 5) |