modelSmoothStepSignal
Extends from Interfaces.RealNinOperation (Real comparison interface).
Information
Description
Model of a smooth step signal.
The output ( y ) remains at its initial value yin
until the enabling input ENup remains false.
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.
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 this case alfa = 0.1, this indicates that each junction occupy the 10 % of the total rising time.
The additional parameter Delay = 1.5, indicates that the output has to be delayed by 1.5 seconds.
Fixed Point not available in this model
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Time | Ts (from RealNinOperation) | 0.1 | sampling time |
| Integer | nInput (from RealNinOperation) | 1 | number of inputs |
| Boolean | useInputs (from RealNinOperation) | true | =true, if inputs are enabled |
| Fixed Point | |||
| Boolean | FixedPoint (from RealNinOperation) | false | Use fixed point real numbers |
| Integer | Nbit (from RealNinOperation) | 16 | Number of bits for representing the real numbers |
| Real | scaleFactor (from RealNinOperation) | 1 | Scale factor for Fixed Point numbers |
| Integer | MAX (from RealNinOperation) | integer(2^(Nbit - 1)) | maximum number that can be represented with Fixed Point notation |
| Integer | MIN (from RealNinOperation) | -integer(2^(Nbit - 1)) + 1 | minimum number that can be represented with Fixed Point notation |
| Smooth step | |||
| Real | alfa | 0.1 | Portion of time for parabolic junctions |
| Real | yin | 0 | Output initial value |
| Real | yfin | 1 | Output final value |
| Real | m | 0.1 | Slope of the ramp |
| Real | tin | 10 | Initial time |
| Real | delay | 0 | Delay |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput[nInput] | u (from RealNinOperation) | input vector | |
| Modelica.Blocks.Interfaces.RealOutput | y (from RealNinOperation) | output | |
| Modelica.Blocks.Interfaces.BooleanInput | ENup |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Integer[nInput] | Ufp (from RealNinOperation) | floating point converted input | |
| Integer | Yfp (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.