IMDHMIControls LibraryShop main store

How-to

Command a PowerFlex 525 from a Productivity PLC over Modbus

Drives and motion Published 6 min read

Short answer

Yes: a Productivity P1-622 can start, stop, and speed-command a PowerFlex 525 over Modbus RTU. Set the drive's command source and speed-reference source to the communications port, then read and write the documented addresses with MRX and MWX. If the sources still point at the terminals or keypad, every write succeeds and the drive ignores it.

On this page
  1. Pick Modbus RTU before you pick addresses
  2. Set the drive's sources before the PLC writes anything
  3. Bring the link up in order
  4. Converting 0x2100 from the PowerFlex table into a register number
  5. Read the failure through the reply
  6. Polling, speeds, and more drives
  7. Questions asked

Yes — start, stop, and speed control of a PowerFlex 525 from a Productivity P1-622 over Modbus works, and the pattern is fixed: the PLC is the Modbus client, the drive is the server, and every command lands on an address copied from the drive's Modbus Addressing table. Two instructions carry the traffic: MWX writes the run command and the frequency reference, MRX reads status and feedback. The step that decides whether the motor moves comes before any addressing — the drive's command source and speed-reference source must point at the communications path. Skip that and you get the classic failure: every write completes, the drive stays idle, and the addressing gets blamed.

Pick Modbus RTU before you pick addresses #

The documented Modbus route on the PowerFlex 525 is Modbus RTU on the drive's serial port; the Compact-class Modbus quick start that covers the 525 is written around RTU. The Ethernet integration documented for this drive family is EtherNet/IP — an embedded adapter, with a dual-port adapter as a documented option — and it is configured by a different method, not Modbus on a network cable. Hardwired start/stop plus an analog speed channel will always run the drive, at the cost of physical I/O and far less diagnostic visibility. A full trade study of the five ways a PLC can command a VFD is in how a PLC controls a VFD: five interfaces compared.

Decision for this job: one drive, one controller, and you want a control word, a reference, a status word, and a fault word in the program — Modbus RTU on two wires. If the surrounding plant already speaks EtherNet/IP, follow configuring a PowerFlex 525 on EtherNet/IP instead and do not bridge the two methods.

Set the drive's sources before the PLC writes anything #

The 525 takes its start/stop decision from its command-source setting and its speed from its speed-reference-source setting; both are named in the drive's communications documentation, and for network control both must be set to the communications port.

Then set the Modbus node address — unique on the link, inside the 1 to 247 range the Modbus protocol allows, with 0 reserved for broadcast. Last, set the drive's communications-loss action so a silent command path produces the response your risk assessment requires; on a machine whose only stop path is the network, that setting is what stops the motor when the cable is cut.

Drive setting What to choose What you see when it is wrong
Command source The communications port Writes complete; the drive never starts or stops
Speed-reference source The communications port The drive runs at a keypad or terminal speed
Modbus node address Unique value, 1-247 Timeouts, or another device answers
Communications-loss action The response the risk assessment requires The machine's reaction to a broken cable surprises everyone
  1. Match the physical layer first: for RTU, one RS-485 pair with correct polarity, shield, and the termination or bias the drive manual calls for, and identical baud rate, parity, and stop bits at both ends.
  2. Set the drive's node address and the PLC's target address to the same value, and confirm no other device on the link owns it.
  3. Set command source, speed-reference source, and communications-loss action before the PLC sends anything.
  4. Copy the command, reference, status, and feedback addresses out of the Modbus Addressing table as a group, each with its documented data width, signedness, scaling, and byte order. A numerically correct address with the wrong width or scaling gives you a transaction that succeeds and a value you cannot use.
  5. Resolve the address convention with a read, not a write: run one MRX against a status register and compare the data with the drive's own display, as worked out below.
  6. Prove the network stop before the first network start, with the motor uncoupled or the load blocked — a drive that accepts an unread permissive can start a machine nobody is watching.
  7. Add the MWX write to the frequency-reference address and command a low speed; confirm the drive's displayed output frequency follows.
  8. Add the run/stop write to the command address, and latch your logic on the status that MRX brings back — never on the MWX completion bit, which proves the write arrived, not that the motor ran.

Converting 0x2100 from the PowerFlex table into a register number #

The inputs: the PowerFlex Modbus documentation presents data addresses zero-based in hexadecimal, and 0x2100 is an address written exactly that way; the MWX or MRX instruction you configure takes its register field in one of two conventions — zero-based addresses or one-based register numbers — so the conversion has to be deliberate, not discovered by trial.

The rule in words: convert the hexadecimal address to decimal, then add one register only if the instruction expects one-based numbers.

The arithmetic:

0x2100 = 2 × 4096 + 1 × 256 + 0 × 16 + 0 × 1 = 8192 + 256 = 8448

