short win10 = 10, win11 = 11 //window number
bool off=0 //off status
SetData(win11, "Local HMI", LW, 0, 1)
DELAY (200) // Delay 200ms for data to be updated and written to History Data
Display Object then change window.
SetData(win10, "Local HMI", LW, 0, 1)
SetData(off, "Barcode USB", FLAG, 0, 1) //set FLAG to off
end macro_command