Siemens SIMATIC S7-1200 CP 1242-7 V2, SIMATIC S7-1200 CP 1243-7 LTE, SIMATIC S7-1200 TCSB V3 Application Example

https://support.industry.siemens.com/cs/ww/en/view/56720905
Application Example 10/2016

TeleService of a S7-1200 station via mobile network

CP 1242-7 V2, CP 1243-7 LTE, TCSB V3

Warranty and Liability

TeleService with TCSB Entry-ID: 56720905, V1.0, 10/2016
2
Siemens AG 2016 All rights reserved
Note
The Application Examples are not binding and do not claim to be complete with regard to configuration, equipment or any contingencies. The Application Examples do not represent customer-specific solutions. They are only intended to provide support for typical applications. You are responsible for the correct operation of the described products. These Application Examples do not relieve you of the responsibility of safely and professionally using, installing, operating and servicing equipment. When using these Application Examples, you recognize that we cannot be made liable for any damage/claims beyond the liability clause described. We reserve the right to make changes to these Application Examples at any time and without prior notice. If there are any deviations between the recommendations provided in this Application Example and other Siemens publications – e. g. catalogs – the contents of the other documents shall have priority.
Security informa-
tion
Siemens provides products and solutions with Industrial Security functions that support the secure operation of plants, systems, machines and networks.
In order to secure plants, systems, machines and networks against cyber threats it is necessary to implement (and to maintain continuously) a holistic, state-of-the-art Industrial
Security concept. With this in mind, Siemens’ products and solutions are only part of such
a concept. It is the client’s responsibility to prevent unauthorized access to his plants, systems,
machines and networks. Systems, machines and components should only be connected
with the company’s network or the Internet, when and insofar as this is required and the
appropriate protective measures (for example, use of firewalls and network segmentation) have been taken.
In addition, the recommendations by Siemens regarding the respective protective measures have to be observed. For more information on Industrial Security, visit
http://www.siemens.com/industrialsecurity.
Siemens’ products and solutions undergo continuous development to make them even
more secure. Siemens explicitly recommends to carry out updates as soon as the respective updates are available and always only to use the current product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer’s exposure to cyber threats.
In order to always be informed about product updates, subscribe to the Siemens Industrial Security RSS Feed at http://www.siemens.com/industrialsecurity.
Warranty and Liability
We do not accept any liability for the information contained in this document. Any claims against us – based on whatever legal reason – resulting from the use of the examples, information, programs, engineering and performance data etc., described in this Application Example shall be excluded. Such an exclusion shall not apply in the case of mandatory liability, e.g. under the German Product Liability
Act (“Produkthaftungsgesetz”), in case of intent, gross negligence, or injury of life,
body or health, guarantee for the quality of a product, fraudulent concealment of a
deficiency or breach of fundamental contractual obligations (“wesentliche
Vertragspflichten”). The compensation for damages due to a breach of a
fundamental contractual obligation is, however, limited to the foreseeable damage, typical for the type of contract, except in the event of intent or gross negligence or injury to life, body or health. The above provisions do not imply a change of the burden of proof to your detriment. Any form of duplication or distribution of these Application Examples or excerpts hereof is prohibited without the expressed consent of Siemens AG.
Table of Contents
TeleService with TCSB Entry-ID: 56720905, V1.0, 10/2016
3
Siemens AG 2016 All rights reserved
Table of Contents
Warranty and Liability ................................................................................................. 2
1 Task ..................................................................................................................... 4
2 Solution............................................................................................................... 5
2.1 Overview............................................................................................... 5
2.2 Hardware and software components ................................................... 7
2.2.1 Validity .................................................................................................. 7
2.2.2 Components used ................................................................................ 7
3 Function principle .............................................................................................. 9
3.1 Connection buildup between remote station and central station
via TCSB V3 ......................................................................................... 9
3.2 Teleservice connection between remote station and
engineering station ............................................................................. 11
4 Configuration and Settings............................................................................. 13
4.1 Configuring the remote station ........................................................... 13
4.2 Configuring the TCSB V3 ................................................................... 17
5 Installation and Commissioning .................................................................... 20
5.1 Installing the hardware ....................................................................... 20
5.1.1 Hardware setup of the remote station ................................................ 20
5.1.2 Hardware setup of central station ...................................................... 21
5.1.3 Hardware setup of the engineering station ........................................ 21
5.2 Installing the software ......................................................................... 22
5.3 Installing the example project ............................................................. 23
5.4 Commissioning ................................................................................... 23
5.4.1 Setting the IP addresses .................................................................... 23
5.4.2 Assigning the IP address to the engineering station .......................... 23
5.4.3 Configuring the DSL router................................................................. 24
5.4.4 Inserting a backup copy of the “56720905_S7
1200_TeleService.bak” database into TCSB V3 ............................... 25
5.4.5 Configuring the IP address and ports of TCSB V3 ............................ 28
5.4.6 Loading the remote station ................................................................. 29
6 Operating the Application Example ............................................................... 31
6.1 Polling diagnostic data from the station ............................................. 31
6.2 Downloading project and program data from the STEP 7 project
7 Links & Literature ............................................................................................ 38
8 History............................................................................................................... 38
into the remote station ........................................................................ 35

