Time-Proportional output for PID on SLC-5/03

Ron Beaufort

Lifetime Supporting Member
Join Date
Jul 2002
Location
Charleston, SC
Posts
5,701
I found this question in my Personal Message box ... not sure why the sender didn’t just post it to the open forum ... the questions are valid and pretty common ...



Hi Ron

Thank you very much for your explaination about PID....

its seems that u like to help PPL regarding PLC question.

im new on PID....Im using SLC 500 5/03

my question is i wanna control digital OUTPUT to my heater element!(Not Analog output) which bit i should use to Control digital output?

PID

N7:6 = control Block

I:3.4 = process variable(MY thermo couple input)

N7:7 = control variable

my heather element output address is O:2/2
or i will control with internal Bit B3:1/1

pls help me on this question!

if u dont understand the question pls let me know!

thanks ____



Greetings ____ ...



first of all, if you follow your original plan and use N7:6 as your control block, then you can NOT use N7:7 as your Control Variable (CV) ... the reason is that the control block requires 23 words of data ... so that means that N7:6 through-and-including N7:28 will be dedicated for use by the PID instruction ... your CV will need to be placed somewhere outside of this range ... let’s use N7:75 just for discussion purposes ...



you said that I:3.4 will be used for your Process Variable (PV) ... maybe - but probably not ... the only way that this will work, is IF (big IF) your thermocouple input module can be configured to give you a signal which is already “scaled-for-PID” ... most modules won’t do this ... the big idea is that the PV signal must range in value from 0 to 16383 ... in most cases this requires the use of some type of “scaling” operation - and a new location for the properly scaled PV signal ... let’s use N7:54 as an example ... use the SCP to do the scaling if your processor will support it ... please tell us what type of input module you’ll be using if you need more detailed help with this ...



now ... to control your digital output, you’ll want to use what we call a “time proportional signal” ... here’s a quick example:



time_prop.JPG





there are different ways of doing it, but this will probably be the best way to demonstrate the basic ideas involved ... experiment with this section of code and if you can’t figure it out, post any specific questions that you might have ... there are a lot of knowledgeable people here on the forum who will be able to help ...



finally ... yours is a good question and one which will benefit a lot of people - so I’ve decided to answer it here on the open forum ... if you have further questions, it would be a good idea to post them here - so that everyone can help each other - and so that we can all learn together ...



I hope this helps ... and welcome to the forum ...
 
hi ron thanks for your reply!

what u are trying to say is the TC have to scale b4 its goes to PID?
is that correct?(Max 16383 bit right?) so have to use SCP to scale it and the output of SCP will go to PID PV?

pls correct me if im wrong!

thanks




for your info...i havent got my input module yet!...i planned!
 
yes ... the PID in the SLC platform is like a blind accountant ... he only (ONLY!) understands 0 to 16383 ... so he regards 0 as his "rock bottom" value ... and he regards 16383 as his "full scale" value ...

now it IS possible (but NOT recommended) to make the PID control a system even when using a faulty/incorrect input scaling range ... but ... the control will not be "optimum" or as "good-as-possible" unless the range is correct ...

hope this helps ... and welcome to the forum ...
 
hi ron!...as you said i tried and its work with PID.
at first i had CPU fault....after couple of fine tuning and its works!


Thanks ron!......You are the man!
 
Hi Ron,

I am currently planning on using your above example in a coffee roaster to control the heating element on the supply air. I am using a Micrologix 1400.

Is there any recommended settings for the Kc, Ti, adn Td???

Thanks
Marcus
 
Nobody can recommend settings for a PID loop. They entirely depend on the application, that is why they are adjustable.
Also, you would be better off starting a new thread then replying to one that is 9 years old.
 
Will trend sometime over the weekend if i cant get the tuning stable.

I posted on here as it adds to the information above and i also dont have to rewrite all of the above so people dont know where i am coming from.

I also dont see the point in continually adding threads when the thread above is only a few posts long.

Thanks
 

Similar Topics

This is my first project in RS LOGGIX 5000 I always used code similar to the code laid out by Paul and widelto here...
Replies
1
Views
2,464
Hi We have 12x Bosch 4WRPEH 100l/min proportional valves. These valves have a 4th spool position that closes the actuator if the proportional...
Replies
6
Views
6,665
VALVE MODEL # 4WRPEH 6 C3 B04P-20/G24K0/A1M VALVE MODEL #...
Replies
6
Views
5,911
Anyone ever PWMd the coils of a bang-bang valve? I tried it recently so that I could reduce machine setup-time by eliminating the manual flow...
Replies
41
Views
5,060
Anyone have experience w/ this module/application. I have been tasked w/ using this module to control the flow of chemicals w/ a iQ Tesla...
Replies
4
Views
1,422
Back
Top Bottom