macro_command main()
bool key=true,key2=false
int k,l,password,m,n,z,w
GetData(password, "Local HMI", LW, 90, 1) //密码输入
GetData(z, "Local HMI", RW, 100, 1) // time-1 code
if password==z then //
SetData(key, "Local HMI", lb, 2, 1)
SetData(key2, "Local HMI", lb, 0, 1) // close window
SetData(key2, "Local HMI", RW_Bit, 30, 1) // end this time
// SetData(key2, "Siemens S7-200 PPI", M, 0.0, 1)
end if
end macro_command
怎么我这条指令没有执行呢 SetData(key, "Local HMI", lb, 2, 1) |