Member Login
member
passwd
remember me on
this computer.

- join now -
- forgot username or password? -

Search

Jump to a Date

Sponsored Communities
Cool stuff
Select a topic of interest:
...and press:
Neat Stuff
Control.com Stuff

Visit our shop for nerds in control lifestyle products.

Fortune
"I may not be totally perfect, but parts of me are excellent."
-- Ashleigh Brilliant
RSS Feed
RSS feed Use this link to get an RSS feed of the Control.com article flow, for private, non-commercial use only:
www.control.com/rss/
To get a personalized feed, become a member at no cost.
Select a Page Style
Select one of the following styles:
- BluFu
- Classic
(cookies required)
advertisement
from the Automation department...
PID in PLC S7 200
PLCs and related questions. topic
Posted by Lebour on 17 May, 2008 - 4:31 pm
Hello to everyone,
I'm quite new in the automation sector and I have some experience in s7 200, but this is the first time dealing with PID.I want to control the rotation of a motor, with only one temperature sensor.

Is there anyone who could tell me how i could possible to do this with a PID? Please, any help or advice should be very helpful.


Posted by dchartier on 18 May, 2008 - 5:19 pm
Hello Lebour;
There is a PID Wizard instruction in the S7-200 instruction library, so doing the actual PID design in the PLC should be easy.
The hard part comes before: what exactly do you want to control, and how are you going to do the control.

Are you planning to use a drive to control the motor, and if so, are you going to use digital, analog or fieldbus control of the drive? Or are you thinking of PWM for the speed control of the motor, for example?

How exactly are you going to use the temperature signal as a PV? What is the link between the temperature measurement and the motor action (controlled by the PID loop)?

Basically, you have to design the feedback loop on paper, to understand your process before you start programming; you must define exactly the different signals entering and leaving the PID instruction (SP, PV, CV) and the different gains that will be used to set the process response to the control. This will shorten the programming side of the problem.

Hope this helps,
Daniel Chartier


Posted by Lebour on 18 May, 2008 - 6:04 pm
Dear Daniel Chartier,
firstly i would like to thank you for your interest. Well, I am not going to use an inverter. I will just change the rotation of the motor with just a 24VDC signal.The motor will change its rotation, when the temperature is raising up to 35C. I'm not quite understand the function of PV and CV.

Can you please give an example?
Thanks for your time, I hope the best for you and your family.


Posted by dchartier on 20 May, 2008 - 12:43 am
Hello Lebour;

If all you need to do is fire a 24 VDC output when your temperature reaches a certain value, then you do not need PID control.

First, your temperature measurement; there are RTD and Thermocouple expansion modules fopr the S7-200, which would give you simple and reliable readings in your program. Or you could use a transmiter with your temperature sensor, transforming the temperature reading into a voltage or current signal that can be interpreted by your analog inputs. But you will need to scale the values in your program to determine what temperature value you are receiving.

Use a compare instruction (temperature1> setpoint) to determine when your temperature exceeds 35 degrees, for example, and use the result of the comparison to trigger your 24 V output.

Where are you planning to send that 24 V signal, in order to change the rotation on your motor (if you don't use an inverter, how exactly are you planning to change the rotation of the magnetic fields in the motor)? What kind of motor are you using?.

Please, once is never enough, I recommend that you put down on paper exactly what your sequence of operation is going to be, it is critical that you think this out before you start connecting things together.

Please study the S7-200 system manual, it contains all the information you will need on the S7-200 side: instruction set for MicroWin, wiring diagrams, parameters for all input and output modules... You can download it here:
http://support.automation.siemens.com/WW/view/en/1109582
< br>If ever you would like to go back to the original question about PID control, here is a link to basic information on the subject. It is one of the best simplified description of this type of controls, by a gentleman I respect very much, Mr. Ron Beaufort:
http://www.ronbeaufort.com/sample_lessons.htm

Hope this helps,
Daniel Chartier


Posted by MHAMZA on 20 May, 2008 - 12:47 am
Dear Lebour,

Seems like you want the motor to switch direction on a specified temperature, i.e. 35C.

If this temperature signal is already connected to your S7 200 Analog input all you need is to put in a small logic using a comparator that will compare this temperature with limit of 35 once it exceeds 35 you set an output bit to swap the DC voltage on your motor.

This is not a PID application!


Posted by George Buckbee on 20 May, 2008 - 1:15 am
For an introduction/tutorial on PID control, see:

http://www.expertune.com/r2.asp?f=AList&l=tutor2.html


Posted by Lebour on 22 May, 2008 - 1:28 am
Thank you all, it was a great help.


Posted by Joe on 23 May, 2008 - 1:28 am
I think you want to vary the speed of the VFD (inverter) based on temperature input. If I am correct, this would be a PID application (doesn't have to be unless you need great accuracy and stability). You would need an analog input for your temperature and an analog output to supply 0-10v (or whatever) to the inverter... probably corresponding to 0-60 Hz. Am I close?


Posted by Kevin on 23 May, 2008 - 1:30 am
I think you are actually trying to vary the speed of the motor based on the temperature. If that is correct, this could be done with PID... if you really need that kind of accuracy and stability. In any case, you will need an analog input for your temperature and an analog output to control the 0-10v (or whatever the inverter requires) for the speed (corresponding to 0-60Hz). Am I close?

( Complete thread: http://www.control.com/thread/1026246298 )


Posted by Kanair on 26 July, 2008 - 1:08 pm
Hello Daniel Chartier,
If there are one set point and two feedbacks (A and B), can S7-200 provide PID loop Control. In this case, feedback A creates direct acting output and feedback B causes a reverse acting output.(In other words, increasing set point causes the magnitude of feedback A increase and magnitude of feedback B decreases.)

thanks,
kanair

From Control Engineering magazine...
Related articles from Control Engineering magazine
Above articles copyright 2008 Reed Business Information. Subject to its Terms of Use.
Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2008 Control Technology Corporation. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.

Internet Explorer 6.0 Fix

Advertisement
Our Advertisers
Help keep our servers running...
Patronize our advertisers!