macro_command main()
char UserID[12]
bool ON = true,OFF=false
int UserID_len,lw300
short StarID = 10
StringGet(UserID[0], "Local HMI", LW, 10754, 12)
GetData(lw300, "Local HMI", LW, 300, 1)
UserID_len = StringLength(UserID[0])
SetData(UserID_len, "Local HMI", LW, 500, 1)
if UserID_len == 0 and lw300 <> 10 then
SetData(StarID, "Local HMI", LW, 200, 1)
else
SetData(lw300, "Local HMI", LW, 200, 1)
end if
end macro_command
这条读取LW300数据做什么啊,没有看到上面作用啊
GetData(lw300, "Local HMI", LW, 300, 1)