Incrementing a Set Point

Burch

Member
Join Date
Jun 2014
Location
Michigan
Posts
54
Good Morning,

I have a sort of easy problem that is driving me nuts.

I have an application where I'd like to take a set point, lets say it starts at 50. Ten seconds later, I want to increase it to 60, another ten seconds 70, and so on...

How can I get this done, seems so easy, and I'm stumped!

Thanks, Burch
 
Good Morning,

I have a sort of easy problem that is driving me nuts.

I have an application where I'd like to take a set point, lets say it starts at 50. Ten seconds later, I want to increase it to 60, another ten seconds 70, and so on...

How can I get this done, seems so easy, and I'm stumped!

Thanks, Burch

use a timer and a one shot....
 
You should use a non-retentive timer and make it self-resetting by programming a NC Timer bit as the timer trigger. Set the timer for 10 seconds, then every time it goes done, add 10 to your Setpoint using a 1-shot. You must set a upper limit and stop the ADD once you reach the maximum Setpoint.

This sounds like a ramping function for a heating application. 10 Points per 10 seconds (10 P/10 Sec.) also is the same as 1 point per second (1 P/Second), so you could use a 1-second self-resetting timer and Add 1 point each second. The end Setpoint will occur at the same time as the 10 P/10 Sec. method.

If you are changing the Setpoint of a PID instruction, then the 1P/Sec will give you a smoother upward curve for the Control Variable (with less oscillation).
 
Last edited:
From your other posts it looks like you are using AB products.

An easy way to do smooth linear ramping with a timer is to use an SCP instruction to "scale" the elapsed time to your setpoint range. The attached example will give you a smooth linear ramp from 0 to 100% in one minute.

tc08081401.jpg
 

Similar Topics

So, I get sent a heartbeat, an int that goes from 0-9 every second and then restarts, I need to detect if it stops after 3 secs. Any simple way...
Replies
11
Views
3,077
I'm sure this is an easy one for the experienced guys, how can I use an incrementing dint value to trigger a counter to count? It seems like it...
Replies
4
Views
3,169
Hello World, I am having difficulty incrementing a serial number that needs to start at 0, and go through Z. (After 9, comes A). The serial...
Replies
11
Views
1,847
Hi guys, Im about to add a new flowmeter which pulse every 0.1 cubic meter to my Micrologix 1400. I would like to increment of 0.1 everytime i...
Replies
13
Views
1,989
Hey everyone, I am hoping that i can get an answer on this matter... I have a micrologix 1100 hooked up to a signal conditioner (Omrga DMD-466-DC)...
Replies
4
Views
1,577
Back
Top Bottom