thermostat..why not work?

Moderator: Benj

Post Reply
antoniopoli
Posts: 8
Joined: Fri Mar 28, 2014 1:45 pm
Contact:

thermostat..why not work?

Post by antoniopoli »

hi i'm new
I'm trying to do a thermostat. pressing the select button, the display screen should bring up the macro code where imposed and memorize a temperature value.
but this does not work.I attach the code, someone can tell me where am I wrong? and can correct it?

thanks
Attachments
termostato02.fcf
(25.87 KiB) Downloaded 395 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: thermostat..why not work?

Post by medelec35 »

Hi antoniopoli,
your flowchart is not working because you're reading switch only once at the start of main outside of the continuous main loop.

For your flowchart to work you must read the switch within your main loop (Loop While 1).
So you will have to move SwitchReadState component macro.

If you keep pressing F8 to single step you will see that switch read component is never accessed.

Since your using a professional version of Flowocode,
can you please register for V5 section by clicking on>This

Martin
Martin

antoniopoli
Posts: 8
Joined: Fri Mar 28, 2014 1:45 pm
Contact:

Re: thermostat..why not work?

Post by antoniopoli »

thanks!

antoniopoli
Posts: 8
Joined: Fri Mar 28, 2014 1:45 pm
Contact:

Re: thermostat..why not work?

Post by antoniopoli »

I modified the program and now I have another problem.
Flowcode tells me that the simulation is ok, I compile the exe and I plug it in "real pic simulator" but this does not work.
who is right? Flowcode? or real pic simulator.
I enclose the last flowchart that I did.


P.S. copy of Flowcode use that is not mine and I can not register it. I'm considering to buy Flowcode 6 professional but first I want to be sure that it works well
Attachments
termostato05c.fcf
(26 KiB) Downloaded 406 times

joetp
Posts: 1
Joined: Thu Aug 27, 2015 3:39 pm
Contact:

Re: thermostat..why not work?

Post by joetp »

Flowcode tells me that the simulation is ok, I compile the exe and I plug it in "real pic simulator" but this does not work.
who is right? Flowcode? or real pic simulator.
Hi antoniopoli,

One year later I have been reading your posts about your thermostat.
This is my answer to your problem with Real Pic Simulator not simulating your project as the Flowcode 6 does.
Ok, I have built your project in Real Pic Simulator and it really works as fine as in Flowcode 6 Pro.
I understand that after long time elapsed you may not be concerned on this subject any longer, but useful info for anyone following this thread.

Regards,

Josep

Post Reply