I've got a little problem, i use one pin to detect two fronts, like that in a up front my variable take 1 , and on the down front my variable take 0.
But that only works when the time between up&down are very small like 3/4min but i want it to work with a time between up and front of 1 Hour.
Here is my code :
else if (SW2_Read()==1)
Could you help me ?
It was configured on a Strong drive.
But i don't know if the problem come from that. I detect all the up&down front but only when the time between an Up and a Down are less than 4 minutes.
Can you please post your complete project so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file. Some schematic for the external connections would be helpful.
And please explain what you mean with the word "front", I don't know what it means in this context.