Programming of the S7-1200 PLC is done with the software "Totally
Integrated Automation Portal (TIA Portal) 13".
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 WINDOW OF THE db, it is necessary to uncheck
"Optimized block access." This will then allow the absolute
address of the individual members of the DB.
After adding a DB (e.g., DB1) without the "Optimized block access,"
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 "Optimized block access" option is not removed
at the time of creation of the DB, the DB members will result only
of type symbolic and accessible only by name and therefore not recognizable
by Movicon's TCP driver.
In addition, to allow access to the PLC by the Movicon driver it is
necessary to set the option "Permit access with PUT/GET communication
from remote partner (PLC, HMI, OPC, ...) within the the PLC properties.
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.
For TIA Portal 16, follow the instructions in the Link to Set up\Verify
an S7 Link and the TSAP:
https://support.industry.siemens.com/cs/document/109486139/how-you-configure-a-connection-in-the-tia-portal-?dti=0&lc=en-US
Links of the type TCP, ISO-on-TCP, UDP, ISO or S7 link. are configured
in STEP 7 (TIA Portal) in the network view.
In STEP 7 (TIA Portal), the S7 links must be configured in the network
view. In the other links, it depends on the interface used locally:
The following instructions show how to configure a link in the network view.
With the S7-1500, it is possible to configure the link in static mode in the network view or establish a link dynamically with the TCON, TSEND_C or TRCV_C instruction.