preset

Moderator: Benj

Post Reply
donald
Posts: 74
Joined: Tue Feb 14, 2012 5:17 pm
Been thanked: 3 times
Contact:

preset

Post by donald »

Hello to all,
I want to do a timer without adjustment, with the value set for counting.
Thank you in advance!
Attachments
timer.fcf
(9 KiB) Downloaded 237 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: preset

Post by Benj »

Hi Donald,

How about this?
Attachments
timer.fcf
(7.5 KiB) Downloaded 258 times

donald
Posts: 74
Joined: Tue Feb 14, 2012 5:17 pm
Been thanked: 3 times
Contact:

Re: preset

Post by donald »

Hi Benj,
They are very happy, thank you very much, more. :D :D :D :D :D

donald
Posts: 74
Joined: Tue Feb 14, 2012 5:17 pm
Been thanked: 3 times
Contact:

Re: preset

Post by donald »

Mr. Benj, if I want to illuminate an led after finishing counting 9999, where you have to put the led?
Attachments
timer 2.fcf
(8.5 KiB) Downloaded 246 times

donald
Posts: 74
Joined: Tue Feb 14, 2012 5:17 pm
Been thanked: 3 times
Contact:

Re: preset

Post by donald »

Right now, I have noticed that he was without a stop --> 0, -1, -2, etc. It would have been better if from 0000 it is stopped and an led lights up.

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: preset

Post by medelec35 »

Hi donald,
One way is in attached flowchart.


Martin
Attachments
timer3.fcf
(9 KiB) Downloaded 241 times
Martin

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: preset

Post by Enamul »

Hi
Here is it..what you are looking for..
Attachments
timer 2.fcf
(9 KiB) Downloaded 238 times
Enamul
University of Nottingham
enamul4mm@gmail.com

donald
Posts: 74
Joined: Tue Feb 14, 2012 5:17 pm
Been thanked: 3 times
Contact:

Re: preset

Post by donald »

Fantastic, are overwhelmed by your help Sir Martin, Enamul and Benj. Indeed it works as far as I want, thank you very much. :D :D :D :D :D

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: preset

Post by medelec35 »

Hi donald,
Your welcome.

If you would like me to alter flowchart, so LCD is always showing 4 digits e.g
9999
.....
.....
0002
0001
0000
Also the numbers can be fixed so it does not move to the right when changing i.e most right digit can be fixed at x5 for example.
So you can have:

Code: Select all

 
  5678
   345    
    15
     7
Etc.

Then let me know if you want any changes and I can alter flowchart for you

Martin
Martin

donald
Posts: 74
Joined: Tue Feb 14, 2012 5:17 pm
Been thanked: 3 times
Contact:

Re: preset

Post by donald »

Hi Martin,
Thank you very much sir Martin, I understood and I have proved and it works as you say.
For 5 digits what it has to be done?
Thanks in advance
Attachments
timer 4.fcf
(9 KiB) Downloaded 235 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: preset

Post by medelec35 »

Hi donald ,
I have created flowchart that can count from 99999 to 0.
See:
http://www.matrixmultimedia.com/mmforum ... 26&t=11343

Its a bit more complicated than counting from 9999 to 0 since maximum number LCD will display from and integer is 32767

Martin
Martin

Post Reply