---
title: Use the Siemens S7 Browse Agent
slug: manufacturing-connect-edge/use-the-siemens-s7-browse-agent
docTags: 
createdAt: 2023-01-12T15:03:31.000Z
---

With the Siemens S7 Browse Agent, you can export tags and variables from a TIA Portal project and import them into Manufacturing Connect Edge using the DeviceHub Automated Tag Generation tool.

# Before You Begin

- Create a TIA Portal project that includes the tags you want to add the device you create in DeviceHub. See [Tag Data Type Conversions](docId\:UZjAAs8qu_eqbmxE_O2AU) to learn more.
  - The TIA portal files are located in the your program installation folders. If you have TIA Portal V15, they are located in **Program Files&#x20;**>**&#x20;Siemens&#x20;**>**&#x20;Automation&#x20;**>**&#x20;Portal V15** >**&#x20;Public API&#x20;**>**&#x20;V15**
  - If you have TIA Portal V15.1, they are located in **Program Files&#x20;**>**&#x20;Siemens&#x20;**>**&#x20;Automation&#x20;**>**&#x20;Portal V15\_1 > Public API > V15\_1**.
- Download one or both of the following zip files based on which version of TIA Portal you have. If you have TIA Portal V15, download this file:&#x20;

::File{src="https://api.archbee.com/api/presign/SSUUxKZUk9bFTEPNn_6Zo/iDzlWiXljKR8WaZ4YiOo2_tiaportalfilesversionv15.zip" label="TIA_Portal_Files_version_v15.zip" uploadAsPublic="false"}

- If you have TIA Portal V15.1, download this file:&#x20;

::File{src="https://api.archbee.com/api/presign/SSUUxKZUk9bFTEPNn_6Zo/tAPPm4D2ns2f_QcvYjMe1_tiaportalfilesversionv151.zip" label="TIA_Portal_Files_version_v15_1.zip" uploadAsPublic="false"}

- If TIA Portal is open, close it.

# Use the Siemens S7 Browse Agent

Using the Siemens S7 Browse Agent includes the following tasks:

- Step 1: Add Siemens S7-Advanced Device to DeviceHub
- Step 2: Extract DeviceHub Automated Tag Generation Tool
- Step 3: Copy and Paste .dll Files&#x20;
- Step 4: Retrieve Parameters for DeviceHub Automated Tag Generation Tool
- Step 5: Configure DeviceHub Automated Tag Generation Tool
- Step 6: Export Tags to CSV File
- Step 7: Upload Tags to Manufacturing Connect Edge
- Step 8: Repeat Steps for Other TIA Portal ZIP File

## Step 1: Add Siemens S7-Advanced Device to DeviceHub

**To add the Siemens S7-1500 device to DeviceHub:**

1. In Manufacturing Connect Edge, navigate to **DeviceHub&#x20;**> **Devices**.&#x20;
2. Click **Add New Device**.&#x20;
   The *Connect Device&#x20;*&#x64;ialog box appears.
   ::Image[]{src="https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/Lu4wEoHUKEEziZD-KHoDT_addnewdevice.png" size="80" width="1078" height="645" caption="Add new device icon" position="center" showCaption="true"}
3. In the **Device Type** drop-down list, select **Siemens**.&#x20;
4. In the **Driver Name** drop-down list, select **Siemens S7-Advanced (Gen1)**.
5. Configure the parameters for the device. See [Connect a Device](docId\:nm1lQfefyA-DSIfFitIty) and [Siemens S7-Advanced (Gen1)](docId\:TRu-ITRXeNJgYzt5s7Kir) to learn more. &#x20;

## Step 2: Extract DeviceHub Automated Tag Generation Tool

**To extract the DeviceHub Automatic Tag Generation tool:**

1. In Windows Explorer, extract the contents of one of the following zip files: TIA\_Portal\_Files\_version\_v15.zip or TIA\_Portal\_Files\_version\_v15\_1.zip.
2. Open the extracted folders until you view the the files *DeviceHub Automated Tag Generation.exe* and *siemens.dll*.

