I read the tutorial and tried the script "PitotHeat" with a led connected to the DIO LED1 and it works fine.
I am trying to light the LED1 on the DIO when the FAULT LIGHT is lited on the Fire Panel. the offset is 9410 bit 6 (per IFLYTOFSUIPC).
I tried the following script:
function FaultLight(offset, value) -- Beginning of the function
if value == 1 then -- Checks to see if value equals one
gfd.SetLight(GFDIO, 0, LED1) -- Turns ON light#1, of unit#0 on the GFDIO
else
gfd.ClearLight(GFDIO, 0, LED1) -- Turns OFF light#1, of unit#0 on the GFDIO
end -- end of the "if...then" statement
end -- end of the function
event.offset("9410", "6", "FaultLight")
It did not work.
I than changed the last line to: event.offset("x24B8", "x0F", "FaultLight") and it also did not work.
Can you please direct me as to what I am doing wrong?
Thanks,
Arieh