Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Encoder Configuration Page
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.
Excerpt | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
This page includes the following components:
When set to Quadrature Encoder mode, the sensor generates the A, B, and Z signals of a quadrature encoder module with a specific number of pulses per turn, according to an input angle or speed. Outputs A and B have a 90 degree phase difference that enables a decoder to retrieve the modulated signal angle and speed at any time. Configuration ParametersThe following parameters are available. They are modifiable at edit-time only:
|
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 |
Quadrature Encoder Description
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.
Anchor HallEffect HallEffect
Encoder Mode: Hall Effect
HallEffect | |
HallEffect |
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.
Configuration Parameters
The following parameters are available. They are modifiable at edit-time only:
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 |
Section Channels
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. |
Hall Effect Sensor Description
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.