How-to
Local and remote speed demand selection for a pump VFD
Short answer
Normalize both speed demands to one engineering range, switch between them with an explicit local remote decision, and let one write path scale the selected demand onto the 4-20 mA output so the inactive source can never move the pump.

On this page
- Put both demands into one engineering range
- Steps at a glance
- Scale the local input and clamp the remote entry
- Select exactly one source before the output write
- Keep the drive on one reference source
- Worked example: a 65 percent potentiometer setting on a 20 to 50 Hz pump
- Prove it before you let the pump run
- Questions asked
Yes, one analog output can serve both a potentiometer and a network entry, provided the program normalizes both demands into one speed range, picks exactly one of them behind an explicit local/remote decision, and lets a single write path scale that selection onto the drive's analog input. The two demands are alternatives, never signals to add together. The order below keeps the inactive source from ever moving the pump: fix the commissioned speed range, scale each source into it, multiplex, then scale the selected value onto the current loop.
Put both demands into one engineering range #
Normalization converts whatever form each source arrives in into the same engineering quantity, so a potentiometer position and a browser-entered number mean the same requested speed when they reach the selector. For a linear conversion:
engineering value = engineering minimum
+ (raw value - raw minimum)
* (engineering maximum - engineering minimum)
/ (raw maximum - raw minimum)
The raw span must be nonzero. Clamp each converted demand to the commissioned endpoints so an out-of-range remote entry or a drifted input cannot request a speed outside the commissioned operating range. Clamping is not diagnosis: a broken input limited to the minimum still reads as a valid minimum demand, so input validity stays a separate decision.
Steps at a glance #
- Fix the commissioned speed range in engineering units for the pump.
- Scale the local input into that range and clamp it to the endpoints.
- Define the remote entry range in the same units and clamp it to the same endpoints.
- Multiplex the two normalized values behind an explicit local/remote decision, with a defined result for both requests active and for neither.
- Scale the selected demand onto the loop with one write path: 4 mA at the minimum demand, a 16 mA span to the maximum.
- Hold the drive on its analog reference, then verify both endpoints with a meter before the pump is allowed to run.
Scale the local input and clamp the remote entry #
Read the local input's raw limits from the module configuration, not from the sensor: the module's documented conversion, not the potentiometer, decides the raw counts you scale, as set out in how PLC analog input and output modules convert signals. Apply the potentiometer's usable travel as the raw minimum and raw maximum in the formula above.
For the remote side, define the permitted entry range deliberately and clamp to the same engineering endpoints. Equal requested speeds must give equal normalized values from both paths, within the resolution and accuracy of each signal path.
Select exactly one source before the output write #
A multiplexer picks one value using a control signal; implement it with whatever selection facility your controller offers, placed after normalization and before output scaling. Resolve the corner cases in the operating specification, not by accident of execution order: decide what happens when both sources request, and when neither does, and which one wins.
Keep a single final writer for the analog output. Two independent logic paths writing the same destination make the result depend on which block executes last, and the same pattern of one final scaling step to the output counts is what scaling a PID real output to analog output counts describes. Never add the two demands: addition gives the inactive source a path to the pump.
When the mode changes, the demand can step if local and remote values differ. Choose the transfer policy on purpose: accept the step where the process permits it, apply a rate limit, or require the incoming source to match the active demand before the transfer.
Keep the drive on one reference source #
Do the local/remote selection in the controller and leave the drive on its analog reference. Running the selector in two places splits the decision: Eaton's documentation for its PowerXL DG1 drive shows that in local mode the default speed reference is the keypad reference (R12 Keypad Reference), changed with the up and down arrows, so selecting local at the drive removes the analog input from the loop entirely. Rockwell's PowerFlex 750-series documentation, by contrast, describes ways to select a speed reference source while the drive stays in auto mode. Whichever drive you have, the reference source the drive uses must not depend on the mode: one selector, one active reference path, always.
Worked example: a 65 percent potentiometer setting on a 20 to 50 Hz pump #
Inputs, all example values of the kind you read from the commissioned configuration:
- Commissioned pump range: 20.0 Hz minimum, 50.0 Hz maximum demand.
- Local analog input: 0 to 1000 raw counts across the potentiometer travel, per the module configuration.
- Loop endpoints: 4 mA at the minimum demand with a 16 mA span to the maximum, the commissioned loop for this kind of installation.
- Present setting: potentiometer at 65 percent of travel, so 650 raw counts.
The rule in words: interpolate linearly from raw counts to Hz, then from Hz to loop current. The arithmetic:
Hz = 20.0 + (650 - 0) * (50.0 - 20.0) / (1000 - 0)
= 20.0 + 650 * 30.0 / 1000
= 20.0 + 19.5 = 39.5 Hz
mA = 4 + (39.5 - 20.0) / (50.0 - 20.0) * 16
= 4 + 19.5 / 30.0 * 16
= 4 + 10.4 = 14.4 mA
The selected demand is 39.5 Hz, so the loop must carry 14.4 mA. The decision: with the drive's run permission removed, measure the loop. If the meter shows that current within the tolerance you accept for the loop, judged as a percent of the 16 mA span the way calculating 4-20 mA instrument error as percent of span sets out, the scaling is right. A reading at or near either endpoint instead points at a scaling or wiring fault; fix it before the pump runs.
Prove it before you let the pump run #
- In local mode, change only the remote entry: the selected demand and the loop must not move.
- In remote mode, move only the potentiometer: the demand must hold the remote value.
- At a mid-travel setting on both sources, equal requested speeds must give equal Hz and equal loop current.
- Audit every reference to the output destination: exactly one code path may write it.
- With run permission removed, check the endpoints: minimum demand gives the low endpoint current, maximum demand gives the high.
One safety note: a drive that loses its analog reference may keep running at a minimum speed rather than stop, as explained in why a VFD runs at minimum speed when the analog reference is lost, so treat that fallback as process behavior and never as a safety function.
Questions asked
Why not let the drive's own local and remote modes handle the selection?
You can, but it changes the reference path. Eaton's PowerXL DG1 documentation, for example, shows that local mode defaults to the keypad speed reference (R12 Keypad Reference) adjusted with the arrow keys, so the analog input drops out of the loop whenever local is selected. If your selector lives in the controller, hold the drive in its auto or remote reference mode so it always follows the analog input, and make the local and remote decision upstream where both sources are visible.
What happens if the analog output wire to the drive breaks?
The drive loses its reference current, and many drives are configured to fall back to a minimum speed rather than stop. That fallback keeps the pump turning, so it is process behavior, not protection. Check how your drive is set up to respond to reference loss, and treat any genuine stop requirement as a separate run-permission or safety circuit that does not depend on the analog signal.
Can I add the local and remote demands instead of switching between them?
No. A sum means the source you are not using still moves the pump: a remote entry of half range would add half of the full demand on top of whatever the potentiometer gives. Select exactly one normalized value with the mode decision and pass only that value to the output scaling, so the inactive source has no path to the output.