Correcting PID tuning values for incorrect loop update time

I will try to explain it the way I understand it.
You keep running the test with the same processor with the same data and wonder why the results are the same. Try running it in a Logix processor
First the scan times between the ML1400 and a Logix processor are completely different, the Logix processors are about 1000 time faster.
With the ML1400 the PID control updates when the rung is true and the update time times out


Just realised you might not have the full picture because the discussion began in a different thread. The last sentence in your quoted text above is correct if the PID is set up for a timed update. But this one is not - it's set for an STI update. This means that the output updates each and every time it's scanned, and you must put the PID in an STI routine of the same period as your specified loop update time. Otherwise, your tuning values are at the mercy of your scan time.

In the other thread I basically said that I've got a PID loop that is set up incorrectly (should be in an STI routine but is actually being scanned continuously), and I a now migrating it to a CLX where it will be set up correctly (i.e. in a periodic task). Since it has been tuned up with an incorrect loop update time, the tuning values will not directly translate, even once it is in a periodic task, because the loop update time will now be correct where previously it was not. So I want to work out how to re-calculate what the equivalent tuning values would be, if the loop update time were correct.
 
As it happens, just after I finally finish the migration, the OEM goes "oh, we've integrated this into a CLX before, here, here's our code".

Thanks.

So, I opened it up and had a look. They have:
- The same "default" tuning values as the ML1100 "default" tuning values
- The PID scanned in a 3ms periodic task
- The PID loop update time configured for 20ms
- The analog I/O configured for an 80ms update

3b41fc1703468969e995c96f0051adcf.jpg
 
Your cat looks like it's angry at you
I would rather seen a puppy their never angry and always so happy to see you when you get home
 

Similar Topics

I have a Micrologix 1400 with an 1762-IR4 RTD. I use it to read airbag resistance on seats on an assembly line. I am often getting into a...
Replies
2
Views
1,180
Curious, is it common to program in offsets to calibrate/correct analog sensor readings in certain applications? As an example, I have a couple...
Replies
11
Views
3,059
Curious, is it common to program in offsets to calibrate/correct analog sensor readings in certain applications? As an example, I have a couple...
Replies
2
Views
1,397
Hello, I have a motor that we are sending a RPM Speed Output from 0-100% to the VFD. However, the Motor HP needs to be limited to 6000 HP and the...
Replies
3
Views
83
I have S7 1512C controler for controlling 48 PID temperature loop, the output is PWM. Please I need the best, most efficient way to write the...
Replies
13
Views
587
Back
Top Bottom