TIA Portal OPC UA



Configuring OPC-UA Server in TIA Portal

To activate an OPC UA server:

  1. Go to Device configuration from the Project tree on the left side.
  2. Set the view to Device view.
  3. Click on the PLC image and open Properties.
  4. Go to OPC UA -> Server -> General.
  5. Under Accessibility of the server, check the option Activate OPC UA server to activate it.
  6. In case a security pop-up appears, accept it (click OK).
  7. Find Runtime licenses in the same window (Properties).
  8. Under Type of purchased license, select SIMATIC OPC UA S7….
  9. Go back to OPC UA -> Server -> General.
  10. Copy the server address.

Write down (and copy) the complete server address of the PLC. Please DO NOT forget opc.tcp and the port number!

This information will be needed later when a client (for example, UA Expert, Prosys OPC UA Browser, or Siemens NX MCD) tries to communicate with the PLC over OPC UA.

The OPC-UA server will not work if the license is not set properly.

OPCUA_r

For this module, please do not change any more settings.

Be careful in setting security for the OPC-UA server when working on real projects.

Here, you are not working on hazardous equipment, hence the No Security option under Properties -> OPC UA -> Server -> Security is enabled. Learn more in the user manual before changing these settings.

Creating OPC-UA Server Interface

To add a server interface, perform the following steps:

  1. Select the PLC name from the Project tree.
  2. Expand and select OPC UA communication.
  3. Select Server interfaces and expand it.
  4. Click on Add new server interface and rename the interface created.
  5. From the Add new server interface pop-up, select Server interface and click OK.
  6. Add the tags required to be monitored or modified using the OPC Client. You will have to drag the tags from OPC UA elements to the server interface.
  7. Upload the changes to the PLC.

opc_server_interface

Keep the PLC connected with a LAN cable.

Be cautious in setting access to variables. You should not provide open access to all variables (tags).

Set the access in the Default Tag Table.

opc_tag_access_specifiers