IBH OPC UA:TIA Portal examples
This page converts the former PDF manual “PLC projects with TIA Portal V17” into current, maintainable wiki documentation. The PDF describes IBH Link UA and IBH OPC UA Server/Client V5.27. The workflows below have been updated for the current IBH OPC UA Server/Client 6.10.
Quick overview
| Step | Result |
|---|---|
| Prepare the PLC project | CPU, network and data blocks are compiled and consistent. |
| Import the project | The TIA Portal project is imported with the IBH OPC UA Editor. |
| Select variables | Only the required symbols and structures are exposed through OPC UA. |
| Validate and transfer | The editor checks the configuration and transfers it to the server. |
| Verify the connection | The Web Configurator and an OPC UA client show status and live values. |
Requirements
- a current TIA Portal project that compiles without errors
- a reachable controller with a unique IP address or device name
- the current IBH OPC UA Editor
- access to the IBH OPC UA Server/Client Web Configurator
- the appropriate license scope for the required functions
- an OPC UA test client such as UaExpert
For S7-1200 and S7-1500, the IBH OPC UA Server/Client supports access to optimized data blocks. Always use the current TIA Portal project so that symbolic names, data types and the block layout match the controller.
Recommended current workflow
1. Prepare the TIA Portal project
- Open the project in TIA Portal.
- Verify the CPU type, firmware, PROFINET interface, IP address and subnet.
- Compile hardware and software completely.
- Download the PLC program and verify that the CPU is in RUN.
- Ensure that all variables intended for OPC UA have clear symbolic names.

2. Import the project with the IBH OPC UA Editor
- Start the IBH OPC UA Editor.
- Create a project or read the existing configuration from the target server.
- Import or open the TIA Portal project.
- Select the required CPUs, data blocks, structures and variables.
- Review data types, access rights, descriptions and update requirements.
- Validate the project in the editor.
The former IBH OPC Editor is no longer the recommended configuration tool for this workflow. Use the IBH OPC UA Editor.
3. Transfer the configuration
- Connect the editor to the IBH OPC UA Server/Client.
- Compare the target system with the project before transferring.
- Transfer the validated configuration.
- Open the controller or slot view in the Web Configurator.
- Check the connection state, CPU assignment and number of configured variables.
4. Test OPC UA access
- Read the endpoint URL from the Web Configurator.
- Connect the OPC UA client to this endpoint.
- For a secure connection, verify and trust the correct server certificate.
- Browse the address space and add test variables to the data view.
- Verify reading, writing, timestamps and status codes according to the configured access rights.
Alternative: SIMATIC PC station configuration
The archived manual also describes an OPC server configured as a SIMATIC PC station. This remains relevant for existing projects.
- Add a SIMATIC PC station to the TIA Portal project.
- Insert the OPC server component and Ethernet interface.
- Create the S7 connection between the OPC server and the CPU.
- Select the OPC symbols.
- Compile the PC station.
- Import the generated configuration into the IBH OPC UA Server/Client.

Examples covered by the former manual
Historical data
- Configure and test the PLC variables as normal OPC UA variables first.
- Enable the required variables in the Web Configurator's History section.
- Set buffering and persistent storage as required by the target system.
- Verify access with a client that supports Historical Access.
Integrated OPC UA Client
The integrated client reads values from external OPC UA servers and connects them to variables in the local address space.
- Add the external server with its endpoint and security settings.
- Trust the server certificate.
- Select read variables on the external server.
- Connect them to local target variables.
- Verify status, timestamp and client diagnostics.
See Client functions.
Alarms & Conditions
- Configure alarms and message texts in the PLC project.
- Import the related variables and alarm data.
- Enable the compliant OPC UA alarm model when required by the project.
- Verify states, acknowledgement and message texts in an OPC UA event view.
Integrated S7 SoftPLC
The integrated S7 SoftPLC can be configured as an additional controller. Download program and data blocks only to the intended SoftPLC instance and verify RUN/STOP and diagnostics before testing OPC UA.
Multiple controllers and routing
For projects with multiple CPUs:
- assign a unique address and slot to every CPU
- test routed connections through IBH Link S7++ or IBH Link S5++ separately
- structure variable names so that station and CPU are unambiguous
- verify each connection individually before enabling cross-station data exchange
Diagnostics
- Controller remains disconnected
- Check IP address, subnet, CPU state, routing, slot assignment and firewall.
- Variables are missing or have the wrong data type
- Recompile the TIA Portal project, import it again in the IBH OPC UA Editor and transfer the updated configuration.
- An optimized data block cannot be accessed
- Compare the CPU and project versions, verify the symbolic variable and use a CPU/firmware combination supported by the current product.
- OPC UA client rejects the connection
- Check the endpoint, system time, security policy, user authentication and certificate trust.