Siemens S7 in the Unified Namespace (UNS): Interface Overview

Content

Siemens S7, also known as SIMATIC S7, is one of the most widely used control systems in industrial automation. From compact PLCs for basic machines to high-performance controllers for complex production lines, the S7 family is everywhere on the factory floor. When integrating a Siemens S7 in the Unified Namespace (UNS), many engineers face the same challenge: how to establish a reliable, bidirectional connection. Choosing the right protocol and interface is essential for success. This article outlines the main options available for connecting Siemens S7 in the Unified Namespace. It also highlights the key benefits and limitations of each approach, helping you make an informed decision for your industrial setup.

 

S7 Controllers – Overview

The Siemens S7 is a modular control platform that is used worldwide. It forms the backbone of numerous machines and systems – from simple handling systems to highly complex production lines. The control system is characterized by reliability, flexibility and a high level of functionality. It is precisely these advantages that makes the S7 a popular choice for the control and automation of manufacturing processes. The controllers are usually programmed using special software, such as STEP 7 (Siemens Totally Integrated Automation Portal). Other reasons for the popularity of the PLC include:

  1. Variety of control systems: Siemens S7 offers a wide range of control systems, from small and compact PLCs to powerful industrial controllers.
  2. Flexibility: The control platform is extremely flexible and can be adapted to the requirements of different industries and applications. This also includes the ability to add extension modules to provide additional functionality.
  3. Reliability and robustness: Siemens S7 controllers are designed for use in industrial environments and are characterized by their high reliability and robustness. They are designed to work continuously even under demanding conditions.
  4. Highly complex tasks: S7 controllers are capable of handling highly complex tasks. This includes the control of machines, processes and other production facilities.

 

Siemens S7 in the Unified Namespace (UNS)

Integrating a Siemens S7 in the Unified Namespace is a key step toward a fully connected production environment. The goal of the UNS is to unify all relevant data sources – from PLCs on the shop floor to applications in the cloud – into one structured data hub. This hub is typically based on MQTT (further information can be found here). To become part of this digital ecosystem, the Siemens S7 must connect to the UNS using the right interface.

Siemens S7 in the Unified Namespace (UNS)

However, communication capabilities differ widely between S7 models. That’s why the best integration method depends heavily on the specific use case. Real-time demands, data volume, cybersecurity, and system compatibility all influence the decision. The next section explores the main options for integrating a Siemens S7 in the Unified Namespace and compares the strengths and limitations of each approach.

 

Integration Options and Interface Comparison

Siemens S7 controllers support several integration methods for connecting to the Unified Namespace. The best choice depends on the specific model and how the system is implemented. To integrate a Siemens S7 in the Unified Namespace effectively, you need to consider both technical capabilities and practical constraints. Key factors include the controller’s supported protocols, the required level of data granularity, and your security needs. System architecture also plays a crucial role. In addition, the availability of skilled S7 programmers can influence the final decision.

 

1. Option: MQTT via LMQTT library

One way to connect a Siemens S7 in the Unified Namespace (UNS) is by using the LMQTT library. This approach allows MQTT communication directly within the PLC – no external gateway needed. The library uses standard Siemens communication blocks like TCON, TSEND_C, and TRCV_C. MQTT-specific logic such as connection handling, topic management, and QoS control is built into the library itself. As a result, the S7 can publish process data directly to an MQTT broker or subscribe to topics from it. This creates a direct path into the Unified Namespace.

Pros:

  1. Direct UNS integration: The S7 can send and receive MQTT messages without relying on third-party gateways.
  2. Full control from the PLC: Topics and payloads are managed in the PLC code, enabling highly customized data handling.
  3. Event-based communication: Publish/subscribe messaging supports efficient, real-time data transfer based on events.

Cons:

  1. Controller load: MQTT logic consumes CPU and memory resources on the PLC.
  2. Higher engineering effort: Developers must configure connections, topics, QoS, and error handling within the PLC program.
  3. No native MQTT support: The LMQTT library is a custom solution, which means updates, compatibility, and maintenance must be managed for each project.

 

2. Option: OPC UA (Unified Architecture)

Another way to integrate a Siemens S7 in the Unified Namespace is through OPC UA. This vendor-neutral protocol enables secure, structured data exchange across industrial systems. Unlike low-level protocols such as TCP, OPC UA provides semantic data models, built-in security, and a service-oriented architecture. These features make it a strong candidate for UNS integration. Newer Siemens S7 controllers – like the S7-1500 series – often support OPC UA natively through firmware. Older models can still use OPC UA by adding communication processors or external software components.

Pros:

  1. Browsable namespace: OPC UA clients can explore the full address space at runtime, including data blocks, tags, and structured types. This simplifies data integration in the UNS.
  2. Model-based structure: OPC UA supports object-oriented data models with clear semantics – ideal for structured data hubs like the Unified Namespace.
  3. Built-in security: Encryption, authentication, and access control are supported out of the box, ensuring secure communication.

Cons:

  1. More configuration effort: Setting up an OPC UA server, especially on older S7 models, often requires significant engineering work.
  2. Additional hardware or licenses: Many setups need communication processors or runtime licenses, adding extra cost and complexity to the integration.

 

3. Option: TCP (Transmission Control Protocol)

TCP offers a flexible and low-level option for integrating a Siemens S7 in the Unified Namespace. It is a reliable, connection-oriented protocol widely used in industrial networks. In Siemens S7 controllers, TCP communication can be implemented using standard blocks like TCON, TSEND_C, and TRCV_C. This method is ideal when no standard protocols like OPC UA or RFC 1006 are available – or when full control over data formatting and transmission is required.

