Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - Temperature controler

(you are viewing a thread; or go back to list of threads)

Temperature controler (by Gurt)
Dear All,
I need your help, I have a NTC temperature sensor which will sense temperature continously. I want to compare the last temperature with the previous (FIFO), the moment the temperature samples are equal a relay will switch and I want this relay to be on for 5 minutes. When the relay switches off I want it to stay off for 10 minutes.
When I test this, the times are wrong, what am I doing wrong?
Thanks in advance! Gurt
Fri Jun 29 2012, 05:55:45, download attachment 120628_R1.ld
(no subject) (by David R)
Hi made small change see if it helps
Regards
David
Sun Jul 1 2012, 04:41:17, download attachment 120628_R1_forum_mod.ld
Temperature controler (by Gurt)
Hi David,
Thanks, have to test this on site.
Regards
Gurt
Mon Jul 2 2012, 15:50:46
Temperature controler (by Gurt)
Forgot! To switch the relay on it should be de-energised !
Thanks
Mon Jul 2 2012, 15:52:41
Temperature controler (by Gurt)
Hi David, it is working for ONE cycle and then it never switches off. I changed the oven output to negated before testing. In simulation mode it all seems to work but in the real world not. Thanks for the time and effort. Regards
Gurt
Tue Jul 3 2012, 09:15:02
(no subject) (by David R)
Hi try this for an idea
Wed Jul 4 2012, 00:20:41, download attachment idea_2.ld
Temperature controler (by Gurt)
Hi David, thanks again, will try this today, will let you know the outcome.
Regards, Gurt
Thu Jul 5 2012, 02:46:16
Temperature controler (by Gurt)
Hi David still no luck, Will make another tread for my problem.
Thanks again for your effort and time, regards
Gurt
Mon Jul 16 2012, 16:03:48
(no subject) (by Ronaldo)
See if I'm wrong. reading the temperature sensor to each one second, the current temperature and earlier are equal. The temperature difference will be very small in this time interval. How much is the maximum and minimum temperature? what is your application?
Tue Jul 17 2012, 17:19:23
(no subject) (by Ronaldo)
In this example, when both samples are equal,
the out turn on for 5 seconds, and after 15 seconds, restarts the cycle.
setting times and see if it works
Tue Jul 17 2012, 18:02:55, download attachment ntc.ld
Temperature controler (by Gurt)
Dear Ronaldo, thanks for the reply, my application is an oven controller for technical springs, the oven should be pre heated (init time 10 minutes) the moment the set temp is ok the oven should stay on for 5 minutes, after that the oven should cool down for three minutes and then start the cycle again
The temperatures are yet to be determined but should be in the range of min 150 degrees C and max 350 degrees C
Wed Jul 18 2012, 03:20:11
(no subject) (by Jorge Jacome)
Hi Gurt

Just a quick note, for that temperature range i would suggest
a different type of sensor maybe a PT100 or a thermocouple, but
in that case you would need a different input circuitry interface to the ucontroller.

regards

Jorge
Wed Jul 18 2012, 06:23:03
Hi Jorge (by Gurt)
You are right, I'm in the learning process of the ucontroller and LD micro, so I started with the software first, when the program works the PCB will be next, thanks for the reply !!
regards Gurt
Wed Jul 18 2012, 07:10:30
ntc file (by Gurt)
Hi Ronaldo, could you resend the file again, I cannot open it.
Thanks again, kind regards Gurt
Wed Jul 18 2012, 07:20:44, download attachment ntc.ld
(no subject) (by Ronaldo)
Dear Gurt,
In This file, the Cminuto is the initial counter 10 seconds, which equals the initial time of heating. After this time the temperature is read from the AD, and stores in "sample". If "sample" is greater than 350 the output remains off for 5 sec. elapsed time of 3 seconds, the pin1 output (out) is turned on and starts the cycle. All times are in seconds. To work with minutes to load "Cminuto" rung 10 = 600s; = 10minute rung 11 = 601S; cContequal load: rung 300s = 9 = 5 minute rung 10 = 480 seconds = 8 minute
simulate this in ldmicro it will work, change the value of A/D greater than 350 in rung 6.
The minimum temperature was not used in this code example.
Regards, Ronaldo
Tue Jul 24 2012, 14:29:06, download attachment ntc.ld
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):