Sign in to follow this  
Followers 0
AndrejP

Float Valve

7 posts in this topic

Hello.

I need to create project to manage FLOAT VALVE.

Let's say that RUNNING_Time of valve is 100 seconds.

Usually I would control the float valve in this way:
When I start or stop the regulation, the valve would be closing for 110% of RUNNING_Time (positioning).
When the positioning is done, I would start NORMAL_Operation.
In normal operation I would like to drive the valve based on time intervals.

If the valve is closed and the POSITION_Setpoint is 50%, I would set the DIGITAL_OUT_Open for 50 seconds.

If the POSITION_Setpoint then goes to 60%, I would set the DIGITAL_OUT_Open for 10 more seconds.
Does someone have this kind of sample written in CX-Programmer?
Thanks.

I have INPUT data for valve:

- POSITION_Setpoint (0-100%)

- RUNNING_Time  (120 sec)

I would like to have OUTPUTS:

- POSSITION_Current

- DIGITAL_OUT_Open

- DIGITAL_OUT_Close

Share this post


Link to post
Share on other sites

@AndrejP not sure how the CXProgrammer community folks are, but most programmers I know won't write code for free.  That said if you were to take a crack at programming it and post your work, you would "tons" of "free advice" on how to improve and make it better.  Give those helping you a place to start and show some initiative will get more responses.

1 person likes this

Share this post


Link to post
Share on other sites

@BobLfoot  

I have different experiences as you. The forums are usually meant to help users to solve their problems FOR FREE.

 

Share this post


Link to post
Share on other sites
4 hours ago, AndrejP said:

solve their problems FOR FREE.

Meh.  I help solve people's problems for free, in public, for two reasons:

  1. I like to.
  2. It is good for my professional reputation.

Both reasons have constraints on the time I may put in.  Questioners who put it some effort to help me help them will get more attention.

Share this post


Link to post
Share on other sites

Writing code in CX programmer is very much dependant on the model PLC you are using. some plc's have more or less fuctions.

i have code for digital open and close and with a current feed back . but. Im using a Mad 42 analoge card for de scaling .

this is why code can be dependent on the type of card you are using 

 

luchtklep.jpg

vocht_meting.jpg

Edited by mike_cheesehead

Share this post


Link to post
Share on other sites
On 5/30/2023 at 4:10 AM, AndrejP said:

@BobLfoot  

I have different experiences as you. The forums are usually meant to help users to solve their problems FOR FREE.

 

I am glad to help people.  I will not just do it for them, particularly if they get an attitude.

Share this post


Link to post
Share on other sites
On 5/30/2023 at 4:10 AM, AndrejP said:

@BobLfoot  

I have different experiences as you. The forums are usually meant to help users to solve their problems FOR FREE.

 

Help with problems, not do your engineering and write your program for you. You didn't mention a problem, you asked someone to write a program...  If you have a question about your code, show us your work and we can assist.  But system integration costs money.

Best of luck.

Share this post


Link to post
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
Sign in to follow this  
Followers 0