blockTrimAndRespond

Trim and respond logic

Extends from Modelica.Blocks.Interfaces.DiscreteSISO (Single Input Single Output discrete control block).

Information

This model implements the trim and respond logic. The model samples the outputs of actuators every tSam. The control sequence is as follows:

  • If u ≥ 0, then y = y + nActInc,
  • If u < 0, then y = y - yDec.

Parameters

TypeNameDefaultDescription
SI.TimesamplePeriod (from DiscreteBlock)Sample period of component
SI.TimestartTime (from DiscreteBlock)0First sample time instant
RealuTriValue to triggering the request for actuator
RealyEqu0y setpoint when equipment starts
RealyDecy decrement (must be negative)
RealyIncy increment (must be positive)

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputu (from DiscreteSISO)Connector of Real input signal
Modelica.Blocks.Interfaces.RealOutputy (from DiscreteSISO)Connector of Real output signal

Components

TypeNameDefaultDescription
Modelica.Blocks.Logical.GreaterEqualThresholdincYOutputs true if y needs to be increased
Modelica.Blocks.Logical.Switchswi
SamplersamSampler
Modelica.Blocks.Sources.ConstantconYDecy decrease
Modelica.Blocks.Sources.ConstantconYIncy increase
UnitDelayuniDel1
Modelica.Blocks.Math.Addadd
Modelica.Blocks.Nonlinear.LimiterlimState limiter

Contents

NameDescription
UnitDelayprotected
Samplerprotected

Revisions

  • September 24, 2015 by Michael Wetter:
    Implemented UnitDelay and Sampler to avoid a translation warning because these blocks do not set the fixed attribute of firstTrigger in MSL 3.2.1.
  • December 5, 2012, by Michael Wetter:
    Simplified implementation.
  • September 21, 2012, by Wangda Zuo:
    Deleted the status input that was not needed for new control.
  • July 20, 2011, by Wangda Zuo:
    Added comments, redefine variable names, and merged to library.
  • January 6 2011, by Michael Wetter and Wangda Zuo:
    First implementation.