圖片:
用宏來做:
macro_command main()
int Pass,DataEn=0
short Page
bool ON=true,Off=false
GetData(Pass, "Local HMI", LW, 2, 1)
if pass==123456 then
page=10
SetData(page, "Local HMI", LW, 20, 1)
else
SetData(ON, "Local HMI", LB, 1, 1)
end if
SetData(Off, "Local HMI", LB, 0, 1)
SetData(DataEn, "Local HMI", LW, 2, 1)
end macro_command