MPS block

Requirements.Examples.BackupPowerSupply.Components.MPS  ยท source

Icon of MPS

Requirements for Main Power Supply (MPS) defined in graphical form

Extends Requirements.Interfaces.PartialEnvironment

Requirements for the Main Power Supply (MPS) of the EDF Backup Power Supply benchmark, defined in graphical form. The FORM-L formulation of the benchmark is kept as a comment in the class. The block extends PartialEnvironment.

Inputs: the voltage MPSVoltage (V), and the Boolean status signals On and Available of the MPS. Outputs: the events eLoss (rising edge of not Available) and eRestore (rising edge of Available).

Requirements (Set 1, voltage and On/Off):

  • R1: MPS CAN be declared Off when the voltage gets below 170 V (WhenRising: Off at the instant the voltage falls below 170 V).
  • R2: MPS MUST be declared Off when the voltage gets below 160 V (During: Off while the voltage is below 160 V).
  • R3: MPS CAN be declared On again when the voltage gets above 200 V (WhenRising).
  • R4: MPS MUST be declared On again when the voltage gets above 210 V (During).

Requirements (Set 2, availability):

  • R5: MPS CAN be declared Unavailable when it has been Off for more than 4 consecutive seconds (DelayedRising) or for more than 4 accumulated seconds during any 10 s window (MinAccumulatedDuration2).
  • R6: the same with 6 s: then MPS MUST be declared Unavailable.
  • R7: MPS CAN be declared Available again when On for more than 8 consecutive seconds (checked at the instant Available becomes true).
  • R8: MPS MUST be declared Available again when On for more than 10 consecutive seconds.

The block is used in MainPowerSupplyRequirements, which drives its inputs with tables.

Components and variables

NameTypeDescription
MPSVoltageModelica.Blocks.Interfaces.RealInputVoltage of MPS
OnModelica.Blocks.Interfaces.BooleanInput= true, if MPS is on
AvailableModelica.Blocks.Interfaces.BooleanInput= true, if MPS is available
eLossRequirements.Interfaces.EventOutputSignals that the MPS has transited from available to unavailable
eRestoreRequirements.Interfaces.EventOutputSignals that the MPS has transited from unavailable to available
OffModelica.Blocks.MathBoolean.Not= true, if MPS is not on
R1Verify.RequirementRequirement R1: Off is true when the voltage falls below 170 V
R2Verify.RequirementRequirement R2: Off is true while the voltage is below 160 V
R3Verify.RequirementRequirement R3: On is true when the voltage rises above 200 V
R4Verify.RequirementRequirement R4: On is true while the voltage is above 210 V
UnavailableModelica.Blocks.MathBoolean.Not= true, if MPS is not available
duringAny1LogicalBlocks.DelayedRising= true, when MPS has been Off for more than 4 consecutive seconds
duringAcc1ChecksInSlidingWindow.MinAccumulatedDuration2= true, when MPS has been Off for more than 4 accumulated seconds during any 10 seconds time window
or1Modelica.Blocks.Logical.Or= true, when MPS has been Off for more than 4 consecutive or 4 accumulated seconds in a 10 s window
R5Verify.RequirementRequirement R5: Unavailable is true when the 4 s Off condition becomes true
duringAny2LogicalBlocks.DelayedRising= true, when MPS has been Off for more than 6 consecutive seconds
duringAcc2ChecksInSlidingWindow.MinAccumulatedDuration2= true, when MPS has been Off for more than 6 accumulated seconds during any 10 seconds time window
or2Modelica.Blocks.Logical.Or= true, when MPS has been Off for more than 6 consecutive or 6 accumulated seconds in a 10 s window
during3ChecksInFixedWindow.DuringChecks that Unavailable is true while the 6 s Off condition holds
R6Verify.RequirementRequirement R6: Unavailable is true while the 6 s Off condition holds
duringAny3LogicalBlocks.DelayedRising= true, when MPS has been On for more than 8 consecutive seconds
R7Verify.RequirementRequirement R7: when MPS becomes Available, it has been On for more than 8 consecutive seconds
duringAny4LogicalBlocks.DelayedRising= true, when MPS has been On for more than 10 consecutive seconds
during4ChecksInFixedWindow.DuringChecks that Available is true while MPS has been On for more than 10 consecutive seconds
R8Verify.RequirementRequirement R8: Available is true while MPS has been On for more than 10 consecutive seconds
edge1Modelica.Blocks.Logical.EdgeRising edge of Unavailable (loss of availability)
edge2Modelica.Blocks.Logical.EdgeRising edge of Available (restoration of availability)
whenRising1ChecksInFixedWindow.WhenRisingChecks that Off is true when the voltage falls below 170 V
expr1Sources.BooleanExpression= true, if the voltage is below 170 V
during1ChecksInFixedWindow.DuringChecks that Off is true while the voltage is below 160 V
expr2Sources.BooleanExpression= true, if the voltage is below 160 V
whenRising2ChecksInFixedWindow.WhenRisingChecks that On is true when the voltage rises above 200 V
expr3Sources.BooleanExpression= true, if the voltage is above 200 V
during2ChecksInFixedWindow.DuringChecks that On is true while the voltage is above 210 V
expr4Sources.BooleanExpression= true, if the voltage is above 210 V
whenRising3ChecksInFixedWindow.WhenRisingChecks that Unavailable is true when the 4 s Off condition becomes true
whenRising4ChecksInFixedWindow.WhenRisingChecks that MPS has been On for more than 8 s when it becomes Available