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

  • 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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...