2/18/2014 3:03 PM | |
Joined: 8/27/2010 Last visit: 4/13/2024 Posts: 417 Rating: (37) |
Hello everyone! If there is an example of ramp function for setpoint in Step7? I found similartopicbut it is suitable for TIA only. Thanks in advance. |
2/18/2014 3:08 PM | |
Joined: 4/22/2010 Last visit: 5/3/2024 Posts: 5697 Rating: (714)
|
Hello, Maybe this helps : With STEP 7, how can you control servovalves, frequency converters or current converters via a ramp-function generator? Regards, Marcjan |
Problem solved? |
|
This contribution was helpful to3 thankful Users |
2/18/2014 3:49 PM | |
Joined: 8/27/2010 Last visit: 4/13/2024 Posts: 417 Rating: (37) |
Even more advanced that in my example. Thanks a lot!
|
This contribution was helpful to1 thankful Users |
2/18/2014 5:29 PM | |
Joined: 1/28/2009 Last visit: 5/20/2024 Posts: 6840 Rating: (1359)
|
Hello, For a simple application, I suggest the following function and more discussions HERE. FUNCTION_BLOCK FB67 TITLE ='rate limiter' AUTHOR : hdhosseini VERSION : '1.0' // Block Parameters VAR_INPUT // Input Parameters input:REAL; rst:BOOL:=false; step:REAL:=0.1; //100ms call factor:REAL:=1.0; high:REAL:=100; low:REAL:=0; END_VAR VAR_IN_OUT // I/O Parameters first:BOOL:=true; END_VAR VAR_OUTPUT // Output Parameters out:REAL; END_VAR VAR_TEMP // Temporary Variables END_VAR VAR // Static Variables buffer:REAL:=0; in:REAL; END_VAR // Statement Section IF rst=true THEN buffer:=0; //first:=true; out:=0; in:=0; ; ELSE IF first= true THEN buffer:=in; first:=false; END_IF; IF input >= high THEN in:=high; END_IF; IF input <= low THEN in:=low; END_IF; IF (input > low) AND (input<high) THEN in:=input; END_IF; IF in > (buffer+step) THEN buffer:= (buffer+(step* factor)); END_IF; IF in < (buffer-step) THEN buffer:= (buffer-(step*factor)); END_IF; IF in = buffer THEN buffer:=in; END_IF; ; out:= buffer; END_IF; ; END_FUNCTION_BLOCK I suggest searching for more available functions in Modular PID control optional package and I am sure you will find variety of the professional functions there. Best regards, Hamid Hosseini |
This contribution was helpful to4 thankful Users |
2/19/2014 3:12 PM | |
Joined: 6/24/2013 Last visit: 6/1/2024 Posts: 1608 Rating: (415) |
Hi A basic ramp function in LAD attached This should meet Your requirements. Also has possibility to bypass ramp generator and provision for move interlock to make a quick stop. In normal circumstances it tries to catch setpoint at pre-set slope rate. AttachmentFC500.pdf (696 Downloads) |
This contribution was helpful to1 thankful Users |
Follow us on