|
Hi
I'm new to this forum and i need help to program a routine for my ocelot.
I've tried several ways to program but it just won't work.
I'ld like to program a shutdown sequence if A/16 turns on.
when A/16 (trigger) turns on, i'll have 10 seconds to reply (pushing a button) which means i'ld be still awake otherwise all units turn off.
While this sequence is running A/3(lamp) turns ON & Off.
If i'ld reply within 10 seconds the A/3 on/off sequence should stop and lamp A/5 should be on for 2 seconds.
I've tried several times but it just won't work the way i want.
This is what i've so far.
if A/16 turns on and A/1 is on and A/7 is on then timer#0=65525 then var#0=1 then A/16 turn off if receive A/21 then A/5 turn on then timer#1=65530 if timer#1=0 and var#0=1 then A/5 turn off then var#0=0 if timer#0=0 and var#0=1 then -shut down units- then var#0=0 if timer#0 is NOT=0 then A/3 turn on if timer#0 is NOT=0 then A/3 turn off end
I'ld appriciate if someone could help me out.
Thanks in advance,
|