1 Task

TeleService with TCSB Entry-ID: 56720905, V1.0, 10/2016
4
Siemens AG 2016 All rights reserved
Mobile network
Central Station
Remote Station
TCSB V3
Engineering Station
STEP7 V13 SP1
GPRS
DSL Internet Access*
*Possible Access Methods:
Access via UMTS (e.g. USB stick)
Access via DSL (e.g. router with integrated DSL modem)
1 Task
Introduction
The infrastructure of a plant contains a SIMATIC S7-1200 sub-station. The sub­station communicates wirelessly with a central station via the internet. Additionally, a service operator monitors the sub-station and communicates with it via remote access.
The communication is realized via the TeleControl Server Basic V3 (TCSB V3) software installed in the central station.
Overview of the automation task
The following figure provides an overview of the automation task.
Figure 1-1
Requirements
This application example is intended to meet the following requirements: Via remote access, the service operator monitors the status of the connected
remote stations.
Via remote access, the service operator downloads updated program data and
modifies any parameters.
The remote access is done via the internet and independent from the internet service provider.

2 Solution

2.1 Overview

TeleService with TCSB Entry-ID: 56720905, V1.0, 10/2016
5
Siemens AG 2016 All rights reserved
S7-1200 with CP 1242-7 V2
TCSB
Mobile network
Central Station
Remote Station
Programming Unit Engineering Station
TCSB V3
Teleservice
Process value transmission
2 Solution
2.1 Overview
Schematic layout
The figure below shows a schematic overview of the most important components of the solution.
Figure 2-1
Setup
With TCSB V3, the central and the remote station can communicate with each other via the mobile network. The central station is connected with the internet via a DSL router.
The remote maintenance (TeleService) requires an uninterrupted data transfer between the remote station and the engineering station via the GPRS network. The connection between the engineering station and the GPRS network is established by TCSB V3.
The engineering station is connected to the internet with the following alternative technologies:
UMTS (e. g. USB-Stick)  Router (e. g with integrated DSL-modem)
2 Solution
2.1 Overview
TeleService with TCSB Entry-ID: 56720905, V1.0, 10/2016
6
Siemens AG 2016 All rights reserved
Note
The connection between the engineering station and the GPRS network can also be established via a TeleService gateway.
The TeleService gateway only serves the “TeleService” function via the mobile
network. With the TeleService gateway, no connections to remote stations can be monitored and no process data can be transferred (see \5\).
The “TS Gateway” software is included in the scope of delivery of the CP 1242-7 GPRS V2.
Note
In this application example, central station and engineering station have been integrated into one device.
Remote Station “Remote Station” refers to a spatially removed remote station with a SIMATIC S7-
1200 CPU and a CP 12427 GPRS V2. Central station
“Central station” refers to a central control unit (PC, IPC or comparable device) with
internet connection, onto which the TCSB V3 software is installed. Engineering Station Engineering Station (ES) refers to a programming device, notebook or a
comparable device with software component STEP 7 V13 SP1 and an existing internet connection.
Advantages
The solution offers you the following advantages: TCSB V3 enables economic data communication between remote stations and
the central station.
World-wide access to the remote station is possible via the internet.  The application example can also be used for the CP 1243-7 LTE.  The core application areas are industrial applications where the objective is to
send data in a cost-effective way on a wireless basis, for example in water treatment plants, for water purification or in pumping stations.
Topics not covered by this application
This application example does not contain a description of:
SIMATIC NET TeleControl Server Basic (see also \3\)  LAD/ FBD/ STL/ SCL programming languages
Basic knowledge of these topics is assumed.
2 Solution

