SlewRateLimiterDemonstrate usage of Nonlinear.SlewRateLimiter |
This information is part of the Modelica Standard Library maintained by the Modelica Association.
This example demonstrates how to use the Nonlinear.SlewRateLimiter block to limit a position step with regards to velocity and acceleration:
positionStep
demands an unphysical position step.limit_v
limits velocity.v
calculates velocity from the smoothed position signal.limit_a
limits acceleration of the smoothed velocity signal.a
calculates acceleration from the smoothed velocity signal.positionSmoothed
calculates smoothed position from the smoothed velocity signal.A position controlled drive with limited velocity and limited acceleration (i.e. torque) is able to follow the smoothed reference position.
vMax |
Value: 2 Type: Velocity (m/s) Description: Max. velocity |
---|---|
aMax |
Value: 20 Type: Acceleration (m/s²) Description: Max. acceleration |
positionStep |
Type: Step |
|
---|---|---|
limit_v |
Type: SlewRateLimiter |
|
v |
Type: Der |
|
limit_a |
Type: SlewRateLimiter |
|
positionSmoothed |
Type: Integrator |
|
a |
Type: Der |