Regulating to a position with PLC and DC-motors

userxyz

Member
Join Date
May 2002
Location
any
Posts
2,768
Hi,

I have an S7 CPU, 2 DC-Motors and 2 position sensors (0-20mA).

How can I regulate to the integer value 22318 for example.

Now I do that with compare functions and a dead band for stopping at a certain point.

Is there a better way to regulate ?
 
Hello Combo;
If you are using the word "regulate", I presume you would want to maintain your DC motors at a setpoint of speed, for example. I would look into a PID function.
What CPU are you using?
A s7-200 has a PID wizard that will allow you to "fill in the blanks" and build code for the regulation blocs.
A S7-300/400 has FB41 "Cont_C" available, very powerful and flexible, but it requires a little study. There are many posts on this forum on this subject, look at them first, then come back to us for more questions.
Hope this helps,
Daniel Chartier
 
Pid Block

Hey,

I've seen the PID block FB41 before. But never used it. I allready did a project with the same problem, operators set a value from 0 to 100% on a Panel, 100% = 27648 Integer. So The motors also had a constant speed and I also controlled the motors with just start/stop.

I didn't use the FB41 back then, I wrote something myself. A Smooth of the analogue measured value to make the signal less unstable, and compares with a dead band. The stop was with a off delay, so the stop signal came a bit to soon, but the off delay made it stop in the right position. AFter the stop, the system may not regulate, it is just going into position and done.
So this worked, but, to complex.

I'll try FB41; it's a good idea. The Deadband and Smooth isn't needed then I think, btw, anyone used the smooth in the hardware ? Works fine ?
 

Similar Topics

Hi, i have made a PLC programing for a CO2 cooling system, i just cant get the valves for the gas cooler to work right. first of im using...
Replies
9
Views
615
Hi, I'm no expert in PID regulating so I need some advise. I have a VFD controlled deepwaterpump that is maintaining the pressure in a closed...
Replies
24
Views
11,901
Hi, I am using the GX developer for a Q series CPU first time. We added a new temperature regulating module Q64TCRTN in expansion rack. In main...
Replies
1
Views
1,918
Hello, we are a group of students doing a school project, who stumbled upon a problem with regulation. We have to automatize the part of the...
Replies
19
Views
4,263
Hi.. I want to know something about Pressure Reducing valves & pressure regulating valves. I understand their purpose. But wanted to know whether...
Replies
4
Views
1,555
Back
Top Bottom