macro_command main()
short a,b
int mima1,mima2
bool ON=1,OFF=0
GetData(a,"Local HMI",LW,9018,1)//分
GetData(b,"Local HMI",LW,9019,1)//时
mima1=b*100+a
mima2=mima1+1
SetData(mima1,"Local HMI",LW,9500,1)//导出用户1密码
SetData(mima2,"Local HMI",LW,9502,1)//导出用户1密码
SetData(ON,"Local HMI",LB,9061,1)//更新密码
DELAY(500)
SetData(OFF,"Local HMI",LB,9061,1)//复位信号
end macro_command