SinCosResolver

Sin-Cos-Resolver

    SinCosResolver

Library

Modelica/Electrical/Machines/Sensors

Description

Simple model of a sin-cos-resolver, i.e. sensing the angle of the flange phi (w.r.t. the optional support) and multiplied by p, providing 4 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))

Thus the sine and cosine signals have p periods per mechanical revolution.Adding an offset > amplitude, the loss of one track can be determined.Subtracting the negated signal from the signal, the offset is removed and a cosine and a sine with doubled amplitude are accessible.From this signal, the angle within one pole pair of a machine can be determined for field oriented control.Block SinCosEvaluation can be used.

This model can be used to export FMUs of drives to develop control strategies in other environments.When switching to a real drive, the same inputs as from the FMU can be used.

Note that phi0 has to be set that way, that in shaft position phi0 the flux linkage of phase 1 is a maximum.In order to sense the mechanical angle of the shaft p = 1 has to be set.

Parameters

SinCosResolver_0

NameLabelDescriptionData TypeValid Values

mo_useSupport

useSupport

= true, if support flange enabled, otherwise implicitly grounded

Number

0
1

mo_p

p

Number of pole pairs

Scalar

mo_amplitude

amplitude

Amplitude of signals

Scalar

mo_offset

offset

Offset of signals

Scalar

mo_phi0

phi0

Initial mechanical angle

Scalar

SinCosResolver_1

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

'phi_support'

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

flange

implicit

Flange of shaft

output

1

y

implicit

Track signals

output

2

Port 3

implicit

Support/housing of component

input

mo_useSupport

See Also