2.2 Hardware and software components

TeleService with TCSB Entry-ID: 56720905, V1.0, 10/2016
7
Siemens AG 2016 All rights reserved
Component
Qty
Article number
Note
S7-1200 PM1207
1
6EP1332-1SH71
Power supply
SIMATIC S7-1200 CPU 1217C DC/DC/DC
1
6ES7217-1AG40-0XB0
Any S7-1200 CPU as of V4.1 can be used.
COMMUNICATION PROCESSOR CP 1242-7 V2
1
6GK7242-7KX31-0XE0
Alternatively, a CP 1243-7 LTE can also be used:
CP 1243-7 LTE EU
(6GK7243-7KX30-0XE0)
CP 1243-7 LTE US
(6GK7243-7SX30-0XE0)
Antenna ANT794­4MR
1
6NH9860-1AA00
GSM quad-band and UMTS and LTE (Europe).
SIMATIC memory card
1
6ES7954-8LF01-0AA0
Memory card for the S7-1200 CPU (optional).
Component
Qty
Article number
Note
SIM card
1
Available from your mobile communications provider
Activated for data communication.
DSL router and modem
2
Specialist retailers
SCALANCE M816
Fixed IP address for DSL (broadband) connection
or DynDNS
2
Available from your provider.
-
2.2 Hardware and software components

2.2.1 Validity

This application example is valid for the following software versions:
CP 1242-7 V2  CP 1243-7 LTE  STEP 7 V13 SP1  S7-1200 CPU V4.1 or higher  TCSB V3 SP1

2.2.2 Components used

This application example was created with the following components:
Hardware components of station 1
Table 2-1
Accessories
Table 2-2
2 Solution
2.2 Hardware and software components
TeleService with TCSB Entry-ID: 56720905, V1.0, 10/2016
8
Siemens AG 2016 All rights reserved
Component
Qty
Article number
Note
STEP 7 Professional V13 SP1
1
6ES7822-1AA03-0YA5
STEP 7 Basic can also be used.
Software TCSB V3 SP1
1
6NH9910-0AA21-0AA0
A maximum of eight connectable stations.
The product is available in further stages of development and licenses, (see document \3\).
Component
Note
56720905_S7_1200_TeleService_PROJ_V10.zip
This zip file includes:
The STEP 7 V13 project  TCSB project
56720905_S7_1200_TeleService_DOC_V10_de.pdf
This document.
Software components
Table 2-3
Example files and projects
The following table contains all files and projects used in this example.
Table 2-4

3 Function principle

3.1 Connection buildup between remote station and central station via TCSB V3

