modelSinCosResolver

Sin/Cos-Resolver

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

TypeNameDefaultDescription
BooleanuseSupport (from PartialOneFlangeAndSupport)false= true, if support flange enabled, otherwise implicitly grounded
IntegerpNumber of pole pairs
Realoffset1.5Offset of output
Realamplitude1Amplitude of output
Modelica.Units.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.RealOutput[4]yResolver signals

Components

TypeNameDefaultDescription
Modelica.Mechanics.Rotational.Sensors.RelAngleSensorrelAngleSensor
Modelica.Blocks.Math.Addadd
Modelica.Blocks.Sources.Constantconst
Modelica.Blocks.Math.Coscos1
Modelica.Blocks.Math.Sinsin1
Modelica.Blocks.Math.Addadd1
Modelica.Blocks.Math.AddaddOffset2
Modelica.Blocks.Math.AddaddOffset3
Modelica.Blocks.Math.AddaddOffset4
Modelica.Blocks.Sources.ConstantconstOffset