modelSmoothThooth

Smooth thooth Set point generator

Extends from Interfaces.RealNinOperation (Real comparison interface).

Information

Description

Model of a smooth thooth signal.



The output ( y ) remains at its initial value yin until time is equal to ts.
Then the signal changes smoothly. After the smoth start the signal grows up linearly with a slope m. When the output signal is close to the final value yfin, it is reached smoothly.
At time td the signal returns at its initial value in a specular way.
The parameter alfa (that has to be coprises between 0 and 1), indicates the portion of the rising time occupied by the smooth junction.
In figure are compared two models that have respectively alfa = 0.1 and alfa = 0.4.


Fixed Point not available in this model

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.TimeTs (from RealNinOperation)0.1sampling time
IntegernInput (from RealNinOperation)1number of inputs
BooleanuseInputs (from RealNinOperation)true=true, if inputs are enabled
Fixed Point
BooleanFixedPoint (from RealNinOperation)falseUse fixed point real numbers
IntegerNbit (from RealNinOperation)16 Number of bits for representing the real numbers
RealscaleFactor (from RealNinOperation)1Scale factor for Fixed Point numbers
IntegerMAX (from RealNinOperation)integer(2^(Nbit - 1))maximum number that can be represented with Fixed Point notation
IntegerMIN (from RealNinOperation)-integer(2^(Nbit - 1)) + 1minimum number that can be represented with Fixed Point notation
Smooth step
Realts10Initial rising time
Realtd29Initial falling time
Realalfa0.1Portion of time for parabolic junctions
Realyin0Output initial value
Realyfin1Output final value
Realm0.1Slope of the ramp

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInput[nInput]u (from RealNinOperation)input vector
Modelica.Blocks.Interfaces.RealOutputy (from RealNinOperation)output

Components

TypeNameDefaultDescription
Integer[nInput]Ufp (from RealNinOperation)floating point converted input
IntegerYfp (from RealNinOperation)floating point converted output

Revisions

Industrial Control Systems (v 1.0.0) : April-May 2012
List of revisions:

  • 11 May 2012 (author: Marco Bonvini)

Main Authors:
Marco Bonvini; <bonvini@elet.polimi.it>
Alberto Leva <leva@elet.polimi.it>
Politecnico di Milano
Dipartimento di Elettronica e Informazione
Via Ponzio 34/5
20133 Milano - ITALIA -
Copyright:
Copyright © 2010-2012, Marco Bonvini and Alberto Leva.
The IndustrialControlSystems package is free software; it can be redistributed and/or modified under the terms of the Modelica license.