Skip to main content
FW version: Stable

Motor sensor for VECTOR

Sensor selection

This page covers motor sensor types and their settings.

info

Hereby described variables are located in the folder /driver.

prest [-]

Preferred rotor position estimation mode.

prestnameAlternatives
-1Driver is deinitialized, powerstage is in HiZ
0Asynchronous mode
1Sensoreless mode
2Three Hall sensors66 - disable input holdoff filter
3Sin-Cos sensor
4Resolver
5digital sensor, SSI 16-bit protocol21 - AS5048 mode; 149 - AS5048 mode with chip-select ; 37 - error detection override
6digital sensor, BiSS protocol70 - skip CDS bit
8digital sensor, 18-bit SSI32 for ZETTLEX sensors
10Incremental encoder
info

If the prest is changed the driver must be restarted or the reinit command must be run. Also, the command identrun must be run to identify the new sensor type.

warning

Un-identified sensor type may cause unexpected motor spinning, even with the stop command issued and/or any other freewheeling mode!


REST (Rotor position ESTimator) algorithm

Rotor position ESTimator (REST) is a module responsible for providing the reliable estimate of the rotor position from various sources for the vector drive (FOC). Generally, the REST can be configured as sensored or sensorless.

Signal diagram of sensored mode

sensored REST

Signal diagram of sensorless mode

sensorless REST

info

Hereby described variables are located in the folder /driver/rest.

warning

Wrong settings in this folder may cause unexpected motor spining, even with in the stop command issued and/or any other freewheeling mode! Proceed with caution.

tip

The VECTOR algorithm supports multiple motor sensors. Not all parameters are used for every sensor type.

State variables

eangle [rad]

Estimated electrical angle position output (after the processing).

mangle [rad]

Mechanical angle (intermediate state) after the sensor mapping (available only with certain sensor types).

b1 and b2

Mechanical angle represented in trigonometric coordinates (sin, cos) (intermediate state) after the sensor mapping (available only with certain sensor types).

hall

Mapped hall sensor reading. This variable is available only with the hall sensor mode.

ValueDescription
0All hall sensors are off - Error value
7All hall sensors are on - Error value
1-6Hall sensor position

Sensor mapping configuration

tip

The sensor parameters may be automatically identified with the identrun procedure.

omega [erad/s]

If the PMSM (Permanent Magnet Synchronous Machine) motor is selected (by setting psi to other than zero), and asynchronous mode is selected (prest = 0), this parameter defines the rotation speed of the forced magnetic filed (the electrical angle is not coupled to the shaft angle).

If the ACIM (AC induction machine) motor is selected (by setting psi to zero), this parameter defines either: U/F ratio of the induction machine (when prest = 0 - sensorless), OR the current-dependent slip frequency of the induction machine (when prest is other than zero and a sensor is used).

hinv [-]

UVW hall sensor polarity inversion.

A bitwise parameter that allows the user to flip polarity of the selected hall input. The inversion is useful e.g. with 60° hall sensor.

BitDescription
0U hall inversion
1V hall inversion
2W hall inversion

This picture depicts the schematic of two possible hall sensor configurations: 60° and 120°. With 60° configuration, the hall_W must be inverted:

Colors of the hall sensors are usually used on MSENS wires.

warning

This parameter is not automatically detected during identification procedure and must be set manually. For the most common variant with 120°, use the default, zero value.

hvar [-]

Hall sensor connection variant. This parameter maps the hall sensor inputs to the motor coils.

roff1 [LSB]

SIN input offset. When encoder is used, this parameter defines the number of encoder pulses per mechanical revolution.

roff2 [LSB]

COS input offset.

rpole []

Defines the number of electrical revolutions per one sensor revolution.

rangle [rad]

Sensor angle offset


Estimator configuration

The position estimator is a dynamic state observer that aims to filter out the sensor issues while preserving the zero phase shift and latency. Using this estimator, you can filter out misreadings or even compensate the intrinsic delay in the sensor hardware. Tuning up the estimator is an intensive topic and will be covered elsewhere.

esk [-]

The estimator speed gain. The higher the number, the more the estimator 'trusts' the speed measured by the sensor.

eak [-]

The estimator angle gain. The higher the number, the more the estimator 'trusts' the angle measured by the sensor.

eca [rad]

The estimator angle clip. Used in the hall sensor mode only.

ect [s]

The estimator angle clip time constant. Used in the hall sensor mode only.

edc [s]

The estimator sensor latency compensation. Can be used to compensate the time delay in the sensor hardware.


Automatic sensorless mode (fail-safe) configuration

Some sensors may have problems at high speeds. This parameter allows to automatically employ sensorless mode when the motor speed raises above the assh. The driver falls back into the sensored mode when motor speed is below the assl. If any of these parameters is set to zero, this function is disabled.

tip

Most useful with bad hall sensors - hall sensors are used at low speeds, and sensorless mode is used at high speeds.

assl [RPM]

Auto sensorless mode low threshold.

If motor speed /driver/rpmf is below this value, the selected sensored mode is activated (defined with the prest parameter).

assh [RPM]

Auto sensorless mode high treshold.

If motor speed /driver/rpmf is abowe this value, sensorless mode is forced.