Skip to main content

i4scada Knowledge Base

i4scada SIMATIC Connector Tutorials

Abstract

To help you configure your i4scada SIMATIC Connector check out these tutorials where the settings for both S7-TCP/IP and S7-TCP/IP TIA devices are available.

Configuring an S7-TCP/IP device
Abstract

You are just a few steps away from using the i4scada Simatic Connector with an S7-TCP/IP device. Check out this article!

Tip

For more details regarding the SIMATIC Connector, please visit the dedicated article, here.

To configure an S7-TCP/IP device, the user can organize the following steps:

  1. Open the i4scada Studio.

  2. Create a new database "SIMATIC".

    Create_a_new_Studio_DB.jpg
  3. Log into the i4scada Studio.

  4. Under the Signals area, click right on the Server List node and select the New Server contextual menu option.

  5. New Server is added.

    Note

    If the Server runs on the same machine as the Studio, the Server name must be "." (the period character).

  6. Click right on the Server node and select the New Connector contextual menu option.

  7. Select from the list of connectors the SIMATIC Connector.

    select_SIMATIC_connector.jpg
  8. The SIMATIC Connector is added to the Server.

    SIMATIC_connector_added.jpg
  9. Click right on the SIMATIC Connector node and select the Open Configuration Tool option.

    Click_on_Open_Config_Tool_option.jpg
  10. The ACCON-AGLink V4 Configuration window is opened. Under Devices tab, select Device 0 the S7-TCP/IP option.

    S7TCPIP_Device_new.jpg
  11. Configure the S7-TCP/IP Device, by filling in the desired settings under TC/IP and Connection tabs.

    TCP-IP_settings.jpg
    TCP-IP_Connection_settings.jpg
  12. Save the changes made by clicking the buttons Apply and OK.

  13. Click right on the SIMATIC Connector node and select Generate XML Configuration option, to preserve the Device changes, at the level of the Connector.

    option_Generate_XML_Config.jpg
  14. Next, right click on the SIMATIC Connector and select the New Group option.

  15. New Group is added to the Server List hierarchy.

  16. Right click on the Group1 node and select the New Signal option.

    New_Signal.jpg
  17. The new signal is added to the list. Proceed by configuring the S7-TCP/IP Signal.

    Note

    To set up signals inside i4scada Studio for the SIMATIC Connector, a special format must be used in the signal's Connector address. The signal's connector address is composed of three important data:

    • the Device number - the Device number from the SIMATIC Connector's configuration tool

    • the PLC number - the PLC number from the SIMATIC Connector's configuration tool

    • the data type - see list below

    The signal's connector address will look like this:

    • "Device_number"."PLC_number"/"data_type"

    • "Device_number"."PLC_number"\"data_type"

    The separator used between the Device_number and the PLC_number will always be "." (dot), while the separator used between the PLC_number and the data_type can be either "\" (back-slash) or "/" (forward-slash).

    For more details regarding S7-TCP/IP Signals supported data types, please refer to The Data Types table.

    Configure_Signal_1.jpg
  18. Save the Signals Group, by clicking the Save button.

  19. To preserve the changes at the level of the connector, right click on the SIMATIC Connector node and select the Generate XML Configuration option.

Configuring an S7-TCP/IP TIA device
Abstract

You are just a few steps away from using the i4scada Simatic Connector with an S7-TCP/IP TIA device. Check out this article!

Warning

If using the TIA Portal V17, please note that Secure PG/PC and HMI communication is not supported.

The check mark must not be set, otherwise, the communication will not work.

To configure an S7-TCP/IP TIA device, the user can organize the following steps:

  1. Open the i4scada Studio.

  2. Create a new database "SIMATIC".

    Create_a_new_Studio_DB.jpg
  3. Log into the i4scada Studio.

  4. Under the Signals area, click right on the Server List node and select the New Server contextual menu option.

  5. New Server is added.

    Note

    If the Server runs on the same machine as the Studio, the Server name must be "." (the period character).

  6. Click right on the Server node and select the New Connector contextual menu option.

  7. Select from the list of connectors the SIMATIC Connector.

    select_SIMATIC_connector.jpg
  8. The SIMATIC Connector is added to the Server.

    SIMATIC_connector_added.jpg
  9. Click right on the SIMATIC Connector node and select the Open Configuration Tool option.

    Click_on_Open_Config_Tool_option.jpg
  10. The ACCON-AGLink V4 Configuration window is opened. Under Devices tab, select Device 1 the S7-TCP/IP TIA option.

    TIA_Device.jpg
  11. Configure the S7-TCP/IP TIA Device, by filling in the desired settings under TC/IP TIA and Connection tabs.

    TIA_settings.jpg
    TIA_Connections.jpg
  12. Save the changes made by clicking the buttons Apply and OK.

  13. Right click on the SIMATIC Connector node and select the TIA Browse Settings option.

    option_TIA_Browse_Settings.jpg
  14. The TIA Browse Settings window is opened. Select the PLC Project option, under the column Browse type.

    PLC_Project.jpg
  15. In the Target column, set up the PLC Project for your TIA device.

    PLC_project_loaded.jpg
  16. Close the TIA Browse Settings window.

  17. Next, right click on the SIMATIC Connector node and select the Browse TIA Devices option.

    option_Browse_TIA_Devices.jpg
  18. The Browse TIA Devices window is opened. Expand the hierarchy until reaching the desired TIA Symbols.

    window_Brose_TIA_devices.jpg
  19. Fill in a new Group in the Destination group field.

  20. Select the desired TIA Symbols and press the Import button.

  21. Close the Browse TIA Devices window when all the desired TIA Symbols have been imported to your destination group.

  22. To preserve the changes at the level of the connector, right click on the SIMATIC Connector node and select the Generate XML Configuration option.

    option_Generate_XML_Config.jpg
  23. Select the TIA Symbols group. All the imported TIA Symbols have been added to the list, converted into TIA Signals.

    TIA_Signals.jpg
