---
title: "Incremental encoder"
id: "incremental-encoder"
project: "Clean Power VFD User Guide"
url: "https://smartd.clickhelp.co/articles/clean-power-vfd-publication/incremental-encoder"
updated: 2026-10-29T18:46:33Z
---

# Incremental encoder

[Home](/articles/clean-power-vfd-publication/home) » [Functions and parameters](/articles/clean-power-vfd-publication/folder-functions-and-parameters) » [Inputs and outputs](/articles/clean-power-vfd-publication/i-o) » Incremental encoder

* * *

* [Introduction](/articles/clean-power-vfd-publication/incremental-encoder/a/h2__1296687178)
* [Type of encoder and wiring](/articles/clean-power-vfd-publication/incremental-encoder/a/h2_48407776)
* [Selecting the Encoder's frequency and PPR](/articles/clean-power-vfd-publication/incremental-encoder/a/h2__2071660434)
* [Check that the Encoder Output max. Frequency fits the VFD's input frequency](/articles/clean-power-vfd-publication/incremental-encoder/a/h3_733870532)
* [Define the encoder max number of pulses per revolution](/articles/clean-power-vfd-publication/incremental-encoder/a/h2__1188577226)
* [Settings](/articles/clean-power-vfd-publication/incremental-encoder/a/h2_681682073)
* [Commissioning the incremental encoder](/articles/clean-power-vfd-publication/incremental-encoder/a/h2__193766098)

## Introduction

To measure the rotation speed and direction of the motor, and in some applications, the position, an incremental encoder is mounted on the motor shaft and delivers pulses to the VFD.

The motor's actual speed is then fed back to the control circuit. With this, fluctuation of the motor speed can be compensated and a close loop control can be achieved.

Being able to monitor the motor shaft rotation gives also the ability to detect faults and then generate appropriate alarms.

## Type of encoder and wiring

An incremental encoder (from the motor shaft) can be connected to the VFD dedicated inputs: **digital input 1 and digital input 2** (1)

The embedded VFD software calculates the actual speed and rotation direction of the motor shaft from the signals delivered by the encoder.

If the driven motor is an asynchronous motor, the VFD also calculates the actual slip and compensates for it.

The encoder's outputs that must be used are A and B. The Clean Power VFD is compatible only with a 24VDC encoder.

TTL encoders must not be used with SmartD VFD ( their not compatible voltage level will lead to wrong readings and then the risk of misoperation of the VFD ).

The encoder must be wired to

* Power out +24VDC
* Power out 0
* Digital input 1 for channel A
* Digital input 2 for channel B

![wiring of an incremental encoder to the Clean Power VFD](/resources/Storage/clean-power-vfd-publication/incremental%20encoder%20wiring.png)

**(1) Clean Power VFD versions and compatibility with encoder:**

The digital inputs 1 and 2 (Di1 and Di2) on the Clean Power VFD are compatible with pulse train signals up to a maximum frequency of 50 kHz.

This compatibility applies to hardware produced on or after June 14, 2024.

You can verify this by checking the VFD's serial number. Ensure that the middle segment of the serial number is "20240614" or later (e.g., 0001-20240614-000001).

If your Clean Power VFD was manufactured before this date, it does not support the pulse train signal for the incremental encoder function.

## Selecting the Encoder's frequency and PPR

### Check that the Encoder Output max. Frequency fits the VFD's input frequency

**Encoder Frequency (Hz)=[Pulses Per Revolution (PPR)×Speed (RPM)​] / 60**

**Pulses Per Revolution (PPR)**: This represents the number of pulses or counts generated by the encoder in one full revolution of its shaft.

**Speed (RPM)**: This is the rotational speed of the encoder shaft in Revolutions Per Minute.

**60**: This is the conversion factor used to convert minutes to seconds, as the frequency is expressed in Hertz (cycles per second).

The result you get from this equation will be the frequency of the output signal from the encoder in Hertz (Hz), which corresponds to the speed at which it's rotating.

This information is for the VFD to accurately control the speed of the motor based on the feedback from the encoder.

## Define the encoder max number of pulses per revolution

**Max PPR=[Max Input Frequency of VFD (Hz)×60​] / Max Speed of Motor Shaft (RPM)**

**Max Input Frequency of VFD (Hz**): The highest frequency that the VFD can accept as an input (50kHz)

**Max Speed of Motor Shaft (RPM)**: The highest speed at which the motor shaft can rotate

**60**: Conversion factor from minutes to seconds.

This calculation will give the maximum number of pulses per revolution the encoder can have without exceeding the VFD's maximum input frequency limit at the motor's maximum operating speed.

This ensures the encoder's output remains within the VFD's acceptable range.

## Settings

1) To use an incremental encoder with the Clean Power VFD, Di1 and Di2 must be configured as incremental encoder inputs for signal phase A and phase B, respectively.

2) Then the incremental encoder's PPR must be defined. This parameter can be set between 50 and 10,000. Its default value is defined according to the motor's rated frequency and number of poles.

For example, for a 2-pole motor,

* In the case of a 60Hz motor, the default value must be 800.
* In the case of a 50 Hz motor, the default value must be 1000.

3) In case of miswiring phase A and phase B, a toggle switch allows swapping A and B without the need to modify the wiring

## Commissioning the incremental encoder

When commissioning closed-loop control, verify that your I/Os are working correctly before using them in a feedback loop.

Specifically, for the encoder, this would imply:

1. Configuring it with the correct PPR setting while keeping the FOC speed source to "estimated“
2. Make sure no encoder alarms are raised ("motor wrong direction“ ," encoder communication failure“ and "encoder speed error“)
3. Tune the thresholds/delays of the alarms to make them more or less strict depending on needs

When this is OK, switch the iFOC speed source to "measured from encoder“

![](/resources/Storage/clean-power-vfd-publication/res/Safety%20picture%20Yellow%20Caution.png)

SmartD recommends checking the correct operations of the I/O's, as well as the correct setting of the encoder PPR.

Defective input or wrong setting of the encoder could make the control unstable and end up having a major alarm that protects the hardware (e.g., "motor control instability“ or "drive output overcurrent“).