![]() ![]() ![]() ![]() ![]() ![]() |
||
![]() |
||
![]() ![]() ![]() ![]() This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
![]() |
![]() |
#151 | |
Member
![]() ![]() Join Date: Jul 2022
Location: FrozenHell
Posts: 79
|
#116 #125
Are you sure that is what destination unknown is using? Guess we should ask Destination Unknown about it Quote:
|
|
![]() |
![]() |
#152 | |
Member
|
Quote:
You have made a big leap forward. The system you and I are modeling is a linearized model of a hydraulic cylinder with a load. This video shows how well the algorithms work even though the system is designed poorly. The system in the video was purposely designed to be impossible to tune well using just a normal PID. The damping factor is about 0.15 and the natural frequency is about 6.5 Hz. This means our old RMC100 and Rockwell's HYD02 and M02AS are not capable of controlling this system. https://deltamotion.com/peter/Videos/NF-FOA.mp4 Notice that K2 is the second derivative gain. Most people don't like using the first derivative gain because it is noisy. However, none of this is possible without a good model derived by a good "auto tuning" program, the observer, and the extra K2 and Kj. Now you seem to understand, each system is different. There is no one size fits all. A PID alone is often not the best solution. You need to look at more of my Peter Ponders PID videos.
__________________
"Living is easy with eyes closed, misunderstanding all you see...." Strawberry Fields Forever, John Lennon |
|
![]() |
![]() |
#153 |
Member
![]() ![]() Join Date: Jul 2022
Location: FrozenHell
Posts: 79
|
If my block-diagram is correct then there is some problem.
I attached MathCAD calculations for block-diagram with coefficients from video and get another-shape curves |
![]() |
![]() |
#154 | |
Member
![]() ![]() Join Date: Jun 2010
Location: Ireland
Posts: 95
|
Quote:
Note: PVT_NoPVT.png PID controllers work with Dimensionless P Gain, which is actually (% of CV)/(% of PV). So gains have to be recalculated when the scaling is changed to get the same response. Code:
Example with a PV scale of 0-100: Kp = 1.5, SP = 75, PV = 15 so the Error = 60% of the range as 100*60/(100-0)=60% P-Term -> 1.5*60=90 Code:
Example with a PV scale of 0-400: Kp = 1.5, SP = 75, PV = 15 so the Error = 15% of the range as 100*60/(400-0)=15% P-Term -> 1.5*15=22.5 Code:
Example with a PV scale of 0-400 and rescaled Kp 1.5->6: Kp = 6, SP = 75, PV = 15 so the Error = 15% of the range as 100*60/(400-0)=15% P-Term -> 6*15=90 This is the case.
__________________
same same, but different... Github: https://github.com/Destination2Unknown YouTube: https://www.youtube.com/channel/UCjw...hVY32I2q2JZnBQ |
|
![]() |
![]() |
#155 |
Member
![]() ![]() Join Date: Jun 2010
Location: Ireland
Posts: 95
|
What's the question?
__________________
same same, but different... Github: https://github.com/Destination2Unknown YouTube: https://www.youtube.com/channel/UCjw...hVY32I2q2JZnBQ |
![]() |
![]() |
#156 | |
Member
|
Quote:
Also, I don't usually combine the whole transfer function into one big function because the control output is limited in reality and Laplace transforms ignore this reality. Learn to make proper trajectories. My book about this is at work and I am now at home. It is turkey time ( thanks giving ) in the US.
__________________
"Living is easy with eyes closed, misunderstanding all you see...." Strawberry Fields Forever, John Lennon |
|
![]() |
![]() |
#157 | |||
Member
|
Quote:
Note: In essence this is "Bump" transfer versus "Bumpless" transfer as in these plots it’s a change of setpoint and then a transition to Auto-Mode. [/quote] The old bump vs bumpless argument. Bumpless transfer doesn't apply to temperature systems. Temperature systems don't "bump". Motion systems do. We still don't know what you are using as the open loop transfer function. Quote:
Quote:
__________________
"Living is easy with eyes closed, misunderstanding all you see...." Strawberry Fields Forever, John Lennon |
|||
![]() |
![]() |
#158 | |
Member
![]() ![]() Join Date: Jun 2010
Location: Ireland
Posts: 95
|
Quote:
I should have said some PID controllers have a dimensionless P gain. Logix for example: http://www.plctalk.net/qanda/showthread.php?t=63400 And some tuning methods calculate the gain in %/EU as apposed %/%: https://controlguru.com/controller-g...rcial-systems/
__________________
same same, but different... Github: https://github.com/Destination2Unknown YouTube: https://www.youtube.com/channel/UCjw...hVY32I2q2JZnBQ |
|
![]() |
![]() |
#159 | ||
Member
|
Quote:
Quote:
Our gains, Delta Motion RMCs, have units. Yes, the controlguru is trying to explain that the true gain depends on the scaling of error in SP_count-PV_counts on the input and counts/% control output. In the end is is as I said. Error units/% control output. It looks like the gains have units of counts_in to counts_out but the counts in and counts out don't represent the same thing and they must be scaled. All that just confuses people. The open loop gain on a temperature system should have units of degree/control output%. The closed loop gain should be the inverse. For instance, if the open loop gain is 2 degree/% then I know I can output 100% to increase the temperature to 200 degrees above ambient and 100%. I can scale for any temperature in between. So if the open loop gain has units of degree/%CV then how can the close loop gain, K have gain anything other than %/degree? The only answer is all the mickey mouse stuff that Rockwell put you through scaling inputs and outputs. Most Rockwell customers are totally clueless because they are not calculating gains. They just use trial and error.
__________________
"Living is easy with eyes closed, misunderstanding all you see...." Strawberry Fields Forever, John Lennon |
||
![]() |
![]() |
#160 | |
Member
![]() ![]() Join Date: Jul 2022
Location: FrozenHell
Posts: 79
|
Quote:
|
|
![]() |
![]() |
#161 |
Member
|
Do I need to do if for you?
It takes using the Dirac function of you want to keep EVERYTHING in the s-domain. Eventually you will need to graduate to state space or better yet, differential equations. Serious control people use differential equations because then they can start simulating non-linear systems. All this is easy for me since I have over 30 years of files and work to refer to. Take the time to figure out how to make good usable ramps. You will have them for the rest of your life. Making a good target generator for motion control is FAR MORE difficult than doing system identification and computing the controller gains. Here is a complete 3rd order motion profile. https://deltamotion.com/peter/wxMaxima/Seg1234567.html
__________________
"Living is easy with eyes closed, misunderstanding all you see...." Strawberry Fields Forever, John Lennon Last edited by Peter Nachtwey; November 28th, 2022 at 01:40 AM. |
![]() |
![]() |
#162 | |
Member
![]() ![]() Join Date: Jun 2010
Location: Ireland
Posts: 95
|
Quote:
Logix PID -> 0-100: 0-100.png Logix PID -> 0-400: 0-400.png Logix PIDE: PIDE.png This is the Siemens Approach: S.jpg
__________________
same same, but different... Github: https://github.com/Destination2Unknown YouTube: https://www.youtube.com/channel/UCjw...hVY32I2q2JZnBQ |
|
![]() |
![]() |
#163 |
Member
![]() ![]() Join Date: Jun 2010
Location: Ireland
Posts: 95
|
__________________
same same, but different... 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 |
Slow Acting Long Time Interval PID Tuning | GrizzlyC | LIVE PLC Questions And Answers | 141 | March 30th, 2021 07:04 AM |
PID tuning methods | OysterMan | LIVE PLC Questions And Answers | 4 | March 21st, 2021 11:59 AM |
Micrologix 1400 Timed Proportioned Output PID Tuning | Paul Begley | LIVE PLC Questions And Answers | 3 | January 13th, 2014 05:26 PM |
PID Tuning and Process Modeling | kdcui | LIVE PLC Questions And Answers | 14 | October 15th, 2009 02:27 PM |
PLC PID Auto Tuning Problem | monet | LIVE PLC Questions And Answers | 6 | May 26th, 2009 10:50 AM |