Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 109251656, Entry date: 06/14/2017

Tips for TIA Portal Openness

  • Entry
  • Associated product(s)
Tips and tricks for working with TIA Portal Openness

How do you transfer master copies from a global library into the project via TIA Portal Openness?

To transfer master copies from a global library into a device in the project via TIA Portal Openness you must first copy the master copies into the project library. You can then copy the master copies from the project library into the device in the project.

Why do you get the message "Openness access" when connecting your application with the TIA Portal although you have already clicked "Yes to all"?

You get the message shown below when you want to access the TIA Portal using a TIA Portal Openness application.

Fig. 01

If you confirm this dialog with "Yes to all", a white list entry is made in the Windows Registry which permits all subsequent attempts of the application to access the TIA Portal. The file path of the application, the time stamp of the creation and a unique identification (a so-called "hash code") are stored in this entry. When using Microsoft Visual Studio it might happen that this query appears although you have already clicked "Yes to all". If the "Enable the Visual Studio hosting process" option is enabled in the debug settings of the application, a new time stamp is generated at each start and you have to once again permit access.

In order not to have to confirm the query any more, open the properties of the Visual Studio project via "Project > Properties". Click "Debug" and disable the "Enable the Visual Studio hosting process" option.

Fig. 02

The advantages of using the Visual Studio hosting process are then no longer available. Additional information is available in the MSDN:

Why does the Find Method in your TIA Portal Openness application not provide any results although the objects exist?

Using the Find Method you can search for specific objects in your project. Here the Find Method searches the current folder in each case. Check whether the objects are located in lower-level folders. It might be necessary to use a recursive function to search all the folders.

Why are existing HMI connections not listed in your TIA Portal Openness application?

Using "HmiTarget.Connections" you can access non-integrated HMI connections in your TIA Portal Openness application.

In the "Connections" editor of the HMI device you can see from the icon in front of the connection whether it is an integrated or non-integrated connection.

Fig. 03

How do you proceed if you have Startdrive devices in your project and you want to access all the devices and their elements in the project using TIA Portal Openness?

Before accessing "DeviceItems", check whether the "Device" is a Startdrive object. You can determine this as follows.

if (Device.Subtype.ToLowerInvariant().Contains("sinamics") == true)

In the current version of TIA Portal Openness you cannot access "Devices" of the Startdrive type.

Why does Visual Studio show the error “Unable to evaluate the expression. Operation not supported. Unknown error: 0x80070057.”?

Fig. 04

To evalute the results view, select in Visual Studio Debug > Options ... Debugging / General / Use Managed Compatibility Mode

Fig. 05

Figure 06 shows the evaluated result view.

Fig. 06

The default debug module is replaced. For more information, see "Using managed compatibility mode" in the MSDN: https://msdn.microsoft.com/en-us/library/85yzd16c.aspx

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