model Sistema_MKC_Blocos Modelica.Blocks.Continuous.Integrator integrator1 annotation( Placement(visible = true, transformation(origin = {28, 20}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); Modelica.Blocks.Continuous.Integrator integrator2 annotation( Placement(visible = true, transformation(origin = {70, 20}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); Modelica.Blocks.Math.Gain gain1(k = 10) annotation( Placement(visible = true, transformation(origin = {-50, 20}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); Modelica.Blocks.Math.Gain gain2(k = 50 / 10) annotation( Placement(visible = true, transformation(origin = {30, -20}, extent = {{10, -10}, {-10, 10}}, rotation = 0))); Modelica.Blocks.Math.Gain gain3(k = 1000 / 10) annotation( Placement(visible = true, transformation(origin = {30, -60}, extent = {{10, -10}, {-10, 10}}, rotation = 0))); Modelica.Blocks.Math.Feedback feedback1 annotation( Placement(visible = true, transformation(origin = {-18, 20}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); Modelica.Blocks.Math.Add add1 annotation( Placement(visible = true, transformation(origin = {0, -40}, extent = {{10, -10}, {-10, 10}}, rotation = 0))); Modelica.Blocks.Sources.Step step1(height = 1) annotation( Placement(visible = true, transformation(origin = {-88, 20}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); equation connect(add1.y, feedback1.u2) annotation( Line(points = {{-12, -40}, {-18, -40}, {-18, 12}, {-18, 12}}, color = {0, 0, 127})); connect(gain2.y, add1.u1) annotation( Line(points = {{18, -20}, {16, -20}, {16, -34}, {12, -34}, {12, -34}}, color = {0, 0, 127})); connect(gain3.y, add1.u2) annotation( Line(points = {{18, -60}, {16, -60}, {16, -46}, {12, -46}, {12, -46}}, color = {0, 0, 127})); connect(integrator1.y, gain2.u) annotation( Line(points = {{40, 20}, {50, 20}, {50, -20}, {42, -20}, {42, -20}}, color = {0, 0, 127})); connect(integrator2.y, gain3.u) annotation( Line(points = {{82, 20}, {92, 20}, {92, -60}, {42, -60}, {42, -60}}, color = {0, 0, 127})); connect(integrator1.y, integrator2.u) annotation( Line(points = {{40, 20}, {56, 20}, {56, 20}, {58, 20}}, color = {0, 0, 127})); connect(feedback1.y, integrator1.u) annotation( Line(points = {{-8, 20}, {16, 20}, {16, 20}, {16, 20}}, color = {0, 0, 127})); connect(gain1.y, feedback1.u1) annotation( Line(points = {{-38, 20}, {-28, 20}, {-28, 20}, {-26, 20}}, color = {0, 0, 127})); connect(step1.y, gain1.u) annotation( Line(points = {{-76, 20}, {-62, 20}, {-62, 20}, {-62, 20}}, color = {0, 0, 127})); annotation( uses(Modelica(version = "3.2.2"))); end Sistema_MKC_Blocos;