![]() ![]() ![]() ![]() ![]() ![]() |
||
![]() |
||
![]() ![]() ![]() ![]() This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
![]() |
![]() |
#16 | |
Member
|
Quote:
drbitboy isn't my main concern. The problem I really have is that no one at my company wants to dive into the control theory. The math makes their brain hurt. This is sad. What people should take away from these threads is that mathemagic is possible and could be worth $$$$
__________________
"Living is easy with eyes closed, misunderstanding all you see...." Strawberry Fields Forever, John Lennon |
|
![]() |
![]() |
#17 | ||||
Lifetime Supporting Member
|
Update: I am not saying a dead band is always better than a filter; I am only saying it is another tool in the toolbox, and its benefits or detriments in any situation will come from knowledge of the entire system (process + control).
TL;DR Quote:
Quote:
Quote:
An interesting aspect of this is that there is a delay, random to be sure, but a delay nonetheless, in how long it takes for the (first) breakthrough, so in that sense it has the problem as the filter. But since we are saying things like "if the sample time is fast then the noise averages itself out." then it does not matter.I didn't say the filter increases the noise. What I said was that, in a system with input noise, a PID that responds to that noise, i.e. "chases the noise," will increase (amplify) the noise. Since a filter attenuates but does not eliminate noise, the filter-attenuated noise that gets through will be amplified in the system (system = process + control) by the PID. Quote:
If we sample at a high rate, and take the extrema over some period, in order declare their midpoint as the actual signal, then that is roughly akin to empirically determining the dead band limits. Yes, that is not an actual dead band, because an actual dead band is fixed around the setpoint (only), but it is saying "ignore all variation between these two limits as noise," which is the same concept, roughly, as a dead band.
__________________
_ Brian T. Carcich i) Take care of the bits, and the bytes will take care of themselves. ii) There is no software problem that cannot be solved with another layer of indirection. iii) Measurement is hard. iv) I solemnly swear that I am up to no good ![]() v) I probably have the highest ratio of forum posts to actual applications in the field (∞). vi) Hakuna matata. vii) Bookkeeping. Last edited by drbitboy; December 26th, 2021 at 06:42 AM. |
||||
![]() |
![]() |
#18 | |||||
Member
|
Quote:
Quote:
Quote:
Quote:
https://deltamotion.com/peter/Mathca...09deg%20db.pdf I made a "noise" array so that both simulations will have exactly the same noise. The standard deviation is still 3 degrees. You can see that making the dead band wider at +/- 9 degrees makes things worse. Only 1% of the samples will correct the PV and nothing happens within the dead band. I have also made the noise extremely small. The PV eventually just stops somewhere in the dead band. Quote:
It is just a crude way of finding the average assuming the wave form is symmetrical. One could average all the points during one cycle too but it would need to be one cycle and that would vary depending on the pump speed. The results would be wrong if the averaging occurred over a wave length and a half. BTW, we are helping Star Hydraulics with their servo valve testing. The test involves generating sine waves to the valve and measuring the response. The person doing helping out is using a FFT to estimate the the amplitude of the response but it would have been easier to just capture the high and low of the responses sine wave. The sampling is done at 8KHz. This is fixed. It is best if the sine wave frequencies are some factor of 8KHz. For instance. Sampling a 333 Hz sine wave means we don't always catch the peak. We have a technique where we use two samples before the peak and two samples after the peak to estimate the true peak. This works well. If one just samples a 333 Hz signal at 8 KHz and applies a FFT, it will not return the correct amplitude.
__________________
"Living is easy with eyes closed, misunderstanding all you see...." Strawberry Fields Forever, John Lennon |
|||||
![]() |
![]() |
#19 | |
Lifetime Supporting Member
![]() ![]() Join Date: Sep 2017
Location: Wi
Posts: 64
|
Quote:
I will have to check out the channel, going through EE most of the YT I watched be it transfer functions, nodal, Laplace, mesh, etc was not native English speakers but I did appreciate that they tend to get to the point instead of ramble like some of the Americanos. I doubt I'll follow the math either, but keep some contacts that do enjoy that type of math and will pass it on. Last edited by durallymax; December 30th, 2021 at 09:24 PM. |
|
![]() |
![]() |
#20 | |||
Member
|
Quote:
https://deltamotion.com/peter/wxMaxima/Seg1234567.html Quote:
I have my Mathcad examples done before I start videoing so I don't waste time typing and fixing mistakes during the video. Quote:
I have over 800 Mathcad files on all sorts of topics. I started with the original Mathcad 3 back in the early 1990s. BTW, there is a lot of stuff I learned in college that I NEVER used. However, Laplace transforms and differential equations are a must. Many things were taught back then. PID knowledge was crude. When I was going to college there was a class where a PID was made using op amps, resisters and capacitors. You need to see my "Root Locus is Useless" video https://youtu.be/uYhz3TuTkfM I used the same example an Indian IIT professor used. He used 8 videos to show how to plot the root locus. However, at the end he didn't have a means of controlling the system the root locus was based on. I am no nonsense. If you want some entertainment there is my Fuzzy Logic vs PID where I blast a paper that was presented to some engineering meeting. It is obvious the committee that accepted that paper didn't know anything. https://youtu.be/5389Mh6Xibo Learn python, Laplace transforms, numerical analysis, differential equations and system identification. Be able to solve systems of differential equations. A channel I like is "APMonitor". If you want to be more specialized, learn FPGA programming. FPGA programming. An FPGA is like PLC that can execute all its rungs at once. Above all, the the basics. I call this "forever knowledge" because it will never change. The tools, PLCs and motion controllers and languages are all fads and may be gone in 20 years. Have fun, the futures belongs to the doers and designers. If you have a question PM me. I have help students get their masters degree in the past. Forum member Pandiani is an example.
__________________
"Living is easy with eyes closed, misunderstanding all you see...." Strawberry Fields Forever, John Lennon |
|||
![]() |
![]() |
#21 |
Lifetime Supporting Member
![]() ![]() Join Date: Aug 2013
Location: Midland, MI
Posts: 359
|
|
![]() |
![]() |
#22 | ||
Lifetime Supporting Member
![]() ![]() Join Date: Sep 2017
Location: Wi
Posts: 64
|
Quote:
Quote:
We did FPGA's in VHDL and LabVIEW. I prefer VHDL but can see the appeal to LabVIEW for some. |
||
![]() |
![]() |
#23 |
Member
![]() ![]() Join Date: Jun 2010
Location: Ireland
Posts: 107
|
The online version: https://pidtuningireland.pythonanywhere.com/
__________________
same same, but different... Website: https://pidtuningireland.netlify.app Github: https://github.com/Destination2Unknown YouTube: https://www.youtube.com/channel/UCjw...hVY32I2q2JZnBQ |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PID loop question | Tom W | LIVE PLC Questions And Answers | 7 | August 21st, 2012 09:28 AM |
PID temperature excel simulator | rlawson | LIVE PLC Questions And Answers | 36 | February 14th, 2011 05:47 AM |
Use a PID? | MarBa | LIVE PLC Questions And Answers | 4 | May 8th, 2003 09:31 PM |
how often should I trigger the PID? | Ron Beaufort | LIVE PLC Questions And Answers | 11 | February 22nd, 2003 11:57 AM |
Cascading | Sparky | LIVE PLC Questions And Answers | 24 | February 17th, 2003 12:33 PM |