modelSlewRateLimiter

Demonstrate usage of Nonlinear.SlewRateLimiter

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This example demonstrates how to use the Nonlinear.SlewRateLimiter block to limit a position step with regards to velocity and acceleration:

  • The Sources.Step block positionStep demands an unphysical position step.
  • The first SlewRateLimiter block limit_v limits velocity.
  • The first Der block v calculates velocity from the smoothed position signal.
  • The second SlewRateLimiter block limit_a limits acceleration of the smoothed velocity signal.
  • The second Der block a calculates acceleration from the smoothed velocity signal.
  • The Integrator block 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.

Parameters

TypeNameDefaultDescription
SI.VelocityvMax2Max. velocity
SI.AccelerationaMax20Max. acceleration

Components

TypeNameDefaultDescription
SI.PositionspositionStep.yReference position
SI.PositionsSmoothedpositionSmoothed.ySmoothed position
SI.VelocityvLimitedlimit_a.yLimited velocity
SI.AccelerationaLimiteda.yLimited acceleration
Modelica.Blocks.Sources.SteppositionStep
Modelica.Blocks.Nonlinear.SlewRateLimiterlimit_v
Modelica.Blocks.Continuous.Derv
Modelica.Blocks.Nonlinear.SlewRateLimiterlimit_a
Modelica.Blocks.Continuous.IntegratorpositionSmoothed
Modelica.Blocks.Continuous.Dera