macro_command main()
bool status,OFF=false,ON=true
short page
GetData(status, "Local HMI", LB, 9060, 1)
if status==true then
SetData(ON, "Local HMI", LB, 1, 1)
else
if status==false then
page=31
SetData(page, "DELTA DVP", D, 0, 1)
end if
end if
SetData(OFF, "Local HMI", LB, 0, 1)
end macro_command