Code:{
IF v9888 >= 3
{
&REF = 0
&BlinkLed = 500000 // Begin value of timer
&BlinkLed = TIMER 0 -1 40
}
}
{
L0 = MOD &BlinkLed 2
IF L0 = 0
{
&REF = 0
}
ELSE
{
&REF = 1
}
Printable View
Code:{
IF v9888 >= 3
{
&REF = 0
&BlinkLed = 500000 // Begin value of timer
&BlinkLed = TIMER 0 -1 40
}
}
{
L0 = MOD &BlinkLed 2
IF L0 = 0
{
&REF = 0
}
ELSE
{
&REF = 1
}
__________________________________
Code:Var 222
{
IF v9888 >= 3
{
&REF = 0
&BlinkLed = 500000 // Begin value of timer
&BlinkLed = TIMER 0 -1 40
}
}
Var 333 name BlinkLed
//
Var 222
{
IF v9888 <= 3
{
&REF = 1
{
&BlinkLed = 1 // equal to end value of timer (0) + 1
}
}
}
//
Var 222
{
IF v9888 = 0
{
&REF = 0
}
}
_______________________________
Code:{
IF v9888 >= 3
{
&REF = 0
&BlinkLed = 500000 // Begin value of timer
&BlinkLed = TIMER 0 -1 40
}
}
//
{
IF v9888 <= 3
{
&REF = 1
{
&BlinkLed = 1 // equal to end value of timer (0) + 1
}
}
}
//
{
IF v9888 = 0
{
&REF = 0
}
}
____________________________________
Is this what you wanted Jim?Code:IF v9888 >= 3
{
&REF = 0
&BlinkLed = 500000 // Begin value of timer
&BlinkLed = TIMER 0 -1 40
}
IF v9888 < 3
{
&REF = 1
&BlinkLed = 1
}
IF v9888 = 0
{
&REF = 0
}
_________________________________
Hi Jim,
I *think* that meets my requirements. Could you just confirm?
Everything looks okay from here, timer starts if it's more than 3, stops if less than 3 & lights, off if 0. Looks good.
_____________________________