Communication between the Siemens PLC S7-1200 (pre-4.0 firmware) and the driver S7 TCP driver from Movicon

Configuration of Siemens S7-1200 PLC (pre-4.0 firmware)

Programming of the S7-1200 PLC is done with the software "Totally Integrated Automation Portal (TIA Portal)". The installation of the software to control the PLC must be done on a 32bit OS
Note: In the software installation procedure, it is installed also an instance of MS SQL (WINCCPLUS).
Using the Siemens S7-1200 PLC configuration software, when a new DB is created, in the creation of the DB, it is necessary to uncheck "Symbolic access only". This will then allow the absolute address of the individual members of the DB.

After adding a DB (e.g., DB1) without the option "Symbolic Access Only," the "Offset" column will be displayed in the DB editor whose value will represent the absolute address of each individual member. This address will be the one to be used in the Movicon driver to point to the DB members (e.g., DB1.DBB0).

If the "Symbolic Access Only" option is not removed when creating the of the DB, the members of the DB will result only of symbolic type and accessible only by name and therefore not recognizable by the Movicon's TCP driver.

Movicon's S7 TCP Driver Configuration

When configuring Movicon's S7 TCP driver, care must be taken in setting values for Device ID, Rack and Slot. In the settings general settings of the driver the values of the remote TSAP set up in the PLC. By default the value should be 16 (10 hex):

In the station settings of the driver should be entered the values of the local TSAP set in the PLC. By default, the value should be 1 (1 hex):

Note: TIA Portal version 11.0 SP2 allows you to export DataBlock tags in text format with the command 'copy to text'.

For data in the remaining areas (ex: M) the procedure is different. In PLC variable exploration, the appropriate icon should be selected to export the data to XLSX format files. Under evaluation is the possibility of importing tags into the S7TCP driver, currently not supported.