×
Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 109742903, Entry date: 01/23/2017
(5)
Rate

How do you obtain the OPC UA variable nodes of the PLC tags of an S7-1500 OPC UA server to address them offline in an OPC UA client?

  • Entry
  • Associated product(s)
You can export the OPC UA address area of an S7-1500 via the TIA Portal as an XML file. In addition we provide an XML converter to filter user-defined OPC UA variables from the exported address area.

Generate an OPC UA export file
PLC tags and DB variables that are released in your configuration for OPC UA can be exported in an XML file for offline engineering of OPC UA clients. The XML file is based on the XML schema of the OPC foundation.

Proceed as follows:

  1. Select the CPU in your TIA project.
    For this you click the CPU icon (in the Network view, for example).
  2. In the Properties of the CPU you navigate to "General > OPC UA > Server > Export".
  3. Click the "Export OPC UA XML file" button.



  4. Select the directory in which you want to save the export file.
  5. Assign a name to the file.
  6. Click "Save".

The complete OPC UA address area of the S7-1500 is now available to you as an XML export file.

Convert an export file
Using the XML converter provided in this entry you can extract the user-specific OPC UA variables (consisting of the PLC tags and DB variables of the S7-1500) from the OPC address area. In addition, the OPC UA XML file is converted into CSV.

Proceed as follows:

  1. Download the ZIP archive "109742903_XML-Konverter_V2_1.zip" to your hard disk.
  2. Unpack the archive into a folder of your choice.
  3. Start the application "XmlConverter.exe".
  4. Click the "Load an OPC UA XML file" button and select the XML export file:
      

     
  5. Click the "Read NodeIds" button. The XML converter now extracts the accessible name spaces, name IDs and data types.
      

     
  6. Then click the "Save CSV file." button:
      

     
  7. In the dialog that opens you click "Save" to confirm the settings.

The CSV file is now available in the storage location you chose and you can open it with a spreadsheet, for example.

Download
XML converter:
 Registration required  109742903_XML-Konverter_V2_1.zip (22.6 KB)

Further Information
Detailed information on the topic of OPC UA of the S7-1500 is available in the function manual in Entry ID 59192925.
An application example for creating an OPC UA client in .NET is available in Entry ID 109737901.


Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit
https://www.siemens.com/cybersecurity#Ouraspiration.
Requests and feedback
What do you want to do?
Note: The feedback always relates to the current entry / product. Your message will be forwarded to our technical editors working in the Online Support. In a few days, you will receive a response if your feedback requires one. If we have no further questions, you will not hear from us.