Selection guide
Modicon Premium to ABB robot Modbus communication options
Short answer
Connect a Modicon Premium PLC to an ABB IRC5 robot through a protocol gateway that translates Modicon Modbus TCP to the robot's installed native fieldbus option, such as PROFINET or EtherNet/IP. ABB IRC5 controllers do not include a single native Modbus TCP fieldbus option, and a Modbus TCP-to-serial converter cannot make an unmodified robot serial port speak Modbus. Reserve custom RAPID sockets or serial character parsing for low-rate non-cyclic transfers only after verifying the required RobotWare options and loaded round-trip timing.

On this page
- Can an ABB robot talk Modbus directly to a Modicon Premium PLC?
- Which communication architecture should you choose for this link?
- What limits apply on the Modicon Premium Ethernet and serial ports?
- When does a Modbus TCP-to-serial gateway actually work?
- How fast is a serial link compared to an Ethernet gateway?
- What does custom RAPID socket or serial code require on an ABB controller?
- How should you verify and commission the Modicon-to-ABB link?
- Questions asked
Pair a Modicon Premium Ethernet module with a protocol gateway that translates Modbus TCP into the ABB robot's installed native fieldbus option, such as PROFINET or EtherNet/IP. ABB IRC5 controllers lack a native RobotWare Modbus TCP fieldbus option, and a Modbus TCP-to-serial converter will not make an unmodified robot serial port speak Modbus. Confirm the robot's installed communication options first, verify Ethernet socket headroom on the PLC, and reserve custom RAPID sockets or serial character parsing strictly for low-rate non-cyclic transfers.
Can an ABB robot talk Modbus directly to a Modicon Premium PLC? #
No, an ABB IRC5 controller has no single native RobotWare Modbus TCP fieldbus option equivalent to 841-1 EtherNet/IP Scanner/Adapter or 888-2 PROFINET, so a direct cable to a Modicon Premium cannot exchange Modbus registers without a gateway or custom RAPID code.
Matching Ethernet, RS-232, or full-duplex RS-422 connectors only solves electrical transport, not application commands. Under the Modbus Organization MODBUS Messaging on TCP/IP Implementation Guide, Modbus TCP listens on IANA-reserved port 502 and wraps each Protocol Data Unit in a 7-byte MBAP header: a 2-byte Transaction Identifier, a 2-byte Protocol Identifier (0x0000), a 2-byte Length field, and a 1-byte Unit Identifier. A robot port carrying raw TCP streams or serial bytes ignores those frames unless protocol software interprets them.
ABB builds IRC5 machine coordination around cyclic industrial fieldbuses such as EtherNet/IP, PROFINET, or DeviceNet, where the controller exchanges mapped digital and group signals deterministically alongside motion execution. The configuration needed on each side of an ABB robot PROFINET link shows how native fieldbus mapping keeps handshakes out of text-parsing code. ABB OPC Server addresses a separate supervisory robot-to-PC path, not PLC interlocks: if a cell needs a cabinet host for OPC or data logging beside the controller, run that PC workload on an industrial mini PC and keep PLC-to-robot coordination on the fieldbus.
Which communication architecture should you choose for this link? #
Choose a Modbus TCP-to-fieldbus protocol gateway translating Modicon Premium Ethernet registers into the ABB controller's installed native fieldbus for all cyclic coordination, because it preserves deterministic robot I/O scanning and avoids maintaining custom protocol parsing inside RAPID.
| Architecture | Required ABB capability | Modicon Premium side | Trade-off | Decision |
|---|---|---|---|---|
| Modbus TCP-to-fieldbus gateway | Native 888-2 PROFINET, 841-1 EtherNet/IP, or DeviceNet option | TSX ETY 4103 or TSX ETY 5103 (I/O Scanning or explicit messaging) | Deterministic cyclic robot I/O mapping with one gateway hop | Select first for cyclic machine coordination |
| Modbus TCP-to-serial gateway | Serial endpoint already speaking Modbus RTU or ASCII | TSX ETY 4103 or TSX ETY 5103 Ethernet port | Adds serial wire delay; does not add Modbus to raw robot ports | Reject for native ABB serial ports |
| Custom RAPID TCP/IP sockets | 616-1 PC Interface plus 623-1 Multitasking | TSX ETY 4103 or TSX ETY 5103 explicit messaging | Framing, parsing, and retries live in background RAPID code | Low-rate non-cyclic jobs only |
| Serial Character Mode + RAPID parser | Configured RS-232 or RS-422 port (plus 623-1 for background reads) | TSX SCY 21601 with TSX SCP 111 or TSX SCP 114 | Hardware speed cap and non-deterministic text parsing | Last resort on legacy cells |
A protocol gateway lets the Modicon scan contiguous %MW registers over Ethernet while the robot reads standard cyclic group signals, following the same architecture as setting up an Anybus DeviceNet master gateway for IRC5 robots and reading PLC integer registers into ABB robot RAPID. Do not specify a generic "Modbus TCP to TCP/IP gateway": TCP is only a transport layer, so the gateway datasheet must explicitly name the ABB controller's target application protocol.
What limits apply on the Modicon Premium Ethernet and serial ports? #
On a Modicon Premium rack, TSX ETY 4103 and TSX ETY 5103 Ethernet modules cap simultaneous TCP connections at 64 across all services combined, while TSX SCP 111 and TSX SCP 114 PCMCIA serial cards stop at 19,200 bps in hardware.
Per the Schneider Electric Premium and Atrium using EcoStruxure Control Expert Ethernet Network Modules User Manual, both Ethernet cards share that connection pool across Modbus TCP messaging, I/O Scanning, Global Data, FDR server, SNMP, and embedded web services. Each remote device in the I/O Scanning table consumes one dedicated TCP socket, leaving the rest for explicit clients and web access.
Explicit READ_VAR and WRITE_VAR calls use a 4-word GEST management array: %MWgest (Word 0) carries exchange control and activity bit %MWgest.0, %MWgest+1 (Word 1) holds the Communication/Operation Report (MSB status, LSB detailed error or exception code), %MWgest+2 (Word 2) sets the timeout in seconds, and %MWgest+3 (Word 3) reports exchanged length. Never leave Word 2 at 0: a zero timeout causes an infinite wait where an unplugged Ethernet cable can lock the TCP socket until a PLC restart, so set a non-zero limit such as 15 seconds.
For serial links, the TSX SCY 21601 multiprotocol module supplies an isolated RS-485 channel plus a PCMCIA Type III slot accepting the TSX SCP 111 (RS-232D, 9-pin D-Sub, 0.3 to 19.2 kbit/s) or TSX SCP 114 (switch-selectable RS-485/RS-422, 1.2 to 19.2 kbit/s); neither card supports 38,400 bps. All three run Modbus, Uni-Telway, and Character Mode in Unity Pro or EcoStruxure Control Expert. Character Mode uses OUT_IN_CHAR, PRINT_CHAR (up to 1,024 bytes depending on module), and INPUT_CHAR, waiting for %MWgest.0 to return to 0 before triggering the next call; see configuring TSX Premium RS-422 character communication for differential port setup.
When does a Modbus TCP-to-serial gateway actually work? #
A Modbus TCP-to-serial gateway works only when the serial device already implements Modbus RTU or Modbus ASCII within the 256-byte serial ADU limit, so it cannot bridge a Modicon Premium to a raw ABB robot serial port.
Under the Modbus Organization MODBUS over Serial Line Specification and Implementation Guide V1.02, a serial ADU holds a 1-byte address, up to a 252-byte PDU, and a 2-byte error check across 256 addresses (0 broadcast, 1 to 247 unicast slaves, 248 to 255 reserved). Mandatory RTU mode sends 8-bit binary bytes with CRC-16 framed by a silent interval of at least 3.5 character times before and after each frame; optional ASCII mode encodes each byte as two hexadecimal ASCII characters between : and CR/LF with LRC checking. While direct Modbus TCP servers typically ignore a 0x00 or 0xFF Unit Identifier, Ethernet-to-serial gateways route by that byte and echo it back unchanged.
When the cell actually includes a compliant Modbus serial device rather than a raw robot channel, size the gateway to the serial wiring and master count:
| Gateway model | Serial interface and baud range | Capacity | Power and isolation |
|---|---|---|---|
| ConneXium TSX ETG 100 | RS-485 up to 57.6 kbps; RJ45 RS-232 up to 38.4 kbps | Up to 32 serial devices on RS-485 | 24 VDC or IEEE 802.3af PoE |
| FactoryCast TSX ETG 1000 | RS-485 master up to 115.5 kbps; male SUB-D 9 RS-232C up to 57 kbps | Includes Class C20 web server | 24 VDC (19.2 to 30 VDC) |
| Moxa MGate MB3180 | Software-selectable RS-232, RS-422 (Tx+, Tx-, Rx+, Rx-, GND), 2/4-wire RS-485; 50 bps to 921.6 kbps |
Up to 16 Modbus TCP masters (32 requests each) and 31 serial slaves | 12 to 48 VDC; 1.5 kV Ethernet isolation; 0 to 60 degrees C |
Even with an RS-422 port matching the robot's electrical pairs (Tx+, Tx-, Rx+, Rx-, GND), these bridges only speak Modbus on the serial side. Unless custom RAPID code implements a complete Modbus slave stack, pick a Modbus TCP-to-fieldbus gateway matched to the robot's installed option instead.
How fast is a serial link compared to an Ethernet gateway? #
At the Modicon Premium PCMCIA hardware ceiling, a bidirectional 16-register Modbus RTU exchange spends 61.9 ms on wire time and silent-gap framing alone, pushing an illustrative round trip to 141.9 ms and breaking a 100 ms cell data-age budget.
Consider a worked example exchanging 16 holding registers (32 payload bytes) in both directions against an illustrative 100 ms data-age limit. Using the documented 19,200 bps ceiling of the PCMCIA serial cards and standard 11-bit RTU characters (1 start, 8 data, 1 parity, 1 stop), one character takes 11 bits / 19,200 bits/s = 0.573 ms and each required silent gap takes 3.5 * 0.573 ms = 2.01 ms (38.5 bit times).
- RTU read (16 registers): an 8-byte request plus a 37-byte response equals 45 bytes (
495 bits), plus 77 bits for two silent intervals (572 bitstotal), taking572 bits / 19,200 bits/s = 29.8 ms. - RTU write (16 registers): a 41-byte request plus an 8-byte response equals 49 bytes (
539 bits), plus 77 bits for two silent intervals (616 bitstotal), taking32.1 msat that same serial speed. - Combined RTU wire time:
29.8 ms + 32.1 ms = 61.9 msbefore PLC or robot processing. - Illustrative endpoint overhead: adding two 15.0 ms PLC scan cycles waiting for
%MWgest.0to clear (30.0 ms) and two 25.0 ms RAPID background responses (50.0 ms) totals141.9 ms, putting the link 41.9 ms past the illustrative budget before retries or motion-load jitter. - Modbus ASCII read alone: at 10 bits per character, a 17-character request and 75-character response transmit
920 bits, requiring47.9 msat that baud ceiling for one read before turnaround or writes.
Because serialized request-response loops block each next transaction, serial Modbus RTU polling cycles accumulate delay rapidly as payloads grow. Now check Ethernet I/O Scanning headroom on a TSX ETY 4103 or TSX ETY 5103 in the same illustrative cell: with 12 scanned I/O devices, 4 SCADA client sockets, and 2 engineering or web sessions (18 active sockets), adding one Modbus TCP-to-fieldbus gateway takes one dedicated socket for 19 connections total, leaving 45 sockets free below the module's ceiling while cycling read and write words over 100BASE-TX Ethernet.
What does custom RAPID socket or serial code require on an ABB controller? #
Custom TCP/IP messaging on an ABB IRC5 requires RobotWare option 616-1 PC Interface for socket instructions and 623-1 Multitasking to listen without stalling motion task T_ROB1, while serial links require configured Communication parameters and trailing-colon device names such as "COM1:" in RAPID.
Without 616-1 PC Interface, socket calls raise an "Option needed: PC Interface" runtime error. With both options installed, a background task declares VAR socketdev and uses SocketCreate with SocketConnect (client) or SocketBind, SocketListen, and SocketAccept (server), then exchanges strings via SocketSend and SocketReceive (supporting \Str and \TimeOut) before SocketClose. Every byte of protocol framing and recovery rests in your RAPID code, and background task execution competes with controller workload rather than running on a deterministic I/O scan.
On IRC5 and S4Cplus serial ports, configure baud rate, data bits, parity, and stop bits under System Parameters -> Communication and declare VAR iodev targeting "COM1:" or "COM2:". Binary frames use Open "COM1:", serial_channel \Bin;, ClearIOBuff serial_channel;, WriteStrBin (for example appending \0D for carriage return), and ReadStrBin(serial_channel, length \Time:=5), where serial_channel and length are illustrative user variables; delimited ASCII uses Open with \Read, ReadStr, and Close. Reserve custom RAPID links only for low-rate non-cyclic transfers such as part IDs when no fieldbus option can be installed.
How should you verify and commission the Modicon-to-ABB link? #
Audit the robot controller model and installed RobotWare options before buying hardware, test one changing diagnostic word under full robot motion load, and keep every emergency stop and protective-stop interlock completely off the PLC-to-robot data link.
- Verify both endpoints first. Record the ABB controller generation (IRC5 or S4Cplus) and installed RobotWare options alongside the Modicon Premium communication card part numbers and current Ethernet TCP connection count.
- Keep one primary cyclic fieldbus. Route machine coordination through the robot's native fieldbus via the protocol gateway, matching why industrial cells keep one primary cyclic fieldbus alongside secondary Modbus diagnostics.
- Freeze the data map and fault state. Document producer, consumer, word count, signedness, scaling, byte order, and fail-safe outputs (clear or hold) on link loss before enabling motion commands.
- Prove one changing register end-to-end. Toggle a diagnostic counter and confirm identical values at the PLC memory word, gateway buffer, and RAPID variable without disturbing adjacent addresses.
- Measure loaded latency and set watchdogs. Capture timestamped traces while the robot executes its heaviest production path, then size the Modicon
GESTtimeout and robot watchdog from that loaded worst case so an unplugged cable faults cleanly. - Isolate safety circuits. Keep emergency stops, light curtains, gate switches, and safe-stop functions on hardwired safety relays or a certified safety fieldbus; standard Modbus TCP, serial ASCII, and RAPID sockets are not safety-rated interfaces.
Decision by cell setup: if your ABB IRC5 carries PROFINET, EtherNet/IP, or DeviceNet, install a Modbus TCP-to-fieldbus protocol gateway polled from the Modicon Premium Ethernet module's I/O Scanning table. If the goal is supervisory SCADA or historian collection, run ABB OPC Server on a separate cabinet computer rather than routing it through PLC handshakes. Use a Modbus TCP-to-serial converter only for a true Modbus serial target, and fall back to licensed RAPID sockets or Modicon Character Mode solely for low-rate non-cyclic jobs verified under production motion load.
Questions asked
Why does Modicon READ_VAR return Operation Report 512 through a gateway?
Operation Report 512 (hexadecimal 0200, Incorrect Response) signals either an unsupported Modbus function code or memory type, such as requesting input registers when the target only exposes holding words, or a Unit ID mismatch. Direct servers normally ignore a default Unit ID, whereas gateways need that routing byte to reach the serial slave. Append an explicit Unit ID to the address string in EcoStruxure Control Expert, for example IP 192.168.1.50 with Unit ID 255 or Unit ID 1, and re-test.
What happens if you wire a Modicon RS-485 port directly to an ABB RS-422 port?
Direct wiring fails even when baud rate, parity, and stop bits match, because two-wire RS-485 shares one half-duplex differential pair while full-duplex RS-422 separates transmit and receive onto dedicated pairs plus signal ground. A TSX SCY 21601 built-in port is fixed to RS-485, so you must install a TSX SCP 114 PCMCIA card switched to RS-422 mode or use a gateway with an RS-422 port wired transmit-to-receive with common ground. Remember that electrical matching still requires a compatible protocol on both ends.
When does a cabinet gateway need an MGate MB3170 instead of an MGate MB3180?
Step up from the MGate MB3180 to the MGate MB3170 when a Modbus TCP-to-serial installation exceeds 16 simultaneous Modbus TCP masters, since the MB3170 expands capacity to 32 masters. The MB3170 also adds dual cascaded 10/100BaseT(X) Ethernet ports sharing a single IP address for daisy-chain wiring, redundant dual 12 to 48 VDC power inputs, optional 2 kV serial isolation on -I models, and -40 to 75 degrees C wide-temperature -T variants for unconditioned enclosures.
How do you prevent a locked port when an ABB RAPID link drops mid-frame?
Trap the documented communication errors inside the RAPID error handler and reset the channel cleanly rather than leaving the handle open. On TCP sockets, catch ERR_SOCK_TIMEOUT and ERR_SOCK_CLOSED to execute SocketClose before recreating and reconnecting or re-accepting the connection. On serial ports, catch ERR_DEV_MAXTIME for read timeouts caused by wiring, baud, or handshake faults and ERR_FILEOPEN for an already-open port, then flush stale data with ClearIOBuff and run Close before reopening the device.


