Page 1 of 1

Flowcode6

Posted: Wed Sep 30, 2020 5:45 am
by buvaylov
Hello! Please help with an example of entering a value (for example 1155, 8888... 4125) from the keyboard into a variable integer type

Re: Flowcode6

Posted: Wed Sep 30, 2020 12:47 pm
by Benj
Hello,

To do something like this you would have a routine like this. Written in pseudocode.

Code: Select all

done = 0
var = 0
while (done != 1)
{
  key = ReadKeypad()
  if (key < 255)
  {
    if (key > 9) then done = 1
    if (key <= 9) then var = (var * 10) + key
  }
  while (key < 255)
  {
    key = ReadKeypad()
  }
}
Hope this helps.

Re: Flowcode6

Posted: Thu Oct 08, 2020 1:13 am
by buvaylov
Hello! Thanks for the example. Please indicate an error in the attached file. It is necessary to reflect the value of the variable(var) on the indicator. Thanks in advance

Re: Flowcode6

Posted: Thu Oct 08, 2020 9:10 am
by medelec35
Hi buvaylov,
Does this work better for you?

Re: Flowcode6

Posted: Tue Oct 13, 2020 1:12 am
by buvaylov
Hello Martin! Thank you for your help. I am making a winding machine and want to know if I can contact you for project advice in the future. Regards, Alexandr

Re: Flowcode6

Posted: Tue Oct 13, 2020 1:46 am
by medelec35
Hi Alexandr,
Your welcome.
If you get stuck, then I will help you if I can.

Re: Flowcode6

Posted: Mon Nov 16, 2020 6:28 pm
by medelec35
Hi Alexandr,
Can you ask for help via main forums please and not via PM as its against forum rules.
Issues with your flowchart is you need to add a LCD start component before the main loop:
LCD1.png
LCD1.png (7.67 KiB) Viewed 5363 times
&
Within configuration settings, you will need to change RC to XT as RC is only If you have an external resistor and capacitor connected and not a crystal or resonator.