For legacy integration, choose Modbus TCP when a device has a documented register map and simple polling is sufficient; choose OPC UA when structured data, subscriptions, or configured authentication and encryption are required [S1][S2].
These protocols solve different integration problems: Modbus TCP is a request-response register protocol, while OPC UA is a service-based interoperability platform with typed address-space nodes, attributes, and references [S2][S4].
Decision criteria for legacy protocol selection
Modbus TCP is the lower-complexity option when the source equipment already exposes TCP/IP, the register map is documented, and the consumer only needs periodic reads or writes [S2][S3]. Modbus uses coils and registers interpreted through the device map, and Modbus TCP carries the same Modbus data model over TCP/IP.
OPC UA fits above the controller when SCADA, MES, historians, analytics, or cloud systems need browsable data, change subscriptions, or protocol-level security controls [S1][S2][S3]. OPC UA provides browsable nodes with data types, attributes, and relationships, allowing applications to browse typed data and subscribe to changes.
The decision should follow the required data model, integration effort, security exposure, and downstream consumers. Modbus TCP usually wins on initial engineering effort; OPC UA usually wins when the number of consumers, semantic requirements, or security scope increases [S4][S6].
Modbus TCP and OPC UA compared
Modbus TCP provides a simple request-response exchange over TCP/IP, commonly over Ethernet, with coils and registers interpreted through the device map [S2]. It is widely supported by older controllers, meters, drives, and PLCs, making it practical for a known installed base [S2][S3][S5].
OPC UA supports client-server communication and PubSub where implemented, with typed Nodes, Attributes, and References defining the exposed information [S1][S2]. Its richer model and configurable signing, encryption, and authentication make it appropriate for structured IT/OT integration, but server configuration, address-space design, and client administration add engineering work [S1][S2][S6].
Against 4 decision criteria, the comparison is direct. Initial engineering effort favors Modbus TCP because engineers can work from a documented register list rather than design an information model [S2][S3]. Data semantics favor OPC UA because units, types, relationships, and permissions can be represented directly [S1][S2]. Secure transport favors OPC UA when its security policies are configured, while traditional Modbus TCP has no native encryption [S2]. Change delivery favors OPC UA because it supports subscriptions, while Modbus TCP depends on polling [S2][S4].
Neither protocol should be selected as a universal replacement. OPC UA is not intended to replace a deterministic fieldbus in the control cycle, and Modbus TCP does not provide the timing behavior required by a fast line [S3].
Gateway architecture and mixed-protocol plants

The common integration pattern is to read Modbus or a manufacturer-specific protocol at the asset, translate the data in a gateway, and expose it upward through OPC UA [S5]. This preserves the installed equipment while giving SCADA or historian clients a structured interface.
Build a connectivity register before specifying hardware. For each asset, record the controller make and model, firmware where known, available ports, supported protocols, data already held by the controller, and machine owner [S5]. Typical classifications are native interface, legacy protocol, closed or inaccessible controller, and manual-only operation [S5].
Engineers should assess what each asset can expose, record the data already available in its controller, and add sensors where needed. For manual-only equipment, structured operator input with fixed reason lists is more realistic than automatic data extraction [S5].
A gateway also creates a mapping and maintenance boundary. Register address, byte order, scaling, engineering unit, writable status, and tag identity must be verified against the specific device manual rather than inferred from the protocol [S2].
Use cases and unsuitable applications
Use Modbus TCP for Ethernet-connected energy meters, power analysers, basic drives, slow peripherals, and legacy machines whose register maps are stable and understood [S2][S3]. A single installation can use both Modbus TCP and OPC UA, with Modbus at the device edge and OPC UA above it [S2].
Use OPC UA for SCADA, MES, historian, analytics, and cloud-facing integration where clients need browsable structure, subscriptions, and configured security [S1][S3]. OPC UA PubSub can also serve distributed event or data exchange, although it is not automatically supported by every server or client [S2].
Modbus TCP is a poor fit when engineering time depends on semantic metadata, many distributed consumers need change notifications, or the network boundary requires authenticated and encrypted communication. OPC UA is a poor fit when the requirement is only a handful of fixed values from an old meter, because its configuration and modeling burden can exceed the operational benefit [S3][S6].
Do not use either protocol to claim deterministic motion or safety performance without checking the controlling fieldbus and its defined timing or functional-safety mechanisms [S3].
Security, configuration, and operating constraints

Traditional Modbus TCP has no native encryption, while Modbus/TCP Security is a separate TLS specification; OPC UA supports signing, encryption, and authentication when configured [S2]. This makes network placement and protection essential around Modbus TCP rather than treating protocol security as an automatic feature [S2][S7].
OPC UA security still requires deliberate configuration. Authentication, certificate trust, user roles, access permissions, endpoint policy, and certificate lifecycle management must be engineered rather than assumed from the presence of an OPC UA endpoint [S1][S2][S7].
Apply an IEC 62443 zones-and-conduits baseline before scaling connectivity, and collect less data initially, focused on machine state, counters, cycle time, and stop reasons with context attached [S5]. Prove the design on one line, then template it for other machines [S5].
For detailed OPC UA architecture guidance, OPC UA PubSub over MQTT: Architecture and Design Choices explains when PubSub belongs in the architecture.
Implementation sequence for a defensible design
Start with the consumer requirement, then inventory each device. Document every Modbus function code, register address, data type, byte order, scaling factor, engineering unit, access mode, polling interval, and stale-data behavior before selecting a gateway [S2].
Define the gateway's OPC UA Address Space, including node identifiers, types, units, asset hierarchy, read/write permissions, and alarm relationships. Decide whether consumers will poll, subscribe, or use PubSub, because these interaction patterns have different configuration and network consequences [S2][S4].
Segment the network, restrict Modbus access to required clients and addresses, and configure OPC UA authentication and certificates before exposing either protocol beyond the local control boundary [S2][S5][S7].
Then validate with 4 tests: correct engineering-unit conversion, write-protection enforcement, loss-of-link and stale-value behavior, and recovery after gateway or network restart. Scale the approved template only after those checks pass [S5].
Track gateway CPU and memory use, client session count, subscription count, polling latency, rejected connections, certificate expiry, and unexplained value changes during commissioning. If register mapping remains stable and consumers need only a few values, retain Modbus TCP; if semantic integration, subscriptions, or secure multi-consumer access dominates, move the upper layer to OPC UA [S1][S2][S6].