modelIncrementalEncoder

Incremental encoder

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 an incremental encoder. It senses the angle of the flange phi (w.r.t. the optional support), providing 3 Boolean signals:

  • 0-track y[1] = 1 pulse per revolution with a length of 2*pi/(4*pRev)
  • A-track y[2] = pRev pulses per revolution
  • B-track y[3] = pRev pulses per revolution, displaced by 2*pi/(4*pRev)

It is used to measure angular velocity of electric drives, using block EncoderTimeSpan or EncoderPulseCount.

Parameters

TypeNameDefaultDescription
BooleanuseSupport (from PartialOneFlangeAndSupport)false= true, if support flange enabled, otherwise implicitly grounded
IntegerpRevPulses per revolution

Connectors

TypeNameDefaultDescription
Flange_bflange (from PartialOneFlangeAndSupport)Flange of shaft
Supportsupport (from PartialOneFlangeAndSupport)Support/housing of component
Modelica.Blocks.Interfaces.BooleanOutput[3]yEncoder signals

Components

TypeNameDefaultDescription
Modelica.Mechanics.Rotational.Sensors.RelAngleSensorrelAngleSensor
Modelica.Blocks.Math.WrapAnglewrapAngle1
Modelica.Blocks.Math.Gaingain
ToMSL.IntervalTestintervalTest1
ToMSL.IntervalTestintervalTest2
ToMSL.IntervalTestintervalTest3
Modelica.Blocks.Math.WrapAnglewrapAngle2