modelRelayHysteresis

Relay with hysteresis

Extends from IndustrialControlSystems.Controllers.Interfaces.BaseBlock (partial interface for a continuous time control block).

Information

Description

On-Off relay with hysteresis controller.

            1 if u(t) >= ThH and y(t) == 0
   y(t)  = 
            0 if u(t) < ThL  and y(t) == 1
  

Characteristic



If the sampling time parameter Ts is less or equal to zero, ( Ts <= 0 ) The continuous time vesion is used, otherwise the discrete time one.

Parameters

TypeNameDefaultDescription
RealYmax1maximum output value
RealYmin0minimum output value
RealThL0input treshold (low) value
RealThH0input treshold (high) value
BooleaninitStatefalseinitial state
Discretisation
RealTs (from BaseBlock)0Sampling time (if <= 0 continuous time)

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputu (from BaseBlock)input
Modelica.Blocks.Interfaces.RealOutputy (from BaseBlock)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.