IMDHMIControls LibraryShop main store

Explainer

Can a SINAMICS G150 talk Modbus TCP to a PLC

Drives and motion Published 7 min read

Short answer

No. The SINAMICS G150 has no Modbus TCP server to answer a PLC client; its documented links are PROFIBUS DP as standard on the CU320-2 DP Control Unit, PROFINET through option K95 or the CBE20 board, CAN through the CBC10 board, and digital I/O. Bring the data in natively over PROFIBUS or PROFINET, through a PROFIBUS-master-to-Modbus-TCP-server gateway, or as hardwired signals.

On this page
  1. The interfaces the G150 actually has
  2. Why a Modbus TCP module on the PLC gets no answer
  3. Route one: native PROFIBUS DP or PROFINET
  4. Route two: a PROFIBUS master to Modbus TCP server gateway
  5. The scaling arithmetic behind the numbers
  6. Route three: hardwired signals
  7. Checks that prove the data path
  8. The decision, case by case
  9. Questions asked

No. The SINAMICS G150 has no Modbus TCP server, so a Modbus TCP module added to your Allen-Bradley PLC will never pull data from it: nothing on the drive answers a Modbus request, and no drive setting can create that answer. The G150's documented links to a control system are PROFIBUS DP as standard on the CU320-2 DP Control Unit, PROFINET via the CU320-2 PN Control Unit (option K95) or the CBE20 board, CAN via the CBC10 board, and digital I/O at the terminals. Every value you need still reaches the PLC, through one of three routes: a native PROFIBUS or PROFINET module in the rack, a gateway that masters the drive over PROFIBUS and serves Modbus TCP back out, or a handful of hardwired signals. The wider menu of PLC-to-drive links is compared in how a PLC controls a VFD: five interfaces compared.

The interfaces the G150 actually has #

Before ordering anything, check the drive's order documentation or options list against this table; a unit with the DP Control Unit and no CBE20 board has PROFIBUS and nothing else on the bus side.

Interface Hardware on the G150 Role on the network
PROFIBUS DP Standard customer interface on the CU320-2 DP Control Unit Drive is a DP slave; the controller side must be the master
PROFINET CU320-2 PN Control Unit (option K95) or the CBE20 communication board Drive is a PROFINET IO device with the PROFIdrive profile, 100 Mbit/s full duplex
CAN CBC10 communication board CAN link with two SUB-D sockets to chain to the next node
Digital signals Control Unit and customer terminal module inputs and outputs Hardwired command and status bits

Both optional boards plug into the option slot on the Control Unit, so one Control Unit carries one board, not both. The CBE20 adds PROFINET to a Control Unit that otherwise has PROFIBUS only; the two networks then run side by side, and the configuration is covered in configuring dual PROFIBUS and PROFINET on a SINAMICS CU320-2. The PROFINET interface itself, X150, has two onboard ports, and the drive holds a total of eight acyclic connections at once; the second port lets the cable run on to the next node without a separate switch.

Why a Modbus TCP module on the PLC gets no answer #

Modbus TCP is a client/server protocol: your module would be the client, opening a TCP connection to a server on port 502 and sending function codes that read or write numbered registers. That works only if the device at the far end runs a Modbus server with a register map, and the G150 does not. Its fieldbus runs the PROFIdrive profile, which has no register map at all: controller and drive exchange cyclic process data whose layout is fixed by the telegram selected in the drive — typically a control word and speed setpoint going in, a status word and actual speed coming back, with longer telegrams carrying more setpoints and actual values — and everything else is reached acyclically by parameter number.

The port on a PROFINET Control Unit does not change this, even though PROFINET rides on the same Ethernet cabling as Modbus TCP. That connector speaks PROFINET IO with PROFIdrive; no process in the drive listens on port 502, so your module's requests simply time out.

The data that comes across is therefore the telegram contents plus any parameter the drive documents. The parameter list and the connection procedure are in the SINAMICS G150 operating instructions for converter cabinet units, 75 kW to 1500 kW. How the PLC side sequences the control word and setpoint writes to a PROFIBUS drive is walked through in fixing missing setpoint and control word writes to a PROFIBUS drive.

Route one: native PROFIBUS DP or PROFINET #

This is the cleanest path: no extra box, no second protocol, and acyclic parameter access straight from the controller. The PLC side needs an in-chassis module that acts as controller on the drive's network: a PROFIBUS DP master — the G150 is the slave — or, with the PN Control Unit or a CBE20 present, a PROFINET IO controller. Third-party modules for the Allen-Bradley rack, from ProSoft for example, cover both; match the module to your exact controller family before ordering. The cyclic telegram exchange with a PROFINET drive is shown step by step in controlling a PROFINET servo drive with cyclic telegram data. The engineering cost sits in your PLC program: the module drops the telegram words into a data table, and your logic scales and routes them.

Route two: a PROFIBUS master to Modbus TCP server gateway #

When the PLC must stay Modbus TCP, put the conversion in a gateway: its PROFIBUS side masters the drive, and its Ethernet side runs the Modbus TCP server the PLC connects to. The PLC then needs only the Modbus TCP client capability it already has. One unit specified for exactly this job is the Anybus AB7629; confirm the current model in the gateway maker's catalog at order time. Commission it in this order:

  1. Identify the Control Unit variant and its interface from the nameplate and options list.
  2. Select the telegram in the drive that carries the values you need, and note the word order and scaling of each process value.
  3. Set a unique PROFIBUS station address on the drive — the usable range is 1 to 125 — and enter the same address in the gateway's master configuration.
  4. Map the gateway's PROFIBUS input and output data to Modbus register ranges, and document that register table; it is the map your PLC code will live on.
  5. Point the PLC's Modbus TCP client at the gateway's IP address, TCP port 502, and scale the counts to engineering units as shown below.

