modelSinCosResolver
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
This is a model of sin/cos-encoder.
It senses the angle of the flange phi (w.r.t. the optional support), providing 4 analog signals:
y[1] = offset + amplitude*cos(p*(phi - phi0))y[2] = offset - amplitude*cos(p*(phi - phi0))y[3] = offset + amplitude*sin(p*(phi - phi0))y[4] = offset - amplitude*sin(p*(phi - phi0))
It is used to measure angular velocity and rotor angle of electric drives.
The offset of the output is used to sense whether the sensor is working or defect.
It can easily be removed by subtracting y[1] - y[2] and y[3] - y[4].
Note:
Usually the number of pole pairs p matches the number of pole pairs of the permanent magnet synchronous machine.
The sensor directly provides the electrical rotor angle, i.e. p*phiMechancial, and the electrial angular velocity, i.e. p*wMechancial,
if block SinCosEvaluation is used.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | useSupport (from PartialOneFlangeAndSupport) | false | = true, if support flange enabled, otherwise implicitly grounded |
| Integer | p | Number of pole pairs | |
| Real | offset | 1.5 | Offset of output |
| Real | amplitude | 1 | Amplitude of output |
| Modelica.Units.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[4] | y | Resolver signals |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Mechanics.Rotational.Sensors.RelAngleSensor | relAngleSensor | ||
| Modelica.Blocks.Math.Add | add | ||
| Modelica.Blocks.Sources.Constant | const | ||
| Modelica.Blocks.Math.Cos | cos1 | ||
| Modelica.Blocks.Math.Sin | sin1 | ||
| Modelica.Blocks.Math.Add | add1 | ||
| Modelica.Blocks.Math.Add | addOffset2 | ||
| Modelica.Blocks.Math.Add | addOffset3 | ||
| Modelica.Blocks.Math.Add | addOffset4 | ||
| Modelica.Blocks.Sources.Constant | constOffset |