Skip to content

Commit

Permalink
Version 2.0.0, converted to MSL 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
casella committed Aug 7, 2024
1 parent bd263e7 commit 80116f7
Show file tree
Hide file tree
Showing 14 changed files with 34 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
within IndustrialControlSystems.Applications.ProcessControl;
model CascadeLevelControl "Cascade level control with PI controllers"
extends Modelica.Icons.Example;
import Modelica.SIunits.*;
import Modelica.Units.SI.*;
parameter Length PipeL = 1 "Pipe length"
annotation(Dialog(group = "Process"));
parameter Length PipeD = 0.0254 "Pipe diameter"
Expand Down Expand Up @@ -158,8 +158,8 @@ model CascadeLevelControl "Cascade level control with PI controllers"
Kp=Kp_v,
Ti=Ti_v)
annotation (Placement(transformation(extent={{-44,-36},{-24,-16}})));
Modelica.Fluid.Sensors.MassFlowRate flowRateSensor(redeclare package Medium
= Modelica.Media.Water.ConstantPropertyLiquidWater)
Modelica.Fluid.Sensors.MassFlowRate flowRateSensor(redeclare package Medium =
Modelica.Media.Water.ConstantPropertyLiquidWater)
annotation (Placement(transformation(extent={{-10,-10},{10,10}},
rotation=0,
origin={98,-58})));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
within IndustrialControlSystems.Applications.ProcessControl;
model LevelControl "Level control with a PI controller"
extends Modelica.Icons.Example;
import Modelica.SIunits.*;
import Modelica.Units.SI.*;
parameter Length PipeL = 1 "Pipe length"
annotation(Dialog(group = "Process"));
parameter Length PipeD = 0.0254 "Pipe diameter"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ model TestTrackingP "Tracking test mode for P block"
IndustrialControlSystems.Controllers.Blocks.P P "proportional controller"
annotation (Placement(transformation(extent={{-60,60},{-40,
80}}, rotation=0)));
Modelica.Blocks.Sources.Sine Input(amplitude=2, freqHz=1)
annotation (Placement(transformation(extent={{-100,60},{-80,80}},
rotation=0)));
Modelica.Blocks.Sources.Sine Input(amplitude=2, f=1) annotation (Placement(
transformation(extent={{-100,60},{-80,80}}, rotation=0)));
IndustrialControlSystems.Controllers.Blocks.P Ptr(useTS=true)
"proportional controller with tracking mode"
annotation (Placement(transformation(extent={{-60,-80},{
Expand Down
4 changes: 2 additions & 2 deletions IndustrialControlSystems/Controllers/Interfaces/Controller.mo
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ partial model Controller "Partial interface for a generic controller"
"Discretisation method"
annotation(Evaluate = true, Dialog(group = "Discretisation"));
parameter Boolean AntiWindup = false
"Flag that enables the antiwindup feature"
"Flag that enables the antiwindup feature"
annotation(Evaluate = true, Dialog(group = "Saturation"));
parameter Real CSmin = 0 "minimum value of the CS"
parameter Real CSmin = 0 "minimum value of the CS"
annotation(Evaluate = true, Dialog(group = "Saturation"));
parameter Real CSmax = 1 "maximum value of the CS"
annotation(Evaluate = true, Dialog(group = "Saturation"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ within IndustrialControlSystems.Controllers.Logic.Examples;
model TestRelay "Test of relay controllers"
extends Modelica.Icons.Example;

Modelica.Blocks.Sources.Sine Input(freqHz=1, amplitude=1)
annotation (Placement(transformation(extent={{-100,60},{-80,80}},
rotation=0)));
Modelica.Blocks.Sources.Sine Input(f=1, amplitude=1) annotation (Placement(
transformation(extent={{-100,60},{-80,80}}, rotation=0)));
IndustrialControlSystems.Controllers.Logic.RelayHysteresis Rhyst_DIGITAL(
initState=false,
ThL=-0.5,
Expand Down
2 changes: 1 addition & 1 deletion IndustrialControlSystems/Controllers/package.mo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
within IndustrialControlSystems;
within IndustrialControlSystems;
package Controllers "Industrial controllers"
extends Modelica.Icons.Package;

Expand Down
3 changes: 1 addition & 2 deletions IndustrialControlSystems/LinearSystems/Examples/testDelay.mo
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ model testDelay
amplitude=2,
offset=2,
startTime=2,
freqHz=0.2)
annotation (Placement(transformation(extent={{-100,-10},{-80,10}})));
f=0.2) annotation (Placement(transformation(extent={{-100,-10},{-80,10}})));
IndustrialControlSystems.LinearSystems.Continuous.Delay delay
annotation (Placement(transformation(extent={{-40,40},{-16,62}})));
IndustrialControlSystems.LinearSystems.Discrete.MultiStepsDelay multiStepsDelay(Ts=0.1, N=
Expand Down
2 changes: 1 addition & 1 deletion IndustrialControlSystems/LinearSystems/package.mo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
within IndustrialControlSystems;
within IndustrialControlSystems;
package LinearSystems "Linear systems blocks"
extends Modelica.Icons.Package;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ model TestComparison
annotation(Dialog(group = "Real numbers"));
RealType.Equal equal(Ts=Ts, eps=eps)
annotation (Placement(transformation(extent={{-40,40},{-20,60}})));
Modelica.Blocks.Sources.Sine sine(amplitude=1, freqHz=1)
Modelica.Blocks.Sources.Sine sine(amplitude=1, f=1)
annotation (Placement(transformation(extent={{-100,60},{-80,80}})));
Modelica.Blocks.Sources.Sine cosine(
amplitude=1,
freqHz=1,
f=1,
phase=1.5707963267949)
annotation (Placement(transformation(extent={{-100,20},{-80,40}})));
RealType.Less less(Ts=Ts, eps=eps)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ model countZeroCrossing "test model of the counter"
Modelica.Blocks.Sources.BooleanTable reset(startValue=false, table={15})
annotation (Placement(
transformation(extent={{-100,-50},{-80,-30}})));
Modelica.Blocks.Sources.Sine sine(amplitude=1, freqHz=1)
Modelica.Blocks.Sources.Sine sine(amplitude=1, f=1)
annotation (Placement(transformation(extent={{-100,70},{-80,90}})));
Comparisons.RealType.Equal
equal(Ts=0.01, eps=0.005)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ model Expression "User defined real function"
"String that represent the name of the implemented function";
replaceable function g =
IndustrialControlSystems.MathOperations.RealType.Functions.GeneralReScalingFunction
"Output re-scaling function"
annotation (
Dialog(group = "Fixed Point"),
Documentation(
"Output re-scaling function" annotation (
Dialog(group = "Fixed Point"),
Documentation(
revisions="<html>
<dl><dt>Industrial Control Systems (v 1.0.0) : April-May 2012</dt>
<dl><dt>List of revisions:</dt>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
within IndustrialControlSystems.MathOperations.RealType.Interfaces;
partial model RealNinOperation "Real comparison interface"
parameter Modelica.SIunits.Time Ts = 0.1 "sampling time" annotation(Evaluate=true);
parameter Modelica.Units.SI.Time Ts=0.1 "sampling time"
annotation (Evaluate=true);
parameter Integer nInput = 1 "number of inputs" annotation(Evaluate=true);
parameter Boolean useInputs = true "=true, if inputs are enabled"
annotation(Evaluate=true, HideResult=true, choices(checkBox=true));
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Generated by conversion of IndustrialControlSystems
convertElement("IndustrialControlSystems.Logical.Comparisons.Examples.TestComparison","cosine.freqHz","cosine.f");
convertElement("IndustrialControlSystems.Logical.Comparisons.Examples.TestComparison","sine.freqHz","sine.f");
convertElement("IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing","sine.freqHz","sine.f");
convertElement("IndustrialControlSystems.LinearSystems.Examples.testDelay","signal.freqHz","signal.f");
convertElement("IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP","Input.freqHz","Input.f");
convertElement("IndustrialControlSystems.Controllers.Logic.Examples.TestRelay","Input.freqHz","Input.f");
convertElement("IndustrialControlSystems.Applications.ProcessControl.VelocityDriveControl_AutoTuning","M1.quasiStationary","M1.quasiStatic");
8 changes: 5 additions & 3 deletions IndustrialControlSystems/package.mo
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ package IndustrialControlSystems "Modelica Industrial Control Systems Library"
</p>
</html>"),
uses(Modelica(version="3.2.3")),
version="1.2.0",
conversion(noneFromVersion="1.1.0"));
uses(Modelica(version="4.0.0")),
version="2.0.0",
conversion(from(
version={"1.2.0","1.1.0"},
script="modelica://IndustrialControlSystems/Resources/Conversion/ConvertFromIndustrialControlSystems_1.2.0.mos")));
end IndustrialControlSystems;

0 comments on commit 80116f7

Please sign in to comment.