|
类型 |
HMI指令 |
|
描述 |
输出打印消息到消息框元件。 |
|
语法 |
HMI_MsgOut(strtype, strmsg, winid, controlid [, ifInfo]) strtype:输出类型 "TRACE":跟踪输出 "WARN":警告输出 "ERROR":错误输出 "PRINT":打印输出 "CLEAR":清空输出 strmsg:输出消息(字符串) winid:HMI文件里面窗口编号 controlid:元件编号 ifInfo:是否自动输出文件行信息,缺省0(不输出)
注:该指令输出的消息会自动换行。 |
|
适用控制器 |
支持ZHMI |
|
例子 |
'消息框元件ID=3,所在窗口10 HMI_MsgOut(“WARN”, “this is a warning.”, 10, 3) ð warn: this is a warning.
HMI_MsgOut(“ERROR”, “this is a error.” , 10, 3, 1) ð error of file:xx line:xx task:xx: this is a error. ð error of online command: this is a error.
HMI_MsgOut(“PRINT”, “this is a print.” , 10, 3) ð this is a print.
|