Jump to content

Recommended Posts

Good Morning, 

i'm having trouble controlling a proportional valve  i'm trying to use the accelerate function block but i'm not sure how to use it. 

i'm trying to make it rise from 0-20% after some seconds rise it to 80% and from that lower it to 80-0%

basically it's a ramp up-ramp down

could someone help??

 

or is their another method of how to control it??

Link to comment
Share on other sites

ok i managed to do it but starts by itself the ramp up -ramp down i'm putting some conditions so that i could control it until i press start but none of the conditions work .

 

is there a specific way of controlling it??

thanks.

linear.JPG

Link to comment
Share on other sites

  • MVP 2023

I'm always happy to help someone who's been trying and takes the time to show or post their work.

Your blocks look like they're backwards and you don't have the proper control register.  Remember that a Linear block makes a straight line that progresses from Y1 to Y2 as the input moves from X1 to X2.

Here's what I'm guessing you want, based on an analog output ranging from 0-4095 counts, some of the numbers in your blocks, and what you asked for in your first post:

20% = 819 counts

80% = 3276 counts

Analog output to valve in MI 5

1. Ramp 1: 0% -> 20% over seconds preset stored in ML 0

2. Wait for a while - stored in ML 1

3. Ramp 2: 20% -> 80% over seconds stored in ML 2

4. Ramp 3: 80% -> 0% over seconds stored in ML 3

I made a state machine that steps through this sequence.   The pointer is in MI 0.

Take a look at the attached program.  This was written in 9.8.64

Joe T.

Ramp valve example.vlp

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.