Explainer
Can a PLC gateway replace a networked VFD with hardwired I/O
Short answer
Yes to the wiring, no to the disguise: a small PLC can drive a 4-20 mA speed reference and run/trip signals, but an EtherNet/IP scanner checks vendor ID and product code and will not connect to a gateway posing as the drive, so the upstream controller must be reprogrammed to talk to the PLC as itself. Fixed installations get a network-native drive; OEM machines built around customer-supplied drives get a defined hardwired interface.
On this page
- Can a small PLC translate network commands into drive wiring?
- Why won't the controller connect to my gateway as the drive?
- What drive data is lost on analog and discrete wires?
- What signals do I wire between the gateway PLC and the drive?
- How do I scale a 4-20 mA speed reference in Hz?
- What has to change in the upstream controller program?
- When is hardwired I/O the right decision?
- When is a network-native drive the better fix?
- Questions asked
Yes to the wiring, no to the disguise: a small PLC can take the controller's commands and drive a current-loop speed reference plus run and trip wires into any VFD, but it cannot pose as the original drive on the network, because the controller checks device identity before it exchanges cyclic I/O. The upstream program must be reprogrammed to talk to the gateway as itself — and once that edit is happening anyway, the honest choice is between a defined hardwired interface and a network-native replacement drive. Fixed plants should buy the network drive; OEM machines built around customer-supplied drives should publish a hardwired interface. Nothing in this scheme replaces the drive's power stage or its embedded motor control.
Can a small PLC translate network commands into drive wiring? #
Yes — as a designed protocol conversion, not as a stand-in: the gateway PLC joins the network as itself, receives run and speed data from the controller, and outputs one analog speed reference plus discrete run and status signals to the new drive. The conversion is real and routine in that one direction. The gateway appears to the controller as a Modbus TCP server or an EtherNet/IP adapter — whichever the upstream controller can be reconfigured to address — receives the run command and speed demand as registers or tags, and turns them into physical outputs wired to the drive's terminals.
What it cannot do is answer to the original drive's identity. The controller is never fooled into seeing the old drive; it must be told it is now talking to a PLC and must be given that PLC's data layout. The gateway also absorbs none of the drive's job: the VFD still rectifies incoming power, switches its output stage under its own firmware, and enforces its own motor protection. The PLC contributes commands only. For a small brick PLC in that role, Choosing how a CLICK PLC commands VFD speed safely walks through where the command paths and their safety boundaries sit.
Why won't the controller connect to my gateway as the drive? #
Because EtherNet/IP scanners verify device identity through electronic keying before cyclic I/O starts: the scanner compares the vendor ID, product code and device type from the EDS file against what the connected device reports, and a mismatch prevents the connection. EtherNet/IP configuration is built on EDS files, one per device, and the scanner derives its connection from that device description. When the module answering the connection reports a different vendor ID or product code than was configured, the connection is refused; one controller family surfaces this as 16#0114, an electronic keying mismatch naming product code and/or vendor ID. A gateway PLC carries its own vendor ID and product code, so keying fails before any I/O moves.
Keying is only the first gate. The scanner also expects the drive's input and output assemblies — the exact byte layout the drive published — and the gateway would have to reproduce those assemblies byte for byte, including status words and fault codes it does not actually possess. Writing that emulator is more work than the honest alternatives later in this article, and it fails the moment anyone needs the drive-side data for anything real.
What drive data is lost on analog and discrete wires? #
Run, speed, run status and trip status survive on wires; the drive's data table does not: fault codes, output current, torque, thermal state and parameter access exist only as network objects. Every dropped capability below is a decision, not an automatic loss.
| Traveled over the network | Travels on wires | What you give up |
|---|---|---|
| Run/stop command | one discrete output to a drive input | nothing, once polarity and stop behavior are defined |
| Speed reference | one live-zero current output | fine resolution, but no remote parameter scaling |
| Ready and running states | one discrete input | ready-but-stopped looks the same as running |
| Fault codes and history | one trip bit | which fault occurred, and any diagnosis after reset |
| Output current, torque, thermal state | nothing | load trending and early warning |
| Parameter read/write | nothing | online tuning and remote configuration |
If the plant's alarms only need "drive tripped," one bit is enough. If maintenance trending depends on output current, the hardwired path has no answer at all. Interlock logic that consumed the drive's status word has to be rebuilt from the two wires, with defined behavior for the case where the trip bit and the run bit disagree.
What signals do I wire between the gateway PLC and the drive? #
Four signals is the working minimum: one analog output for speed, one discrete output for run, and two discrete inputs for run status and trip status, using the drive's dedicated control terminals and its specified analog input range. Set the drive's analog input range to match the PLC output, with the live-zero current loop as the default choice because its live zero makes a broken wire detectable where 0-10 V hides one as a legitimate zero-speed command.
Program the drive's response to reference loss — hold last value, stop, or minimum speed — so a severed pair fails the way the machine can tolerate. Speed can also arrive as a pulse train on a high-speed input, trading the analog output for a frequency source, and some drives will emulate a motorized potentiometer from two digital outputs that increment and decrement the last reference. The trade-offs across these interfaces are laid out side by side in How a PLC controls a VFD: five interfaces compared.
One safety rule is fixed regardless of interface: emergency stop and any safe-torque-off function stay wired to the drive's safety-rated input or a safety controller, never routed through gateway logic.
How do I scale a 4-20 mA speed reference in Hz? #
Scale the span, not the endpoints: with the drive's analog input set so 4 mA is zero speed and the top of the loop is full speed, one milliamp equals 3.75 Hz, so a 14 mA command produces 37.5 Hz. Worked example on a 60 Hz motor:
- Span: 20 mA − 4 mA = 16 mA covering 60 Hz.
- Sensitivity: 60 Hz ÷ 16 mA = 3.75 Hz per mA.
- Command 37.5 Hz: I = 4 mA + (37.5 ÷ 60) × 16 mA = 4 + 0.625 × 16 = 14.0 mA.
- Verify: (14.0 − 4) mA × 3.75 Hz/mA = 37.5 Hz.
Resolution is not the constraint: an illustrative 12-bit output divides the span into 4096 steps of 60 Hz ÷ 4096 ≈ 0.015 Hz, finer than any motor in this class notices. Wiring quality is the constraint — one milliamp of error from a loose terminal shifts the motor 3.75 Hz — so terminal torque, shield grounding, and a separate signal ground buy more speed accuracy than the converter does. On a 50 Hz nameplate, redo the arithmetic: 50 ÷ 16 = 3.125 Hz per mA, and the same 14 mA then commands 31.25 Hz.
What has to change in the upstream controller program? #
Everything that named the drive: the drive connection and its EDS-derived mapping come out, the gateway PLC goes in as a new network device, and the run, speed, status and fault logic gets rewritten against the gateway's tag set — the same class of edit a replacement drive needs. This is where the scheme pays or fails. The gateway was meant to spare someone from touching the controller, but keying and assembly layout guarantee the controller gets touched anyway. A technician who can make that edit can equally load a third-party EDS and point the scanner at a network-native drive, which is less total work: one program, one cable, diagnostics intact.
The gateway instead leaves two PLC programs, two cable bundles, and an intermediate box sitting in every future fault search. There is one honest gateway job in a cabinet, and it is data, not drive control: when the need is moving values between protocols for monitoring and logging, an industrial mini PC is the natural host for that protocol converter. Drive commands belong on a control path, not behind a translation layer nobody can troubleshoot at 2 a.m.
When is hardwired I/O the right decision? #
When the drive is customer-supplied or field-replaceable by design: an OEM machine that must run with whatever VFD the end user installs should publish a fixed hardwired interface — one analog input for speed, one digital input for run, two outputs for status — and wire to that. Then the interface is a product specification, not a workaround. Publish the terminal assignments, the signal types (live-zero current speed, 24 V DC run, volt-free trip contact), the scaling in Hz per mA, the reference-loss behavior, and a commissioning sheet the installer completes per drive. The penalty is paid in wiring and blindness — four or more conductors per drive and no fault detail beyond the trip bit — and accepted because supporting every customer's fieldbus on one machine is worse.
When is a network-native drive the better fix? #
For any fixed installation with an editable controller program: buy a replacement drive with the protocol you already scan — EtherNet/IP or Modbus TCP — load its EDS, and keep the data model, diagnostics and single-cable wiring. Compact drives ship with both protocols built in, and installed drives can sometimes gain a network instead of a replacement: option cards such as the 22-COMM-E, which installs into a PowerFlex 40, add an EtherNet/IP adapter to the drive that is already mounted. On the Modbus side, How to commission five VFD drives on one Modbus gateway covers the addressing and register mapping a multi-drive line needs.
The decisions, one per case: a plant with an editable controller gets a network-native replacement drive and one honest program change. An OEM machine that must accept customer-supplied drives gets a documented hardwired interface, wired and verified per shipment. The gateway pretending to be the drive gets built by no one — it fails keying, loses the data model, and doubles the troubleshooting surface for zero saved effort.
Questions asked
Can the gateway PLC take over the drive's safety functions?
No. Emergency stop and safe torque off stay on the drive's safety-rated input or on a safety controller, because a standard PLC and standard I/O are not assessed for a safety function. The gateway's outputs are commands for normal drive control; treat the safety layer as separate hardware with its own validation against the machine's risk assessment.
Will the old HMI drive faceplate still work after the change?
Not as-is. The faceplate reads drive objects over the network; after conversion it can only read tags the gateway publishes, so it has to be rebuilt against the gateway's tag set. Faceplate items like output current and fault code lose their data source and should be removed or replaced with the run and trip states that actually exist on wires.
Is a 0-10 V speed reference ever the better choice?
Only where reading the signal with a voltmeter at the terminal matters more than detecting a broken wire. A severed 0-10 V pair reads 0 V, which is a valid zero-speed command, while a severed live-zero pair drops below the 4 mA live zero and can be flagged by the drive as reference loss. For unattended machinery, take the live zero.
How many drives can one gateway PLC command?
The analog outputs set the ceiling: each drive needs one, plus one discrete run output and two status inputs. A base unit with two analog outputs commands two motors; beyond that, expansion I/O and the per-drive wiring bundles grow together, and a multi-drop network becomes the cleaner architecture for the line.
Could the gateway pass if the scanner's keying check were relaxed?
Even past keying, the scanner expects the drive's input and output assemblies, meaning the exact byte layout the drive published, and the gateway would have to reproduce them including status words for faults it never has. That is a drive emulator with no diagnostics behind it, and writing one costs more than the single program edit the honest options need.