modelBaseCounter

Partial interface of a generic counter

Parameters

TypeNameDefaultDescription
RealTs0.01Sampling time [s]
IntegerMax999module of counter

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanInputCUCount Up: The counter is incremented by 1 if the signal state changes from 0 to 1
Modelica.Blocks.Interfaces.BooleanInputCDCount Down: The counter is decremented by 1 if the signal state changes from 0 to 1
Modelica.Blocks.Interfaces.BooleanInputSset: Sets the counter with the value at the Preset Value (PV)
Modelica.Blocks.Interfaces.BooleanInputRreset: Sets the counter whit the value 0, and stop the counting
Modelica.Blocks.Interfaces.IntegerInputPVPreset Value
Modelica.Blocks.Interfaces.IntegerOutputCVCurrent Value
Modelica.Blocks.Interfaces.BooleanOutputQstatus of the counter (1: counting, 0: not counting)

Revisions

First release of the Industrial Control Systems: 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, see the license conditions and the accompanying disclaimer in the documentation of package Modelica in file "Modelica/package.mo".