发布于 2012-10-27 11:59:17
1楼
电耗计算:vbs
dim mytag,mytag1,mytag2
mytag=hmiruntime.tags("电耗变量").read
mytag1=hmiruntime.tags("电耗保存").read
mytag2=mytag-mytag1
hmiruntime.tags("电耗保存").write mytag//保存当前电耗值
hmiruntime.tags("电量").write mytag2//归档到报表的变量
活到老,学到老!为了生活学习吧!