Pros:

  1. Direct transport-level access: TCP delivers high-speed, low-latency communication with minimal overhead, as there’s no additional protocol layer involved.
  2. Maximum flexibility: Developers can design custom protocols and data structures tailored to the application’s needs.
  3. Full control: Everything, from connection handling to error management and data flow, is managed directly in the PLC logic.

Cons:

  1. High implementation effort: All core functions like connection setup, retries, status handling, and data structuring must be developed manually on both ends.
  2. No semantic layer: TCP does not support structured or typed data. Integration into the Unified Namespace requires additional logic, for example using i-flow Edge.
  3. Lack of built-in security: TCP has no native encryption or authentication features, making secure communication a challenge without external safeguards.

 

4. Option: RFC 1006 (Remote Function Call over TCP)

RFC 1006 is a Siemens-specific communication protocol built on top of TCP. It follows the ISO-on-TCP standard (ISO 8073) and serves as the foundation for core S7 services, including PG/OP and HMI connections. To integrate a Siemens S7 in the Unified Namespace, RFC 1006 is often used to enable direct access to controller data. Many standard drivers support this method, allowing read and write operations without custom protocol development.

Pros:

  1. Native Siemens support: RFC 1006 is fully embedded in the Siemens communication stack. In most cases, no extra libraries or modifications are needed on the PLC.
  2. Direct process data access: It provides fast read/write access to data blocks, I/O, and flags – commonly used in SCADA, HMI, and UNS scenarios.

Cons:

  1. Manual setup required: Engineers must configure data blocks manually and assign fixed addresses. This increases engineering time and limits flexibility.
  2. No semantic structure: Data is accessed purely by address. Logical context or relationships must be maintained outside the system.
  3. Lack of built-in security: Unlike OPC UA, RFC 1006 does not support encryption, authentication, or access control out of the box.

 

Interface Overview by Siemens S7 Model

The Siemens S7 family includes a wide range of controllers, each with different communication capabilities. To integrate a Siemens S7 in the Unified Namespace (UNS), it’s essential to understand which interfaces each model supports. The table below highlights common S7 models and their typical support for MQTT, OPC UA, TCP, and RFC 1006:

Modell MQTT (LMQTT) OPC UA (nativ) TCP (TSEND/TRCV) RFC 1006
S7-1500 ✅ (conditional1) ✅ (from firmware 2.6)
S7-1200 ✅ (conditional1) ❌ (only via external tools)
S7-300
S7-400

1 Only via a user-defined MQTT library such as LMQTT.

This comparison shows: newer controllers like the S7-1500 support modern protocols such as native OPC UA, making them easier to connect to an MQTT-based Unified Namespace. In contrast, older models often require classic protocols like RFC 1006 or TCP. To enable MQTT, engineers typically need to integrate a custom library, which increases development effort.

 

Mit i-flow Edge Siemens S7 im Unified Namespace (UNS) integrieren

With i-flow Edge, Siemens S7 controllers can be connected to the Unified Namespace (UNS) quickly and efficiently. It doesn’t matter whether communication happens via MQTT, OPC UA, RFC 1006, or TCP – i-flow supports them all. The platform not only manages the connection to the controllers but also handles data conversion and normalization into a format that fits seamlessly into the UNS. This makes it easy to integrate Siemens S7 in the Unified Namespace, even in mixed environments with different protocols. For a deep dive into how i-flow maps Siemens S7 address spaces to MQTT-based UNS structures, click hier.

 

Best Practices

Choosing the right communication interface depends heavily on the specific use case, the S7 controller model, and the system requirements. The table below provides practical recommendations for common industrial scenarios:

Use Case Recommended Interface Reason
New system with S7-1500 OPC UA Native support, structured data models, built-in security
Existing system with S7-300 or S7-400 RFC 1006 + i-flow Edge Proven technology, reliable drivers, easy data mapping
High performance and full control needed TCP (custom implementation) Low overhead, flexible data structure, complete control
Cloud connectivity via MQTT MQTT (LMQTT) or via i-flow Edge Event-driven publish/subscribe, ideal for MQTT-based UNS
Quick setup with minimal PLC load RFC 1006 or external OPC UA Low impact on the PLC, simple data integration with external tools

 

Conclusion

Integrating a Siemens S7 in the Unified Namespace is a key step toward building scalable, future-ready, and data-driven production systems. Depending on the controller model, system setup, and use case, several interface options are available. These range from modern protocols like OPC UA and MQTT to well-established standards such as TCP and RFC 1006. Newer controllers, such as the S7-1500, support OPC UA natively and are well-suited for structured, model-based data exchange. Older models, including the S7-300 and S7-400, can still be integrated effectively—especially when combined with an edge gateway like i-flow Edge. MQTT provides a powerful way to enable real-time, event-based data flows, but it often requires additional engineering effort on the PLC or edge level.

There’s no single best solution. The ideal approach depends on your technical goals, infrastructure constraints, and long-term strategy. However, with a clear understanding of each protocol’s strengths and limitations—and with modern tools like i-flow—almost any Siemens S7 can be successfully integrated into the Unified Namespace.

About i-flow: i-flow is an industrial software company based in southern Germany. We offer manufacturers the world’s most intuitive software to connect factories at scale. Over 400 million data operations daily in production-critical environments not only demonstrate the scalability of the software, but also the deep trust our customers place in i-flow. Our success is based on close collaboration with customers and partners worldwide, including renowned Fortune 500 companies and industry leaders like Bosch.

Try it out now - free trial version

Experience the unlimited possibilities that i-flow offers by taking a test for yourself. Test now for 30 days free of charge on your systems.

Related Articles

Your question has not been answered? Contact us.

Your Contact:

Marieke Severiens (i-flow GmbH)
content@i-flow.io