modelFlipFlopSR

Model of a Set-reset Flip Flop

Extends from Interfaces.LogicalBlock2x2 (partial interface of a generic 2x2 logical block).

Information

Description

Model of a Set Reset Flip Flop.

The inputs and outputs follows

NameDescription
u1Set
u2Reset
y1Q
y2not Q

Behaviour of the FlipFlop, at each time step Ts the inputs are read and the new output Q
is computed starting from the S and R value as well the old value of the output QOLD.

SetResetQ
00QOLD
010
101
11 not QOLD

Parameters

TypeNameDefaultDescription
RealTs (from LogicalBlock2x2)0.1sampling time
Booleanq_startfalseOutput initial value

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanInputu1 (from LogicalBlock2x2)input
Modelica.Blocks.Interfaces.BooleanOutputy1 (from LogicalBlock2x2)output
Modelica.Blocks.Interfaces.BooleanInputu2 (from LogicalBlock2x2)input
Modelica.Blocks.Interfaces.BooleanOutputy2 (from LogicalBlock2x2)output

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