Delay with Variable

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
electron67
Posts: 311
Joined: Sat Jan 12, 2008 2:08 am
Has thanked: 104 times
Been thanked: 47 times
Contact:

Delay with Variable

Post 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
Attachments
TIMER.fcf
Program
(18.18 KiB) Downloaded 307 times

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Delay with Variable

Post 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
Martin

electron67
Posts: 311
Joined: Sat Jan 12, 2008 2:08 am
Has thanked: 104 times
Been thanked: 47 times
Contact:

Re: Delay with Variable

Post by electron67 »

Thank you, is solved the problem in Flowcode5 whit VRef in PIC18F4620.

Saludos
Electron67

Post Reply