QUOTE
The first thing I dont understand is PID mode.
not sure what you mean there ...
[attachmentid=4289]
are you talking about the “Time Mode” setting? ... if so, then here’s some information that you definitely need to know ... first of all, the Td setting that you mentioned has NOTHING to do with the “Time Mode” setting ... actually the Td setting is only responsible for tuning/adjusting the Derivative action ... notice that I’ve crossed it out in the figure above - just to show that it has nothing to do with our discussion in this post ... now we WILL have to come back to it later - but let’s ignore it for now ...
QUOTE
the mode is set at STI but i could not find any STI sub-routine and S:30 word value is 0.
looks like you’re thinking about the SLC platform ... in a MicroLogix 1200 you usually have to look in the “Function Files” feature to find an STI ...
[attachmentid=4290]
if you look there and find that an STI is NOT being used, then your original programmer has apparently set the PID up wrong ... that’s assuming that I really understand what you’re saying ... can you post your .RSS file so that we can check for sure? ... just for the record, this is probably the MOST COMMON error in setting up a PID - so I won’t say that your original programmer is in “good” company - but I can assure you that he has a LOT of it ...
QUOTE
I do know if using the Timed mode, the timer need to be set so that the PID block is scanned at the rate that is set by the timer.
not exactly ... that would be true with a PLC-5 or a ControlLogix system ... but not with an SLC or MicroLogix system ... for SLC and MicroLogix, you don’t use a timer ... think of the “timer” as being “built-in” to the PID instruction ... all you have to do is set the “Time Mode” for “TIMED” and set the Loop Update setting for how often you want the PID to be executed ... the PID takes care of the rest ... specifically, in an SLC or MicroLogix system, the PID rung should have only ONE thing on it - and that’s the PID itself ... more specifically, there should NOT be any reference to a timer on that PID rung ... see the rung in the first picture above ...
QUOTE
The second question is the loop output signal. The heater loop output ( 0- 100%) is scaled to match the 4-20 mA analog output signal which then is fed to an SCR and send power to heater. I dont know why he has to use this 0-100% output instead of feeding the loop control variable (CV) directly to the 4-20 ma output.
I can’t say for sure without knowing more (actually ALL) about your system - but here’s something for you to think about ... the output of the PID (the CV) will always range from 0 to 16383 ... now assuming (gosh I hate that word) that you’re using a 1762-IF2OF2 for your analog input and output, there are basically two ways to go ... the module MIGHT be set up for “Raw/Proportional” - or it MIGHT be set up for “Scaled for PID” ... IF (big IF) it’s set for “Scaled for PID” then most programmers would indeed set the PID’s CV setting to go directly to the analog output address ... most programmers would consider the use of the PID’s internal “Control Output CV (%)” value as a step in the wrong direction ... specifically, (as you mentioned) instead of having about 16383 steps of resolution, your system APPEARS to have only 100 steps of resolution ... (my distinguished colleague Peter Nachtwey is NOT going to like that situation) ...
now STOP and think about this - before you DO something to the system ... it might seem natural to go right out and “fix” some of the things that I’ve just mentioned ... do NOT do that ... the system is “sort-of-kind-of” working ok, right? ... if you rush out and change the set up, even in the RIGHT direction, then you’re probably (almost assuredly) going to have to retune it ... that could be very time consuming ... I’d recommend that you leave things the way they are until we’ve had time to go further with this discussion ... and I REALLY do recommend (strongly) that you post your .RSS file ...
also, you might want to read
this post ... and be sure to read the next post in that same thread - especially the part about Bubba’s paycheck ... I’ve used that same analogy on my students for several years now - and it seems to help them understand how the PID’s “trigger” (or lack thereof) can affect the PID tuning adjustments better than anything else I’ve tried ...
also there are several basic PID papers that I’ve written on our company’s website ... yes, I know that the website is a wreck - the kid that got paid to “fix” it didn’t do such a great job ... anyway click the link under my signature (below) and go to the “Sample Programs” area ... you can find the same PID material by searching my name and “PID” on the various forums - but the website postings are in an easy to print .PDF format ...
PS Edit ... and it looks like my distinguished colleague Alaric has beaten me to the punch again ... sorry for the duplication ...