How do I set up VFD multi-speed presets with digital inputs?: binary coding, wiring and a speed table
Select fixed VFD speeds with digital inputs: binary coding, a preset table, priority rules and the common wiring faults.
Updated 2026-11-28
Short answer
Set each preset speed as a frequency in the drive's preset parameters, then assign digital inputs to select them. The drive reads the inputs as a binary code. With n inputs you get 2 to the power n combinations, so three inputs give eight states. One state is normally the default reference from the analog input or keypad, and the others select presets. Enter speeds in Hz, keep each one inside the drive's minimum and maximum frequency, and set a ramp for each preset if the drive allows it.
1. Binary coding
- 1 input: 2 states (off, on). One preset plus the default.
- 2 inputs: 4 states (00, 01, 10, 11). Up to three presets plus the default.
- 3 inputs: 8 states, so up to seven presets plus the default.
- Some drives instead give each input its own preset with a priority order. Read the manual for the scheme in use.
2. Worked example: five speeds on a 4-pole 50 Hz motor
Wanted speeds: 0 Hz default (analog reference), 10 Hz creep, 25 Hz slow, 40 Hz normal and 50 Hz full. With 4 poles, the synchronous speed is 120 × f / 4 = 30 × f rpm, so at 10, 25, 40 and 50 Hz the no-load speeds are 300, 750, 1200 and 1500 rpm. Slip at full load is about 50 rpm at 50 Hz and scales roughly with frequency, so the loaded speeds are about 290, 725, 1160 and 1450 rpm. Use three inputs DI1, DI2 and DI3 with this table: DI3 DI2 DI1 = 000 gives the analog reference; 001 gives 10 Hz; 010 gives 25 Hz; 011 gives 40 Hz; 100 gives 50 Hz.
3. Wiring
- Match the input wiring to the drive's PNP or NPN setting, and use the drive's internal supply or the matching external supply.
- Keep the input current within the drive's limit when using a PLC output.
- Use a selector switch or PLC for the preset selection. Relay contacts can bounce, so use a debounce time if the drive offers one.
- Label the code on the panel, so the operator can read the speed selected.
4. Priority and conflicts
- If the wiring allows two presets to close together, the drive may take the highest, the lowest or the last one. Test every combination.
- Presets normally override the analog and keypad reference when selected. Confirm this in the manual.
- A preset above the maximum frequency is clipped or refused. Keep every preset within range.
- Check whether a 0 Hz preset means stop or simply a zero speed reference.
5. Ramps
A preset changes the speed setpoint, and the drive ramps to it. A jump from 10 Hz to 50 Hz takes the acceleration time, so a change from creep to full speed takes several seconds. If the drive allows a separate ramp for each preset, use longer ramps for heavy loads.
6. Common mistakes
- Entering 1450 rpm where the drive expects Hz.
- Mixing PNP and NPN wiring, so the inputs never close.
- Forgetting the common terminal.
- Setting presets above the motor's rated frequency without checking the motor rating.
- A stop command that does not clear the selected preset, so the drive restarts at the old speed.
7. Check
Run each preset with the real load. Read speed with a tachometer or the drive display, and record the current at each speed.
Synchronous speed, slip and VFD speed
nₛ = 120·f / p · s = (nₛ − n) / nₛ
V/f control keeps slip in rpm roughly constant at the same torque, so speed = 120·f/p − rated slip. At light load the motor runs closer to synchronous speed. Above base frequency torque falls (field weakening).
Sourcing a motor or production equipment from China? We can find and contact the right factories for you in Chinese. Ask on WhatsApp →