Modbus TCP/IP for ABB
Ethernet-based variant of Modbus using TCP/IP. Combines simplicity of Modbus with speed and scalability of Ethernet.
Protocol Overview
ABB AC500 Automation Builder (CODESYS) provides Modbus TCP through SysLibModbusTCP library. Works with built-in Ethernet on TB521-ETH or CM577-ETH modules.
When to Use Modbus TCP/IP
Choose Modbus TCP/IP for SCADA systems, plant-wide networks, remote monitoring, or when integrating industrial equipment with IT systems.
ABB Hardware Requirements
Compatible Communication Modules
TB521-ETH (AC500-eCo built-in)CM577-ETH (AC500 Ethernet + serial)TB511-ETH (AC500-eCo V3)AI562-S (I/O module with Modbus TCP)Wiring Details
Network Setup
Configure IP in Automation Builder device tree. Supports 10/100Mbps. Port 502 standard.
ABB Software & Programming
Function Blocks & Instructions
MODBUSMASTER_TCP (SysLibModbusTCP)MODBUSSLAVE_TCPMODBUS_CLIENT_REQUESTTCP_Connection managementABB Code Example
fbModbusTCPMaster( config := tcpConfig, request := tcpRequest, xExecute := xExecute, pData := ADR(readBuffer), => xDone => xDone, => eState => eState ); // config.sIPAddr := '192.168.1.10' // config.uiPort := 502
ABB-Specific Implementation Notes
CODESYS-based, portable to other CODESYS controllers. eState provides connection state machine status. Supports connection pooling for multiple slaves. Typical response time 5-15ms on 100Mbps network.
Technical Specifications
Physical Layer
- Physical Layer: IEEE 802.3 Ethernet
- Cable Type: Cat5e/Cat6 Ethernet
- Topology: Star, Tree, Ring
- Power Over Cable: No
Data Layer
- Data Link: TCP/IP
- Encoding: Binary
- Error Detection: TCP checksum
- Frame Size: 1500 bytes (MTU)
Performance
- Scan Time: 1-10ms typical
- Deterministic: No
- Real-Time: No
Certification
- Certification Required: No
- License Cost: Free (open standard)
- Version: Current
Advantages & Disadvantages
Advantages
- ✓High speed (up to 1 Gbps)
- ✓Uses standard Ethernet infrastructure
- ✓Unlimited nodes and distance (with switches)
- ✓Easy IT integration
- ✓Simple protocol (Modbus heritage)
- ✓Open standard and free
- ✓Remote access capability
Disadvantages
- ✗Not deterministic (not real-time)
- ✗No built-in security (requires VPN/firewall)
- ✗Higher latency than dedicated fieldbuses
- ✗Requires managed switches for large networks
- ✗No device profiles or configuration tools
Common Use Cases & Applications
Industry Adoption
Supported Message Types
Read CoilsRead Discrete InputsRead Holding RegistersWrite Single CoilWrite Single RegisterWrite Multiple RegistersSupported PLC Brands
Alternative Protocols
Related Standards
- IEC 61131-3
International standard for programmable logic controller programming languages. Defines 5 programmin...
- IEC 61131 Series
Complete series of international standards for programmable logic controllers covering hardware, sof...
Related Protocols
- PROFINET
Real-time Industrial Ethernet standard by PROFIBUS International. Primary protoc...
Industrial Ethernet • 100 Mbps / 1 Gbps - EtherNet/IP
Industrial Protocol using standard Ethernet and TCP/IP. Primary protocol for Roc...
Industrial Ethernet • 10/100/1000 Mbps - OPC-UA
Open Platform Communications Unified Architecture - platform-independent standar...
Industrial Ethernet • Network dependent - Modbus RTU
Serial communication protocol using binary encoding over RS-232/RS-485. Most wid...
Serial Communication • Up to 115.2 kbps - HART
Highway Addressable Remote Transducer - hybrid analog+digital protocol for proce...
Hybrid Protocol • 1200 bps (digital) - PROFIBUS
Process Field Bus - established fieldbus standard for factory and process automa...
Fieldbus • 9.6 kbps to 12 Mbps