eFisher0409 Posted November 30, 2018 Report Posted November 30, 2018 Hi All, I want to start by saying thanks to everyone who helped with my motor control and speed control program, I took sometime sat down and it works flawlessly. I added in my thermocouples to tell me temperature and they work perfect, however I came up with the idea now to reach a max temperature of 600 degrees then turn off my heat source until it drops below 400 degrees then start it up again, I had an idea of using a PID but I feel there has to be a simpler and easier way. Thanks in advance for you help.
sgull Posted November 30, 2018 Report Posted November 30, 2018 Hi Just use the compare function., compare the temperature to the min and max values. It the temperature is below the min value set the heater output coil. if the temperature is above the max value reset the heater output coil Regards Denis
MVP 2023 Ausman Posted November 30, 2018 MVP 2023 Report Posted November 30, 2018 sgull is correct, but I would also add that in a lot of cases you have to build in a bit of hysterisis/deadband/whateveryoucallitcolloquially . The reason is that if you are working with inputs that can vary the reading slightly around an average, your output(s) will chatter which in some instances is very damaging to components. I was a bit confused about what you want to do as the temp setting seemed odd. My suggestion is that when you need to do something like this, a little diagram of what you want your temperature map to be is extremely helpful. You make the Y your temperature, with X the time, and along the X you can then note how you can achieve what is needed. cheers, Aus
MVP 2023 Flex727 Posted November 30, 2018 MVP 2023 Report Posted November 30, 2018 1 hour ago, Ausman said: but I would also add that in a lot of cases you have to build in a bit of hysterisis/deadband/whateveryoucallitcolloquially He's doing that - the deadband is between 400 & 600 degrees. sgull was suggesting a basic thermostat, which will work perfectly for eFisher0409's application.
MVP 2023 Ausman Posted December 1, 2018 MVP 2023 Report Posted December 1, 2018 Ahh yes...I'm stuck in keeping it around 400 after it's been put up to 600 initially. That's why I said I was a bit confused about what was wanted. cheers, Aus
MVP 2023 Joe Tauser Posted December 2, 2018 MVP 2023 Report Posted December 2, 2018 You're looking for a deadband control, which can also be done this way in addition to sgull's suggestion- You can put MIs in place of the #400 and #600 which will allow you to adjust your control from screen variables. If you're feeling brave post your program. I'm curious to see how you've progressed. Joe T.
MVP 2023 Flex727 Posted December 2, 2018 MVP 2023 Report Posted December 2, 2018 This is why Joe is the programmer's programmer. We all strive for the elegant solution.
sgull Posted December 2, 2018 Report Posted December 2, 2018 Hi Joe Never thought of doing it that way. Much nicer than set and reset and you never have to worry about power up state. regards Denis
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now