发布于 2013-11-26 16:04:31
3楼
dim tag
tag=hmiruntime.tags("tag0").read
if tag =1 then
backcolor=rgb(255,0,0)‘第一位为1则变量值为1,颜色为红色
end if
if tag=2 then
backcolor=rgb(0,255,0)’第二位为1则变量值为2,颜色为绿色
end if
if tag=4 then
backcolor=rgb(0,0,255)第三位为1则变量值为4,颜色为蓝色
end if
活到老,学到老!为了生活学习吧!