Several drives can share one gateway's PROFIBUS segment; the one-drive-at-a-time bring-up for five VFDs behind one Modbus gateway is in how to commission five VFD drives on one Modbus gateway.

The scaling arithmetic behind the numbers #

PROFIdrive normalizes speed to a fixed integer scale: 16384 (4000 hex) means 100%, and 100% is whatever the drive's speed reference parameter is set to. Read that parameter and record it beside your register table, because it is the one value that moves the conversion — double it and every count is worth twice the rpm. Illustrative example, so substitute your own reference speed and redo the lines:

  • Reference speed set to 1500 rpm.
  • PLC writes 8192 (2000 hex) into the setpoint word: 8192 / 16384 = 0.5, and 0.5 × 1500 rpm = 750 rpm.
  • With the motor at 750 rpm, the actual-value word reads 8192 back in the PLC.
  • Resolution: 1500 rpm / 16384 ≈ 0.092 rpm per count, so PLC and drive display should agree within about 0.1 rpm once the scaling is right.

Route three: hardwired signals #

When the PLC needs a run command and two or three status bits, wire them: the Control Unit and its customer terminal module provide digital inputs and outputs for exactly that. You give up the speed value, the fault number and anything acyclic, and every signal costs a wire and a terminal, so use this route only while the bit count stays in single figures.

Checks that prove the data path #

Run these four checks in commissioning, whichever route you chose:

  • Bus state: the gateway or in-chassis module reports the drive in data exchange, not searching or faulted.
  • Status word: with the drive stopped and healthy, the status word read in the PLC matches the value on the drive's own display.
  • Scaling: command a known setpoint and compare the actual-value word against the drive display, within the resolution calculated above.
  • Fault propagation: trip the drive from an external fault input and confirm the fault bit reaches the PLC within a few bus cycles.

One line on safety: commands over any of these paths are commands, not safety functions — safe torque off stays on its own hardwired circuit, exactly as the machine's safety design specifies.

The decision, case by case #

  • Drive has the PN Control Unit or a CBE20, and your rack takes a PROFINET IO controller module: go native PROFINET; add nothing to the drive.
  • Drive has the DP Control Unit, and your rack takes a PROFIBUS DP master module: go native PROFIBUS; add nothing to the drive.
  • The PLC must stay Modbus TCP: buy the PROFIBUS-master-to-Modbus-TCP-server gateway; on the drive, only the telegram selection and the station address change.
  • You need only a few run and status bits: hardwire them and buy no bus hardware at all.
  • In every case the PLC-side Modbus TCP module is the wrong purchase for this drive, because it has no Modbus server to talk to; keep such a module for devices that actually run one.

Questions asked

Does a CBE20 board let a CU320-2 DP run PROFIBUS and PROFINET at the same time?

Yes. PROFIBUS keeps running on the Control Unit's standard port while the board's PROFINET interface comes up beside it, and two different controllers can each own one connection to the same drive. Each connection gets its own telegram configuration, and the two networks exchange nothing with each other unless your logic copies data across.

Why does a value read through a gateway look byte-swapped?

Modbus sends each 16-bit register with the high byte first, while PROFIBUS puts the low byte on the wire first. A gateway that forwards bytes without swapping turns a speed into nonsense. Send a known pattern during commissioning, for example a half-speed setpoint; if the value comes back swapped, turn on the gateway's byte-order setting for that register range and repeat the test.

Can the PLC read drive parameters through a gateway, or only the cyclic data?

Usually only the cyclic data. A PROFIBUS-master-to-Modbus-server gateway maps the telegram words into registers, and most models do not pass acyclic parameter telegrams. If you need access by parameter number, for example to fault buffers or diagnostic lists, take the native PROFIBUS or PROFINET route, where the controller's acyclic services reach the drive directly.

Which PROFIBUS settings must match between the gateway and the drive?

Only the station address. PROFIBUS slaves detect the baud rate from traffic on the bus, so the drive needs no baud setting; the rate the master selects applies to the whole segment. Set a unique station address on the drive, enter the same number in the gateway's master configuration, and the link comes up without any other matching.

Keep reading

  • How-to

    Bridging a PLC-5/15 DH+ network to a Kinetix 300 servo drive

    Yes, a DH+-to-EtherNet/IP gateway exchanges command and feedback words between a PLC-5/15 and a Kinetix 300, but it only moves data: the drive must execute the motion profile locally. Replace the stepper controller, pulse expander, and encoder-counter functions with an eight-word map that carries a 32-bit position as two 16-bit words behind a data-valid handshake. If the machine needs trajectory points streamed per scan, migrate the controller instead of bridging it.

    Drives and motion

  • Explainer

    Can a PLC gateway replace a networked VFD with hardwired I/O

    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.

    Drives and motion

  • How-to

    Control a PROFINET servo drive with cyclic telegram data

    No motion library is needed when a PLC only exchanges cyclic process data with a PROFINET servo drive: import the device description, attach the drive, select the same telegram the drive is configured for, and map the words. Standard telegram 1, PZD 2/2, is two 16-bit words each way — four bytes per direction — and the PLC logic sequences control word STW1 and reads status word ZSW1.

    Drives and motion