1 | model Connections_
|
---|
2 | Modelica.Icons.SignalBus signalBus1 annotation (
|
---|
3 | Placement(visible = true, transformation(origin = {-42, 72}, extent = {{-20, -20}, {20, 20}}, rotation = 0), iconTransformation(origin = {-42, 72}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));
|
---|
4 | Modelica.Icons.SignalBus signalBus2 annotation (
|
---|
5 | Placement(visible = true, transformation(origin = {38, 62}, extent = {{-20, -20}, {20, 20}}, rotation = 0), iconTransformation(origin = {38, 62}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));
|
---|
6 | Modelica.Blocks.Sources.Step step1 annotation (
|
---|
7 | Placement(visible = true, transformation(origin = {-50, -56}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
|
---|
8 | Modelica.Blocks.Continuous.Integrator integrator1 annotation (
|
---|
9 | Placement(visible = true, transformation(origin = {32, -66}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
|
---|
10 | Modelica.Icons.SignalBus signalBus3 annotation (
|
---|
11 | Placement(visible = true, transformation(origin = {-38, 18}, extent = {{-20, -20}, {20, 20}}, rotation = 0), iconTransformation(origin = {-38, 18}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));
|
---|
12 | Modelica.Icons.SignalBus signalBus4 annotation (
|
---|
13 | Placement(visible = true, transformation(origin = {40, 20}, extent = {{-20, -20}, {20, 20}}, rotation = 0), iconTransformation(origin = {40, 20}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));
|
---|
14 | Modelica.Blocks.Sources.Step step2 annotation (
|
---|
15 | Placement(visible = true, transformation(origin = {-42, -20}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
|
---|
16 | Modelica.Blocks.Continuous.Integrator integrator2 annotation (
|
---|
17 | Placement(visible = true, transformation(origin = {36, -20}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
|
---|
18 | equation
|
---|
19 | connect(step1.y, integrator1.u) annotation (
|
---|
20 | Line(points={{-39,-56},{-11,-56},{-11,-66},{20,-66}}, color = {0, 0, 127}));
|
---|
21 | connect(step2.y, integrator2.u) annotation (
|
---|
22 | Line(points={{-31,-20},{24,-20},{24,-20},{24,-20}}, color = {0, 0, 127}));
|
---|
23 | connect(signalBus3, signalBus4) annotation (
|
---|
24 | Line(points = {{-38, 18}, {40, 18}, {40, 20}, {40, 20}}, color = {255, 204, 51}, thickness = 0.5));
|
---|
25 | connect(signalBus1, signalBus2) annotation (
|
---|
26 | Line(points={{-42,72},{-4,72},{-4,62},{38,62}}, color = {255, 204, 51}, thickness = 0.5));
|
---|
27 | annotation (
|
---|
28 | uses(Modelica(version = "3.2.2")));
|
---|
29 | end Connections_;
|
---|