Article translated with the assistance of AI tools. Images and parts of the content will still be reviewed.
In this tutorial, you will understand how the RAMP_INT Block works.
1. DEVELOPMENT
First, it will be necessary to add the Útil library, as this is where the block is stored. Click on Library Manager or Library Manager >> Add library >> Application >> Common, scroll down the list until you see the word Útil, select it and click OK, or double-click it.
Add an empty Block on the line you want, in the question mark write RAMP_INT
Parameterize the block by clicking OK in the next window that appears.
RAMP_INT is used to limit the rate of ascent or descent of the function input.
The input consists of three INT values: IN (the function input), ASCEND and DESCEND (the maximum increase or decrease per a given time interval, defined by TIMEBASE of type TIME). Setting RESET to TRUE causes RAMP_INT to be initialized
The output OUT of type INT contains the value of the function limited in ascent and descent.
It should be noted that problems may occur if the value defined for TIMEBASE is less than the duration of a cycle.
When TIMEBASE is set to t#0s, ASCEND and DESCEND are not related to the time interval and remain the same.
2. CONCLUSION
ASCEND and DESCEN >> INT;
OUT >> INT;
TIMEBASE >> type TIME;
The output will assume the value of the IN input, decrementing or incrementing the value entered in the DESCEN or ASCEND variables, respectively. Within the determined time.
Like an acceleration ramp.
3. VIDEO
Comments
0 comments
Please sign in to leave a comment.