Differences
This shows you the differences between two versions of the page.
en:software:qview:qview_6:qcl_library:da11ramp [2017/02/07 16:27] – created qem103 | en:software:qview:qview_6:qcl_library:da11ramp [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== DA11Ramp ====== | ||
+ | |||
+ | **D = **// | ||
+ | |||
+ | **A = **//Action functions// | ||
+ | |||
+ | The purpose of the DA11Ramp function __is to build a ramp with an input set-point and acceleration and deceleration parameters__.\\ | ||
+ | This function can be used in the setting of speed without using a device. | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **DA11Ramp (Setpoint, Acceleration, | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | GLOBAL | ||
+ | | IN | GLOBAL | ||
+ | | IN | GLOBAL | ||
+ | | IN | GLOBAL | ||
+ | | OUT | GLOBAL | ||
+ | | OUT | GLOBAL | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | Adjustin output bringing the value of 1000, starting from 0, with ramp of 10 seconds. | ||
+ | |||
+ | <code QCL> | ||
+ | IF Start | ||
+ | Setvel = 1000 | ||
+ | Acc = 100 | ||
+ | Dec = 100 | ||
+ | Run = 1 | ||
+ | ENDIF | ||
+ | DA11Ramp (Setvel, Acc, Dec, Run, Outvel, State) | ||
+ | </ | ||
+ | |||
+ | === Operation notes === | ||
+ | |||
+ | *The function manages the setpoint changes and the acceleration and deceleration time changes "on the fly". | ||
+ | *If the value of acceleration or deceleration is/or becomes 0 (ZERO), the value of the control output remains unchanged. For example, is used to stop a ramp to take it up. | ||
+ | *Upgrading of the adjustment output occurs at each call of the function, so the higher the time between two calls (cycle task) and the higher the relative vector. | ||