modelDemoEncoder

Demonstrate various encoder / resolver models

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

The reference frequency signal is integrated to obtain the angle, which is measured by:

For p=1, all results are identical. For p>1, the results of the HallSensor and the SinCosEvaluation are p times the other results.

Parameters

TypeNameDefaultDescription
Integerm5Number of phases
Integerp2Number of pole pairs
IntegerpRev128Pulses per revolution
Modelica.Units.SI.Anglephi00Initial mechanical angle (zero position)

Components

TypeNameDefaultDescription
Modelica.Blocks.Sources.TrapezoidrefFrequency
Modelica.Blocks.Continuous.Integratorf2pos
Modelica.Mechanics.Rotational.Sources.Positionposition
Modelica.Mechanics.Rotational.Sensors.AngleSensorangleSensor
Modelica.Mechanics.Rotational.Sensors.SpeedSensorspeedSensor
Sensors.SinCosResolversinCosResolver
Utilities.SinCosEvaluationsinCosEvaluation
Sensors.IncrementalEncoderincrementalEncoder
Utilities.EncoderTimeAndCountencoderTimeAndCount
Utilities.EncoderTimeSpanencoderTimeSpan
Utilities.EncoderPulseCountencoderPulseCount
Sensors.HallSensorhallSensor
ToMSL.UnwrapAngleunwrapAngle
Utilities.HallTimeSpanhallTimeSpan