TeleService with TCSB Entry-ID: 56720905, V1.0, 10/2016
9
Siemens AG 2016 All rights reserved
TCSB V3
4. Port
5. Project number Station number TeleControl password
6. IP address of TCSB
3. Fixed IP address
4. Port
6. IP address of TCSB
GSM/ GPRS
Central Station
1. PIN
2. APN, APN user, APN password
3. Fixed IP address
4. Port
5. Project number Station number TeleControl password
1. PIN
2. APN
Remote Station
Note
The SIM card’s PIN number must be enabled.
3 Function principle
This application example shows the following core elements: Configuration of a S7-1200 station with CP 1242-7 V2 for communication with
the central station via mobile communications network and the internet.
Configuration of a S7-1200 station with CP 1242-7 V2 for remote maintenance
(TeleService) of the remote station that is operated by a service operator.
How the remote station can be maintained by a service operator.
3.1 Connection buildup between remote station and central station via TCSB V3
The following diagram shows the complete system with all parameters required for communication between the remote station and the central station. In this application example, the connection is established via TCSB V3.
Figure 3-1
1. PIN number of the SIM card that is installed into the CP 1242-7 V2.
The CP 1242-7 V2 logs in automatically at the GSM network of the provider, given that the PIN number of the installed SIM card has been recognized as valid.
2. APN
The CP 1242-7 V2 logs in at the GPRS access point of the mobile service provider using the APN address, APN user name and APN user password. An IP address from the address area of the provider is assigned to the CP 1242-7 V2. It is now accessible via internet and can send IP-based requests to other participants on the internet.
3 Function principle
3.1 Connection buildup between remote station and central station via TCSB V3
TeleService with TCSB Entry-ID: 56720905, V1.0, 10/2016
10
Siemens AG 2016 All rights reserved
Note
The APN user name and the APN user password are provider-dependent
3. Fixed IP address
The CP 1242-7 V2 sends a connection request to the central station. The static IP address of the internet connection for accessing the central station is required.
4. Port
As soon as the connection request has been received by the router of the local IT network of the central station, it will be forwarded to the central station with the relevant port number.
5. Project number, station number and TeleControl password
TCSB V3 checks the connections request of the CP 1242-7 V2, using the data (project number and station number) stored in the configuration.
To authenticate the remote station, an additional password is requested. If the connection request is evaluated successfully the TCSB V3 updates the
internal routing table entry related to this remote station and the corresponding current IP address of the CP 1242-7 V2. A connection for the transmission of TCP/IP packages is established between the CP 1242-7 V2 of the remote station and the central station.
6. IP address of TCSB V3
3 Function principle

3.2 Teleservice connection between remote station and engineering station

TeleService with TCSB Entry-ID: 56720905, V1.0, 10/2016
11
Siemens AG 2016 All rights reserved
TCSB
Central Station
Remote Station
Engineering Station
TCSB V3
GSM/ GPRS
4. Teleservice user name Teleservice password
1. IP address of TCSB
2. Port
3. Server password
4. Teleservice user name Teleservice password
2. Port
3. Server password
2. Port
Teleservice
3.2 Teleservice connection between remote station and engineering station
As engineering station and remote station always communicate via the central station, the central and the remote station need to be connected via the TCSB V3 in this application example. The TeleService connection for loading project or program data or querying diagnostic data is directly integrated in the main connection.
The graphic below shows the complete system with all parameters required for a teleservice communication between remote station and engineering station in addition to the parameters from Figure 3-1.
Figure 3-2
1. IP address of TCSB V3
The engineering station sends a connection request to the central station. For this, the IP address of the TCSB V3 is needed, via which the TeleService connection between engineering station and remote station is run.
2. Port
As soon as the connection request has been received by the router of the local IT network of the central station, it will be forwarded to the central station with the relevant port number.
3. Server password
The TCSB V3 checks the connection request of the engineering station. This password is used to authenticate the engineering station in the TCSB.
If this remote station is entered in the TCSB V3 and online, the teleservice request from the engineering station to the remote station is forwarded on the basis of the existing TCP/IP connection.
3 Function principle
3.2 Teleservice connection between remote station and engineering station
TeleService with TCSB Entry-ID: 56720905, V1.0, 10/2016
12
Siemens AG 2016 All rights reserved
4. TeleService user name and password
For protection against an unauthorized access to the CP 1242-7 V2, the TeleService user name and password are requested during the start-up of the TeleService session.
If the teleservice connection request is validated, diagnostic and program data can then be transferred between the remote station and the engineering station. The process value communication is not affected by this.
Loading...
+ 26 hidden pages