You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The block Modelica.Electrical.Machines.Sensors.HallSensor has an error. It uses rem() but it really should be mod().
The hall sensor should always be between 0 and 2*pi — no matter the direction of travel. The electrical angle of a motor is always in that range — as soon as you reach 2 Pi you wrap back to zero and if you pass zero in the negative direction, you wrap to 2 pi. Note that if the angle is negative, the HallSensor gives a nonsensical output.
The text was updated successfully, but these errors were encountered:
@AHaumer To me, it looks like that @ankitnaik177 is right. Taking the example Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad and letting the machine run backwards will create the following angle outputs for the original HallSensor(Rem) and a modified using mod
AHaumer
added a commit
to AHaumer/ModelicaStandardLibrary
that referenced
this issue
Sep 14, 2022
The block Modelica.Electrical.Machines.Sensors.HallSensor has an error. It uses rem() but it really should be mod().
The hall sensor should always be between 0 and 2*pi — no matter the direction of travel. The electrical angle of a motor is always in that range — as soon as you reach 2 Pi you wrap back to zero and if you pass zero in the negative direction, you wrap to 2 pi. Note that if the angle is negative, the HallSensor gives a nonsensical output.
The text was updated successfully, but these errors were encountered: