.IndustrialControlSystems.Logical.Counter.Functions.count

Information

Function logic of a simple counter

Interface

function count
  input Integer val "Current value of counter";
  input Integer preset_val "Preset value";
  input Boolean S "Set signal at time t";
  input Boolean S_old "Set signal at time t-1";
  input Boolean CU "CountUp signal at time t";
  input Boolean CU_old "CountUp signal at time t-1";
  input Boolean CD "CountDown signal at time t";
  input Boolean CD_old "CountDown signal at time t-1";
  input Boolean R "Reset signal at time t";
  input Integer Max "module of the counter";
  output Integer NVal "Current up to date value of the counter ";
  output Boolean Q "Output logic value";
end count;

Revisions

First release of the Industrial Control Systems: April-May 2012
List of revisions:

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".

Generated at 2024-05-09T18:15:57Z by OpenModelicaOpenModelica 1.22.4 using GenerateDoc.mos