modelHallSensor

Hall sensor

Extends from Modelica.Mechanics.Rotational.Interfaces.PartialOneFlangeAndSupport (Partial model for a component with one rotational 1-dim. shaft flange and a support used for graphical modeling, i.e., the model is build up by drag-and-drop from elementary components).

Information

Simple model of a hall sensor, i.e. measuring the angle of the flange (w.r.t. the optional support), multiplying by the number of pole pairs p to obtain the electrical angle, and adding a correction term i.e. the initial angle of the flange phi0.

Additionally, the Boolean commutation signals for m phases are generated, i.e. an ouput yC[k] = true when the angle is within [-pi/2, +pi/2] of the orientation of phase k.

Parameters

TypeNameDefaultDescription
BooleanuseSupport (from PartialOneFlangeAndSupport)false= true, if support flange enabled, otherwise implicitly grounded
IntegerpNumber of pole pairs
Integerm3Number of stator phases
SI.Angle[m]orientationModelica.Electrical.Polyphase.Functions.symmetricOrientation(m)Orientation of phases
SI.Anglephi00Initial mechanical angle (zero position)

Connectors

TypeNameDefaultDescription
Flange_bflange (from PartialOneFlangeAndSupport)Flange of shaft
Supportsupport (from PartialOneFlangeAndSupport)Support/housing of component
Modelica.Blocks.Interfaces.RealOutputyElectrical angle
Modelica.Blocks.Interfaces.BooleanOutput[m]yCCommutation signals

Components

TypeNameDefaultDescription
Modelica.Mechanics.Rotational.Sensors.RelAngleSensorrelAngleSensor
Modelica.Blocks.Math.WrapAnglewrapAngle
Modelica.Blocks.Math.Addadd
Modelica.Blocks.Sources.Constantconst
Modelica.Blocks.Routing.Replicatorreplicator
ToMSL.IntervalTest[m]intervalTest