QuickStart Guide
...
Siemens
Gen 2 Drivers

Siemens S7

8min

Review the following information for setting up and configuring the Siemens S7 driver.

Litmus Edge Compatible Series

Compatibility parameter

Compatible items

Driver type

Ethernet

Validated devices/series

Replaces Gen 1 driver(s)

To set up and configure this device in Litmus Edge, you will need to do the following:

  • Step 1: Set up and Configure the PLC Device
  • Step 2: Set up the PLC Device in Litmus Edge DeviceHub
  • Step 3: Configure the List of Registers

Step 1: Set up and Configure the PLC Device

If the device is configured for Ethernet access, find its network parameters. Otherwise, follow the steps below.

S7-1200 and S7-1500 Devices

To configure your device:

  1. Open your TIA Portal project.
  2. In the project tree, right-click your PLC and select Properties… from the popup menu. The Properties window opens.
  3. To obtain the device’s IP address (if you do not already have it):
    • From the left pane, select PROFINET interface > Ethernet addresses.
    • In the right pane, go to IP protocol, find the IP address of the PLC, and copy it aside.
  4. From the left pane, select PROFINET interface > Advanced options > Port [X1 P1] > Port interconnection.
  5. In the right pane, enter “Any partner” in the Partner port field.
  6. From the left pane, select Protection & Security > Access level.
  7. In the right pane, select the Full access radio button.
  8. From the left pane, select Protection & Security > Connection mechanisms.
  9. In the right pane, select the Permit access with PUT/GET communication from remote partner check box.
  10. Click OK.
  11. In the project tree, right-click the data block you want to read and select Properties from the popup menu. The Properties window opens.
  12. From the left pane, select Attributes.
  13. In the right pane, clear the Optimized block access check box.
  14. Click OK.
  15. Repeat steps 11-14 for all data blocks you want to read.
  16. Click the Compile icon on the toolbar.
  17. When the project finishes compiling, click Download to Device.

S7-200, S7-300, and S7-400 Devices

To configure your device:

  1. Open your SIMATIC Manager project.
  2. In the project tree, right-click your PLC and select Object Properties... from the popup menu. The Properties window opens.
  3. Select the Interfaces tab.
  4. Find and copy the IP address of the Ethernet interface.

Step 2: Set up the PLC Device in Litmus Edge DeviceHub



Parameter

Value

Type

Siemens

Driver

Siemens S7

Network Address

The device address you defined during Step 1

Port

102

Slot

1



NOTE: The address format in this Gen 2 driver is different from the (Siemens S7-Advanced (Gen1)) for the same device. Learn more about Gen1 and Gen2 Driver Differences.

Name

Value Types

Address Format

Min Address

Max Address

Description

DB

byte, word, dword, lword, usint, uint, udint, ulint, sint, int, dint, lint, real, lreal, date, s5time, dt, ldt, tod, ltod, time, ltime, dtl, char, wchar, string, wstring

DDDDD

0

65535

Data block, absolute address

DB(bit)

bool

DDDDDd

0

655357

Data block (bits), absolute address

M

byte, word, dword, lword, usint, uint, udint, ulint, sint, int, dint, lint, real, lreal, date, s5time, dt, ldt, tod, ltod, time, ltime, dtl, char, wchar, string, wstring

DDDDD

0

65535

M memory

M(bit)

bool

DDDDDd

0

655357

M memory (bits)

I

byte, word, dword, lword, usint, uint, udint, ulint, sint, int, dint, lint, real, lreal, date, s5time, dt, ldt, tod, ltod, time, ltime, dtl, char, wchar, string, wstring

DDDDD

0

65535

Input area

I(bit)

bool

DDDDDd

0

655357

Input area (bits)

Q

byte, word, dword, lword, usint, uint, udint, ulint, sint, int, dint, lint, real, lreal, date, s5time, dt, ldt, tod, ltod, time, ltime, dtl, char, wchar, string, wstring

DDDDD

0

65535

Output area

Q(bit)

bool

DDDDDd

0

655357

Output area (bits)



Additional Considerations/Configurations

You can:

  • Export elements from a single PLC tag table
  • Export all PLC tags and constants of a CPU from the All tags table

To export device tags:

  1. In TIA Portal, open the table from which you want to export the tags (a single PLC tag table or the All tags table).
  2. In the PLC tag table, click the Export button The Export dialog box opens.
  3. Click the Path of export file button. The Save as dialog opens.
  4. Select the directory for the export file and enter the file name.
  5. Select .xlsx, .sdf, or .xml as the file type. The only human-readable file type is .xlsx.
  6. Click Save.
  7. Select the export options:
    • Export tags and/or constants
    • Export all elements of the table or just the elements that are being used in the program on the current CPU
  8. Click OK. The export file is generated. Errors and warnings generated during export appear on the Info tab of the Inspector window.