## Step 3: Copy and Paste .dll Files&#x20;

**To copy and paste the .dll files:**

1. In your program installation folders, navigate to **Program Files > Siemens > Automation > Portal V15 > Public API > V15&#x20;**&#x6F;r **Program Files > Siemens > Automation > Portal V15\_1 > Public API > V15\_1&#x20;**(depending on the zip file extracted in "Step 2: Extract DeviceHub Automated Tag Generation Tool".)
2. Copy the following files: *Siemens.Engineering.dll&#xA0;*&#x61;nd *Siemens.Engineering.HMI.dll*.
3. Paste the files into the DeviceHub Automated Tag Generation tool folder for V15 or V15.1.

## Step 4: Retrieve Parameters for DeviceHub Automated Tag Generation Tool

**To retrieve parameters for the DeviceHub Automated Tag Generation tool:**

1. In Manufacturing Connect Edge, navigate to **DeviceHub&#x20;**>**&#x20;Devices**.
2. For the Siemens S7-Advanced device tile, click the **Copy Device ID** icon and paste it somewhere for reference later.&#x20;
3. Navigate to **System&#x20;**>**&#x20;Tokens**.
4. In the *REST API Keys* section, click the **Add REST API Key** icon.&#x20;
5. Enter a name for the token in the **Key Name&#xA0;**&#x66;ield, and then click **Create API Key**.
6. In the *Value&#x20;*&#x63;olumn for the key, click the **Copy&#xA0;**&#x69;con and paste it somewhere for reference later.&#x20;

## Step 5: Configure DeviceHub Automated Tag Generation Tool

**To configure the DeviceHub Automated Tag Generation Tool:**

1. From the V15 folder, double-click the **DeviceHub Automated Tag Generation.exe** file.
   The *DeviceHub Automated Tag Generation* dialog box appears.
2. Click the **Project Diff File Browse** icon and navigate to **Documents > Automation > v15\_project**. The **v15\_project** is the name you gave your project in the TIA portal.
3. Click **All files&#xA0;**&#x74;o see the TIA project file.
4. Select the file and click **Open**.
5. Click the **CSV File Browse&#x20;**&#x69;con, navigate to the folder you want to store the CSV file, enter **v15 tags** in the **File Name&#xA0;**&#x66;ield, and then click **Save**.
6. Configure the following parameters:
   - **Device ID**: Paste the Device ID that you copied in "Step 4: Retrieve Parameters for DeviceHub Automated Tag Generation Tool".&#x20;
   - **Device Name**: Enter **S7-1500**.
   - **Address**: Enter the Manufacturing Connect Edge URL.
   - **API Token**: Paste the REST API Key copied in "Step 4: Retrieve Parameters for DeviceHub Automated Tag Generation Tool".&#x20;

## Step 6: Export Tags to CSV File

**To export the tags to a CSV file:&#x20;**

1. From the *DeviceHub Automated Tag Generation* dialog box, click **Export**.
2. View the *Logs&#x20;*&#x70;ane to see the export process.
   This process may take some time. When you see *Finished&#xA0;*&#x69;n the *Logs&#x20;*&#x70;ane, the tags are exported to a CSV file.
3. Navigate to the folder on your hard drive that you designated for the CSV file and confirm it was successfully created.&#x20;

## Step 7: Upload Tags to Manufacturing Connect Edge

**To upload the tags to Manufacturing Connect Edge:&#x20;**

1. From the *DeviceHub Automated Tag Generation* dialog box, click **Upload**.
2. In Manufacturing Connect Edge, navigate to **DeviceHub&#x20;**>**&#x20;Tags**.&#x20;
3. Confirm the tags from the CSV file are successfully uploaded.&#x20;

## Step 8: Repeat Steps for Other TIA Portal ZIP File

If you have both TIA Portal versions, repeat the above steps for the other zip file you downloaded.&#x20;

