@@ -2673,10 +2673,10 @@ In practice it is nearly impossible to drive a PMSMD without current controller.
26732673 connect(signalCurrent.plug_p, star.plug_p) annotation (Line(
26742674 points={{-10,60},{-10,90},{-50,90}},
26752675 color={0,0,255}));
2676- connect(id.y, dqToThreePhase.id_rms ) annotation (Line(points={{-69,70},
2677- {-60, 70},{-60,56},{-52,56}}, color={0,0,127}));
2678- connect(iq.y, dqToThreePhase.iq_rms ) annotation (Line(points={{-69,30},
2679- {-60, 30},{-60,44},{-52,44}}, color={0,0,127}));
2676+ connect(id.y, dqToThreePhase.d ) annotation (Line(points={{-69,70},{-60 ,
2677+ 70},{-60,56},{-52,56}}, color={0,0,127}));
2678+ connect(iq.y, dqToThreePhase.q ) annotation (Line(points={{-69,30},{-60 ,
2679+ 30},{-60,44},{-52,44}}, color={0,0,127}));
26802680 connect(groundM.p, terminalBox.starpoint) annotation (Line(
26812681 points={{-70,-28},{-20,-28}},
26822682 color={0,0,255}));
@@ -16905,12 +16905,10 @@ using the provided mechanical rotor angle phi. The output are the instantaneous
1690516905 parameter Integer p "Number of pole pairs";
1690616906 parameter Boolean useRMS=true "If true, inputs dq are multiplied by sqrt(2)";
1690716907 extends Modelica.Blocks.Interfaces.MO(final nout=m);
16908- Modelica.Blocks.Interfaces.RealInput id_rms "d-component"
16909- annotation (Placement(
16910- transformation(extent={{-140,40},{-100,80}})));
16911- Modelica.Blocks.Interfaces.RealInput iq_rms "q-component"
16912- annotation (Placement(
16913- transformation(extent={{-140,-80},{-100,-40}})));
16908+ Modelica.Blocks.Interfaces.RealInput d "d-component"
16909+ annotation (Placement(transformation(extent={{-140,40},{-100,80}})));
16910+ Modelica.Blocks.Interfaces.RealInput q "q-component"
16911+ annotation (Placement(transformation(extent={{-140,-80},{-100,-40}})));
1691416912 Modelica.Blocks.Interfaces.RealInput phi(unit="rad") "Rotor angle"
1691516913 annotation (Placement(
1691616914 transformation(
@@ -16936,16 +16934,16 @@ using the provided mechanical rotor angle phi. The output are the instantaneous
1693616934 annotation (
1693716935 Placement(transformation(extent={{40,10},{60,-10}})));
1693816936 equation
16939- connect(iq_rms , toPeak_q.u)
16937+ connect(q , toPeak_q.u)
1694016938 annotation (Line(points={{-120,-60},{-62,-60}}, color={0,0,127}));
1694116939 connect(phi, toGamma.u)
1694216940 annotation (Line(points={{0,-120},{0,-62}}, color={0,0,127}));
1694316941 connect(rotator.angle, toGamma.y)
1694416942 annotation (Line(points={{0,-12},{0,-39},{0,-39}}, color={0,0,127}));
1694516943 connect(rotator.y, fromSpacePhasor.u)
1694616944 annotation (Line(points={{11,0},{24,0},{38,0}}, color={0,0,127}));
16947- connect(toPeak_d.u, id_rms) annotation (Line(
16948- points={{-62,60},{-120,60}}, color={0,0,127}));
16945+ connect(toPeak_d.u, d)
16946+ annotation (Line( points={{-62,60},{-120,60}}, color={0,0,127}));
1694916947 connect(toPeak_d.y, rotator.u[1]) annotation (Line(
1695016948 points={{-39,60},{-30,60},{-30,0},{-12,0}}, color={0,0,127}));
1695116949 connect(toPeak_q.y, rotator.u[2]) annotation (Line(
0 commit comments