Page 1 of 1

Delay with Variable

Posted: Mon Jun 25, 2012 5:00 pm
by electron67
Hi
I am working with a program, the program need 2 funcion VRef and Delay; My program the half work in Flow4 and the another half work in Flow5;
In Flow5 work the Delay very good and VRef not work in PIC18F4620, and Flow4 VRef work fine and the Delay work fine in flowcode4 but in hardware not.
I do all program in Flow4, you can see the timer program in that is wrong, I select 1 second, but work for 8 minutes, the delay is a variable with calculation are seconds, minutes and hours; When I use variable in Delay, work fine in Flow4 but hardware not. (PIC18F4620). The number are the 2 digitos and is selected with a keypad.

Thank you

Re: Delay with Variable

Posted: Mon Jun 25, 2012 8:52 pm
by medelec35
Hi electron67 the reason delay using variables don't work on hardware is because the variable can only have a maximum value of 255;
For a work round see:
http://www.matrixmultimedia.com/mmforum ... 624#p15633

This has been fixed on Flowcode V5 so a variable can be 0 to 65535


Martin

Re: Delay with Variable

Posted: Mon Jun 25, 2012 10:03 pm
by electron67
Thank you, is solved the problem in Flowcode5 whit VRef in PIC18F4620.

Saludos
Electron67