8448 + 1 = 8449

The result: one object, two numbers — 8448 for a zero-based instruction, 8449 for a one-based instruction, exactly one register apart. The decision: settle it with one MRX read before any write. The right convention returns the documented object's data; the shifted one returns an exception or the neighboring object's value. Lock that convention into every transaction on the drive, and never hunt a one-register offset by writing run commands to neighboring addresses.

Read the failure through the reply #

The drive's answers localize the fault faster than guesswork:

  • No reply to any request and no exceptions: the failure is below the protocol — wiring, polarity, termination, framing, or node address. Fix that layer before touching logic.
  • Exception responses or wrong-looking data: the drive is talking, and the register number, width, or convention is off — redo the address conversion above.
  • Writes complete, drive idle: the sources, a missing permissive, or an active fault. Read the status word; it says which state the drive is actually in.
  • Drive runs at the wrong speed: reference scaling or byte order, taken from the same table row.

Those signatures recur across controllers and drives, and a worked case of tracing MRX and MWX faults on a Modbus RTU link shows the method end to end.

Polling, speeds, and more drives #

Run one outstanding transaction per port and pace each new request from the completion or timeout of the last; stacking simultaneous MWX and MRX requests on one serial port is the usual cause of intermittent failures. For pacing patterns that keep a serial poll fast without pileups, read how MRX and MWX poll Modbus RTU devices efficiently.

Different frequencies are just new values in the reference write: the last write wins, the drive enforces its own programmed speed limits, and MRX on the feedback object shows what the drive actually did. More PowerFlex 525 drives can share the same RS-485 bus, each on its own node address in the documented range, polled in sequence. When the drive count grows past what one PLC port should carry, the ordering and commissioning sequence is laid out in commissioning five VFD drives on one Modbus gateway.

Questions asked

My MWX writes complete but the PowerFlex 525 will not run. Is my addressing wrong?

Usually not. If the transaction completes, the route and register are fine; the drive is refusing the command because its command source or speed-reference source still points at the terminals or keypad, or because a fault or permissive blocks the start. Set both sources to the communications port, then read the drive status with MRX: the status word tells you which state the drive is actually in.

Can the P1-622 reach this drive over Modbus TCP instead of RTU?

Use RTU. The documented Modbus implementation on this drive is Modbus RTU over its serial port, and the Ethernet integration documented for this drive family is EtherNet/IP, configured by a different method. A Productivity CPU with no matching serial path needs a converter or the EtherNet/IP route, not an assumed Modbus TCP session to the drive.

How do I command several different frequencies?

Write the speed reference to the documented reference address with MWX, using exactly the scaling, width, and byte order printed in the same row of the Modbus Addressing table. Change the value whenever the process needs it: the last write wins, and the drive applies its own programmed speed limits. Read the feedback object with MRX to confirm what the drive actually produced.

What happens if the Modbus cable breaks while the motor is running?

The drive's communications-loss action decides. That documented setting defines the drive's response when its command path goes silent, so set it before you rely on the network as a stop path. If losing the cable must stop the machine, the setting has to make it stop, and proving that behavior belongs in commissioning, not in an incident.

Can more than one PowerFlex 525 share the link?

Yes. Give each drive its own Modbus node address inside the documented 1 to 247 range, wire them on one properly terminated RS-485 bus, and let the PLC poll them in sequence, one outstanding transaction at a time. Stagger the reads and writes so a slow or faulted drive cannot starve the others of polling time.

Keep reading

  • How-to

    Control an ATV12 drive from a TM200 PLC over Modbus RTU

    The ATV12 takes start/stop from register 8601 (CMD) and speed from register 8602 (LFRD, in rpm) once you set Fr1 to Mdb in the CtL- menu and match address, baud, parity and stop bits at both ends. The ladder then writes both words cyclically, one request at a time, gated on completion. Start from the TVDA sample project in Machine Expert Basic.

    Drives and motion

  • How-to

    Connect a MicroLogix 1100 to a PowerFlex 4M over Modbus

    Use a 1763-NC01 cable to break out the MicroLogix 1100 RS-485 port, land the drive side on an AK-U0-RJ45-TB2P terminal block, set both ends to the same Modbus RTU format with a unique node address on the drive, and run one MSG at a time, waiting for DN or ER before the next. Never use that cable on a MicroLogix 1200 or 1500; it can damage the controller.

    Drives and motion

  • How-to

    Control a PowerFlex 525 drive from two PLC controllers

    Yes — add the PowerFlex 525 to the Logix controller's Ethernet tree and its command tags appear, but a cyclic drive connection has exactly one owner. Give the Logix controller that ownership, read the MicroLogix machine's request into it, and let one rung select the command the drive follows. Never let two controllers write the speed reference.

    Drives and motion