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
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | useSupport (from PartialOneFlangeAndSupport) | false | = true, if support flange enabled, otherwise implicitly grounded |
| Integer | p | Number of pole pairs | |
| Integer | m | 3 | Number of stator phases |
| SI.Angle[m] | orientation | Modelica.Electrical.Polyphase.Functions.symmetricOrientation(m) | Orientation of phases |
| SI.Angle | phi0 | 0 | Initial mechanical angle (zero position) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Flange_b | flange (from PartialOneFlangeAndSupport) | Flange of shaft | |
| Support | support (from PartialOneFlangeAndSupport) | Support/housing of component | |
| Modelica.Blocks.Interfaces.RealOutput | y | Electrical angle | |
| Modelica.Blocks.Interfaces.BooleanOutput[m] | yC | Commutation signals |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Mechanics.Rotational.Sensors.RelAngleSensor | relAngleSensor | ||
| Modelica.Blocks.Math.WrapAngle | wrapAngle | ||
| Modelica.Blocks.Math.Add | add | ||
| Modelica.Blocks.Sources.Constant | const | ||
| Modelica.Blocks.Routing.Replicator | replicator | ||
| ToMSL.IntervalTest[m] | intervalTest |