PLUS+1 User Forum

PLUS+1 Software => Code sharing => Topic started by: MimmoA on October 18, 2013, 12:12:27 PM

Title: Stop piston in a wanted position
Post by: MimmoA on October 18, 2013, 12:12:27 PM
Hello everybody,
I have a PVED_CC connected to a cylinder where there also is a position sensor, I want to command the piston with a display.
Now, when i insert a position va lue the piston goes at that value but it oscillates around that value going over and back. I've supposed that happens becouse my PVED_CC valves is full opened ,maybe I should start closing it before of my stop value (SoftRamp Function ???).
Am I right? How could I do it?
Is there othere solution too??
Thank you so much in advance.
Regards
Mimmo
Title: Re: Stop piston in a wanted position
Post by: tommyqvist on October 18, 2013, 08:15:02 PM
Connect the position sensor input to a PID function block as the PV. Use a Softramp to ramp the position as a set point to the PID. Start by trimming P. Let the PID output control the PVED CC.