You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Next »

When integrating Siemens S7 PLCs with software platforms or HMI/SCADA systems, it's common to configure communication settings to ensure proper data transfer between devices. This process specifies parameters like the PLC's IP address, rack, slot, and port.

To import tags from these devices, follow the steps: Navigate to the Solution Import Tags interface; Double-click on the desired Import Tag Wizard; Then you must provide the parameters.

On this page:


Instructions

Wizard startup

On the Solution Designer, go to Solution/Import Tags and select "Import Siemens Address configuration." Double click on selected wizard or press the "Execute" button to open the initial configuration popup.

Initial configuration

In the initial configuration popup, enter the Siemens PLC information:

  • Station IP: The IP address of the Siemens device in network (e.g., 192.168.1.1)
  • Rack: The Rack parameter specifies which frame or rack the target module is in in a multi-rack configuration. In many simple configurations, this is often 0, as there's only one rack.
  • Slot: The physical slot of the PLC's communication module (often 2).
  • Port: The communication port (default: 102)
  • S7 Family: Specify the PLC model, either Model 300/400 or Model 1200, to ensure the appropriate communication methods and protocols are applied.

Model 300/400

The S7-300 and S7-400 are traditional, modular PLCs known for their flexibility and use in more complex automation systems. They often utilize the PROFIBUS or PROFINET communication protocols, depending on the specific modules and configurations in use.

Model 1200

The S7-1200 is part of Siemens' newer generation of PLCs. It's more compact and designed for small to medium automation tasks. It primarily uses PROFINET for communication.

Sync Device Node

The "Sync Device Node" window will appear. Here, you have two import options:

  • From a file: Provide the path of your stored Siemens file.

Prefix Option (Optional)

Select "Add NodeName as Prefix" option to automatically add the PLC's name as a prefix to all imported tags. It improves organization, especially in solutions with multiple PLCs.

Refresh

Click "Refresh" to display a preview of available tags.

Import

Finally, press "Ok" to start the import process.


TIA Portal Configuration

To communicate the device Siemens S7 1200/1500 with the platform correctly, two configurations in TIA Portal are needed.

Allow access with PUT/GET communication from remote partner

In the first one, you need to check if the communication with a remote partner is allowed.

You can check that on Protection & Security → Connection Mechanism. Make sure that the following box is checked.

Disable "Optimized block access"

In the second configuration, you need to configure the Program Blocks and disable "Optimized block access". To do so, you can follow the procedure below:

  1. Open the Program blocks folder in the solution tree.
  2. Right-click the block whose block access you want to change.
  3. Select the Properties command in the shortcut menu.
  4. The properties dialog box of the block opens.
  5. Click Attributes in the navigation area.
  6. Disable the Optimized block access option.
  7. Confirm your entries clicking OK.

Load the XML or Import from TIA Portal

The next step is to load the file, which be a file with extension .xml or import from TIA Portal — the automation software of Siemens.

Finally, click Refresh and observe which tags are available to be imported. The image below does not show it because there is no document inserted.
Where:
< TIA Portal > = It works only when TIA is in the same machine as the software platform. The tested version is 15.1 and version 16, and the file was SolutionName.ap15_1. It is no use that the extension is .ap15_1. When we select the TIA Portal option, the syntax required is <SolutionName.ap15_1>;<DeviceName> = Where the first parameter is the filename of the TIA project and the second one refers to the name of the device that you want to import in the solution.
< .xml > = This file can be generated in TiaPortalOpennessDemo.exe. Click the following link: generate_xml . To do so, follow these 4 steps:

  1. This program has to be executed on the same computer as the TIA running.
  2. After connected to TIA, select the device you want to export.
  3. Select the DB you want to export to XML.
  4. Copy the file to software platform and select it in the Filename field.



In this section:

The root page @parent could not be found in space v10.

  • No labels