Importing signals for the SIMATIC Connector
Abstract

Check out this article and learn more details about the Import signals functionality and how it behaves for both TIA and non-TIA devices.

The Import signals functionality can be used to import signals for both TIA and non-TIA devices, as described in the two sections below.

Tip

Since i4scada 3.8.12 version, this import only validates the following facts:

  • what type of device does the import introduce (TIA or non-TIA);

  • if the PLC number exists, in the SIMATIC Connector's configuration tool;

  • if the Device number exists, in the SIMATIC Connector's configuration too.

Import signals to a non-TIA Device

As already indicated, the signal's connector address is composed of three important data:

  • the Device number - the Device number from the SIMATIC Connector's configuration tool

  • the PLC number - the PLC number from the SIMATIC Connector's configuration tool

  • the data type - see the complete list here.

The signal's connector address will look like this:

  • "Device_number"."PLC_number"/"data_type" or "Device_number"."PLC_number"\"data_type"

When a high amount of signals needs to be added to i4scada Studio, but manual work is not desired, the user can proceed as follows:

  1. Open Studio and expand the server, until reaching your group of signals, available on the SIMATIC connector.

  2. Select the desired Signal(s) and click the right mouse button.

    Tip

    At this step, we are selecting one or multiple signals that already have the connector address(es) that we need to use.

  3. Select the Export Signals option, from the opened contextual menu.

    Export_Signals.jpg
  4. The Save As dialog is opened, allowing you to choose the location where the export file is to be saved.

  5. After choosing a known and accessible location, click the Save button.

    Tip

    The files will be saved in XML format.

    Save_as.jpg
  6. Visit the selected location and open the Signals XML file, using a spreadsheet application (like Microsoft Excel). Start adding the needed signals and make sure to save the file, after finishing your work.

    Eported_file.jpg

    Tip

    Spreadsheet applications provide a better overview of the exported data and allow the user to easily rework the data that will be re-imported, into Studio.

  7. Return to the Studio application and click the right mouse button, of your SIMATIC Connector's Signals grid view area.

  8. Select the Import Signals option.

    Import_Signals.jpg
  9. The Open dialog is opened, allowing you to select and apply the previously updated signals file.

  10. Click the Open button to start the signals import.

    Open_file.jpg
  11. The Import Signals panel is opened, listing all the Signals contained by the imported file.

    Import_Signals.jpg
  12. Select all the Signals that need to be uploaded to Studio and click the Add button.

  13. A pop-up confirmation dialog is displayed, providing more information about the import results.

    Finished_signals_updated.jpg

    Warning

    The Studio application does not validate the imported signals. This responsibility falls back to the SIMATIC Connector, which reacts after the user generates the XML configuration. If the import is rejected, a warning message will be displayed, at this step.

    Generate_xml_config.jpg
  14. The list of Signals is updated, displaying the imported Signals, as well.

Import signals to a TIA Device

Adding Signals to a TIA Device can be a long lasting operation, as it relies on the Browse TIA Device function. Hence, the user can decide to update a TIA Device's Signals list, by means of import, as follows:

  1. Open Studio and expand the server, until reaching your group of signals, available on the SIMATIC connector.

  2. Select the desired Signal(s) and click the right mouse button.

    Tip

    At this step, we are selecting one or multiple signals that already have the connector address(es) that we need to use.

  3. Select the Export Signals option, from the opened contextual menu.

    Export_Signals.jpg
  4. The Save As dialog is opened, allowing you to choose the location where the export file is to be saved.

  5. After choosing a known and accessible location, click the Save button.

    Tip

    The files will be saved in XML format.

    Save_as.jpg
  6. Visit the selected location and open the Signals XML file, using a spreadsheet application (like Microsoft Excel). Start adding the needed signals and make sure to save the file, after finishing your work.

    Eported_file.jpg

    Tip

    Spreadsheet applications provide a better overview upon the exported data and allow the user to easily rework the data that will be re-imported, into Studio.

  7. Return to the Studio application and click the right mouse button, of your SIMATIC Connector's Signals grid view area.

  8. Select the Import Signals option.

    Import_Signals.jpg
  9. The Open dialog is opened, allowing you to select and apply the previously updated signals file.

  10. Click the Open button to start the signals import.

    tia_import.jpg
  11. The Import Signals panel is opened, listing all the Signals contained by the imported file.

    Import_Signals.jpg
  12. Select all the Signals that need to be uploaded to Studio and click the Add button.

  13. A pop-up confirmation dialog is displayed, providing more information about the import results.

    Finished_signals_updated.jpg

    Warning

    The Studio application does not validate the imported signals. This responsibility falls back to the SIMATIC Connector, which reacts after the user generates the XML configuration. If the import is rejected, a warning message will be displayed, at this step.

    Generate_xml_config.jpg
  14. The list of Signals is updated, displaying the imported Signals, as well.