Encoder Configuration Page
In the System Explorer window configuration tree, expand the Power Electronics Add-On custom device and select Circuit Model >> IM with Saturation >> Encoder to display this page. Use this page to configure the Encoder sensor model.
This page includes the following components: Encoder Name Specifies the name of the encoder. Description Specifies a description for the encoder. Configuration Encoder Mode Choose from one of the following modes. The configuration parameters and section channels automatically populate depending on the selected Encoder Mode. 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. 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 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 deg 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: A leads B - A is the first output pulse as the machine begins to rotate B leads A - B is the first output pulse as the machine begins to rotate If the machine appears to be turning backwards, consider switching this setting. Polarity Active High Select one of the following options: Active High - Output signals are pulled High to signify an encoder pulse Active Low - Output signas are pulled Low to signify an encoder pulse 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. 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. 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: Clockwise - The sensor outputs a positive speed when the machine rotates clockwise. Counter Clockwise - The sensor outputs a positive speed when the machine rotates counter clockwise. Position A θA deg 0 Sensor angle at which Channel A outputs a high signal pulse Position B θB deg 120 Sensor angle at which Channel B outputs a high signal pulse Position C θC deg -120 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. Encoder Mode: Quadrature Encoder
Configuration Parameters
Section ChannelsQuadrature Encoder Description
Encoder Mode: Hall Effect
Configuration Parameters
Section Channels
Hall Effect Sensor Description