Soft ramp

MrQ

Member
Join Date
Feb 2005
Posts
236
Hello,

I am programming RS Logix5000 for compact logix.

Looking for a function to do a soft ramp. I have a input value that I want to ramp but at the begining and end of the ramp I want a soft curve shaped ramp.

Can not find anything in AB standard. Any ideas or AOIs?
 
the SLC-500 platform has an RMP (Ramp) instruction ... that doesn't directly help you much working in CompactLogix – but the SLC book has some equations that might be helpful if you need to write your own function ...

see the RMP Instruction starting on Page 4-20 ... the equations are on the next few pages ...

http://literature.rockwellautomation.com/idc/groups/literature/documents/rm/1747-rm001_-en-p.pdf

suggestion: just in case you haven't considered it – it's usually very helpful to "graph" your functions by using the built-in Trend feature while you're programming something like this ...

good luck with your project ...
 
dude, don't you EVER sleep? ...

Are the AB ramps second order or third order.

as always, Peter, you're way over my head with the math ... here's an excerpt from the book I linked – showing the "acceleration" curve which I think MIGHT handle what the OP asked for ... I'm sure that there are "smoother" ways to write it – but for some systems this might be "close enough for government work" ...

.

ramp_curve.jpg
 
just for giggles I knocked out a quick demo in a CompactLogix ... the curve isn't as "round" as the book shows (I think they just fudged on their example) ...

I'm sure there's a way to calculate a smoother "take off" - but maybe this will be good enough ...

.

Ramp_Curve_Demo.jpg
 
This dude has been in China for almost 2 weeks. I am in a different time zone.
What MrQ describes is an s-curve. The acceleration should be 0 at the beginning and end of the ramp. That is not what your example shows. In the link the m0 and m1 constants are the accelerations at the beginning and end of the ramp. Usually these are zero for a smooth s-curve.
 
I added an extra multiplication by (Current_Time / Overall_Time) and the slightly smoother takeoff shown by the green curve resulted ...

.

Ramp_Curve_Demo_2.PNG
 
I'm still in America - and too excited about voting today to sleep ... I missed the part about the end of the ramp ... the book shows an S-Curve too ... let me piddle around with that and see what happens ...
 
and here's the formula that Tom posted - in blue - for comparison with the original formula from the SLC book that I linked - in yellow ...

this is has been fun - and I'm sure that I'll find a use for these examples somewhere along the way - but I've got to get back to work ...

.

Ramp_Curve_Demo_4.jpg
 

Similar Topics

Hello, I am looking for an example of using the Ramp / Soak Generator that is included in Direct Soft 5's PID. Could someone please help me. I...
Replies
1
Views
2,026
Hi all. I have a Modbus ProSoft module in my setup with a capability of 30 clients (0-29), which I'm trying to monitor the Ethernet Connection...
Replies
0
Views
57
Hello everybody, I'm currently working on a project where I need to implement an IoT platform based on Microsoft Azure Cloud. Communication is...
Replies
3
Views
113
Hi, We have an application that has a device that goes through a reboot (appears un-graceful) What then happens is the MVI module appears to hang...
Replies
0
Views
95
I am working on setting up a Prosoft Datalogger model PLX51-DLplus-232. This unit will be collecting data from a SLC 5/05 on the DB9 port set to...
Replies
3
Views
134
Back
Top Bottom