In the System Explorer window configuration tree, expand the Power Electronics Add-On custom device and select Circuit Model >> PMSM BLDC >> Encoder to display this page. Use this page to configure the Encoder sensor model.
This page includes the following components:
|
Configuration | ||||
Symbol | Units | Default Value | Description | |
---|---|---|---|---|
Number of Pole Pairs | pp | 1 | A gain applied to the mechanical angle of the machine, θm, before it is translated to an encoder signal. Modify this parameter if the encoder is attached to a gear box rather than connected directly to the rotor. In most applications, this is set to 1. | |
Angle Offset | θOffset | Degrees | 0 | Angle offset applied to the machine angle, θm |
Number of Pulses/Revolution | ppr | 1000 | Number of pulses generated by the outputs A and B in a single revolution. | |
Rotation Type | A leads B | Select one of the following options:
If the machine appears to be turning backwards, consider switching this setting. | ||
Polarity | Active High | Select one of the following options:
|
When set to Quadrature Encoder mode, this section includes the following custom device channels:
Channel Name | Symbol | Type | Default Value | Description |
---|---|---|---|---|
A | A | Output | 0 | Digital signal A generated by the encoder. When paired with B and Z, it can be used to determine the machine's position. |
B | B | Output | 0 | Digital signal B generated by the encoder. When paired with A and Z, it can be used to determine the machine's position. |
Z | Z | Output | 0 | Digital signal Z generated by the encoder. One Z pulse occurs per full rotation at the 0° machine angle |
A quadrature encoder is an angular position or motion sensor sometimes referred to as rotary encoder. The quadrature encoder model generates three square-wave pulses (A, B, Z), which can then be interpreted into the angular position of the machine θm. For an encoder with Active High polarity, a pulse is defined as a transition from low to high back to low.
Figure 1. Quadrature encoder signals A, B, and Z, with A leading B at a standard 90 degree offset. The polarity of these signals is Active High.
When set to Hall Effect mode, the sensor generates the A, B, and C signals which correspond to the absolute angle position. Typically A, B, and C are separated by 120° but other configurations are common.
The following parameters are available:
Configuration | ||||
Symbol | Units | Default Value | Description | |
---|---|---|---|---|
Number of Pole Pairs | pp | 1 | A gain applied to the mechanical angle of the machine, θm, before it is translated to a Hall Effect signal. Modify this parameter if the sensor is attached to a gear box rather than connected directly to the rotor. In most applications, this is set to 1. | |
Speed Sign | Clockwise | Select one of the following options:
| ||
Position A | θA | Degrees | 0 Degrees | Sensor angle at which Channel A outputs a high signal pulse |
Position B | θB | Degrees | 120 Degrees | Sensor angle at which Channel B outputs a high signal pulse |
Position C | θC | Degrees | -120 Degrees | Sensor angle at which Channel C outputs a high signal pulse |
When set to Hall Effect mode, this section includes the following custom device channels:
Channel Name | Symbol | Type | Default Value | Description |
---|---|---|---|---|
A | A | Output | 0 | Digital signal A generated by the Hall Effect sensor. When paired with B and C, it can be used to determine the machine's position. |
B | B | Output | 0 | Digital signal B generated by the Hall Effect sensor. When paired with A and C, it can be used to determine the machine's position. |
C | C | Output | 0 | Digital signal C generated by the Hall Effect sensor. When paired with A and B, it can be used to determine the machine's position. |
A Hall effect sensor is a device that is used to measure the magnitude of a magnetic field. Manufacturers of electrical machines will place magnetic materials on the machine at particular rotor angles to allow Hall Effect sensors to be able to detect when they are near the specific position on the machine. Through simple signal processing the voltage induced by the magnetic materials can be transformed into digital signals that turn active (true) when the Hall Effect sensor reaches the angle of the machine. The digital signals can then be used by a controller to calculate absolute position and/or speed. This Hall Effect Sensor model supports three independent sensor positions.