S7 1200 WinCC Adv DOC V20 en PDF
S7 1200 WinCC Adv DOC V20 en PDF
of S7-1200 Stations
with TeleControl
Server Basic V3.1
Siemens
CP 1242-7 V2 / CP 1243-1 / TCSB V3.1 Industry
Online
https://support.industry.siemens.com/cs/ww/en/view/39863979 Support
Legal information
Legal information
Use of application examples
Application examples illustrate the solution of automation tasks through an interaction of several
components in the form of text, graphics and/or software modules. The application examples are
a free service by Siemens AG and/or a subsidiary of Siemens AG (“Siemens”). They are non-
binding and make no claim to completeness or functionality regarding configuration and
equipment. The application examples merely offer help with typical tasks; they do not constitute
customer-specific solutions. You yourself are responsible for the proper and safe operation of the
products in accordance with applicable regulations and must also check the function of the
respective application example and customize it for your system.
Siemens grants you the non-exclusive, non-sublicensable and non-transferable right to have the
application examples used by technically trained personnel. Any change to the application
examples is your responsibility. Sharing the application examples with third parties or copying the
application examples or excerpts thereof is permitted only in combination with your own products.
The application examples are not required to undergo the customary tests and quality inspections
of a chargeable product; they may have functional and performance defects as well as errors. It is
your responsibility to use them in such a manner that any malfunctions that may occur do not
result in property damage or injury to persons.
Disclaimer of liability
Siemens shall not assume any liability, for any legal reason whatsoever, including, without
limitation, liability for the usability, availability, completeness and freedom from defects of the
application examples as well as for related information, configuration and performance data and
any damage caused thereby. This shall not apply in cases of mandatory liability, for example
under the German Product Liability Act, or in cases of intent, gross negligence, or culpable loss of
life, bodily injury or damage to health, non-compliance with a guarantee, fraudulent
non-disclosure of a defect, or culpable breach of material contractual obligations. Claims for
damages arising from a breach of material contractual obligations shall however be limited to the
© Siemens AG 2018 All rights reserved
foreseeable damage typical of the type of agreement, unless liability arises from intent or gross
negligence or is based on loss of life, bodily injury or damage to health. The foregoing provisions
do not imply any change in the burden of proof to your detriment. You shall indemnify Siemens
against existing or future claims of third parties in this connection except where Siemens is
mandatorily liable.
By using the application examples you acknowledge that Siemens cannot be held liable for any
damage beyond the liability provisions described.
Other information
Siemens reserves the right to make changes to the application examples at any time without
notice. In case of discrepancies between the suggestions in the application examples and other
Siemens publications such as catalogs, the content of the other documentation shall have
precedence.
The Siemens terms of use (https://support.industry.siemens.com) shall also apply.
Security information
Siemens provides products and solutions with industrial security functions that support the secure
operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary
to implement – and continuously maintain – a holistic, state-of-the-art industrial security concept.
Siemens’ products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines
and networks. Such systems, machines and components should only be connected to an
enterprise network or the internet if and to the extent such a connection is necessary and only
when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit
https://www.siemens.com/industrialsecurity.
Siemens’ products and solutions undergo continuous development to make them more secure.
Siemens strongly recommends that product updates are applied as soon as they are available
and that the latest product versions are used. Use of product versions that are no longer
supported, and failure to apply the latest updates may increase customer’s exposure to cyber
threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed
at: http://www.siemens.com/industrialsecurity.
Table of Contents
Legal information ......................................................................................................... 2
1 Task ..................................................................................................................... 5
2 Solution............................................................................................................... 6
2.1 Overview............................................................................................... 6
2.2 Description of the core functionality ..................................................... 8
2.3 Overview and description of the user interface .................................... 9
2.4 Hardware and software components ................................................. 11
2.4.1 Validity ................................................................................................ 11
2.4.2 Components used .............................................................................. 11
3 Mode of Operation ........................................................................................... 13
3.1 Complete overview of the configuration ............................................. 13
3.2 Functionality of Station 1 / Station 2 ................................................... 18
3.2.1 Program details about the "SimProgCP12xx" FB .............................. 18
3.2.2 Call of the "SimProgCP12xx" FB in OB1 ........................................... 20
3.2.3 Program details about the "DataThresSim" FB .................................. 21
3.2.4 Call of the "DataThresSim" FB in OB1 ............................................... 23
3.2.5 Program details about the "InflowFilllevelSim" FB ............................. 24
3.2.6 Call of the "InflowFilllevelSim" FB in OB1 .......................................... 25
3.3 Partner status ..................................................................................... 26
3.4 CP diagnostics ................................................................................... 26
© Siemens AG 2018 All rights reserved
1 Task
Introduction
The infrastructure of a sewage treatment plant contains two SIMATIC S7-1200
substations. One station is to communicate with a master station via the cellular
network and the other station is to communicate via Ethernet.
The TeleControl Server Basic V3.1 software is installed in the master station. Its
OPC interface allows you to connect any OPC client, for example WinCC.
TCSB
WinCC Adv
Ethernet
© Siemens AG 2018 All rights reserved
Internet
Station 1 Station 2
Requirements
This application example is intended to meet the following requirements:
• Both remote stations send some process tags to the master station on a
"threshold-triggered" basis.
• Both remote stations cyclically send important process tags to the master
station.
• Both remote stations send some process tags to the master station on an
"event-triggered" basis.
• The master station monitors the status of the connected remote stations.
The simulated process in the remote stations is to be operated and controlled with
the aid of visualization software.
2 Solution
2.1 Overview
Diagrammatic representation
The diagrammatic representation below shows the most important components of
the solution:
Figure 2-1
Master station
TCSB
© Siemens AG 2018 All rights reserved
SCALANCE
M816
Internet
Cellular network
Station 1 Station 2
S7-1200 with S7-1200 with
CP 1242-7 V2 CP 1243-1
Industrial Ethernet
Tunnel connection
Configuration
TeleControl Server Basic V3.1 (TCSB) in the master station allows a direct
connection to the S7-1200 stations.
Communication takes place via the following paths and communication modules:
• S7-1200 with CP 1242-7 V2: communication via the cellular network and the
Internet.
• S7-1200 with CP 1243-1: communication via Ethernet. By using single-mode
optical fiber technology, here, too, systems can span several kilometers.
Any OPC client visualizes the data via the integrated OPC UA server of
TCSB V3.1. In this example, we demonstrate the functions using UaExpert and the
WinCC Advanced SCADA system.
Advantages
The solution presented here offers the following advantages:
• TeleControl Server Basic V3.1 enables economic data communication
between remote stations and a master station.
• The core application areas are industrial applications where the objective is to
transmit data in a cost-effective way on a wireless basis, for example in water
treatment plants, for water purification or in pumping stations.
• TCSB's OPC UA interfaces provide the data of the connected stations to one
or more connected OPC UA clients.
© Siemens AG 2018 All rights reserved
Scope
This application does not include a description of
• SIMATIC NET TeleControl Server Basic. See document \4\.
• SIMATIC HMI configuration
• the LAD/FBD/STL/SCL programming languages.
Basic knowledge of these topics is required.
Threshold-triggered
Data is not transmitted until the current data has changed by a threshold compared
to the last sent data.
Time-triggered
The data is transmitted from the CP to TCSB in a specified time frame.
Event-triggered
The data is transmitted when a configured trigger signal is triggered. The edge
change (0 → 1) of a trigger tag set by the user program is evaluated as a signal.
Once the data has been successfully transferred, the trigger tag will be reset.
Status monitoring
The master station monitors the status of the connected remote stations.
Note For a more detailed description of these functions, please refer to Chapter 3 and
the following chapters.
"TCSB Communication"
The "TCSB Communication" screen shows the status of the connection to the two
substations. It additionally shows the process data sent from the stations.
Figure 2-2
1 3
2 4
© Siemens AG 2018 All rights reserved
5 6
Table 2-1
No. Item Description
1. Communication Status: Information about the communication status of
• Connectionstate Station 1
• SignalQuality
• PLCConnected
• PLCCpuState TCSB itself determines the values.
"S7-1200 Application"
The "S7-1200 Application" screen visualizes the processes of stations 1 and 2.
Figure 2-3
1 2
3 4
5 6
© Siemens AG 2018 All rights reserved
Table 2-2
No. Item Description
1. Filling level and Inflow Current fill level and inflow of Station 1.
2. Filling level and Inflow Current fill level and inflow of Station 2.
3. Parameters for the threshold • Outflow: current outflow
trigger process of Station 1. • On: starts the data simulation
• Off: stops the data simulation
4. Parameters for the threshold • Outflow: current outflow
trigger process of Station 2. • On: starts the data simulation
• Off: stops the data simulation
5. Change screen Click the buttons to display the appropriate
screens.
6. Stop Runtime Clicking this button stops WinCC Runtime.
Note For the STEP 7 V13 SP1 project, refer to the archive on the download page of
the entry (see \2\).
To configure the SIMATIC CP 1243-1 module with STEP 7 V13 SP1, you need
HSP 0170. (See \3\)
Accessories
Table 2-5
Component No. Article number Note
SIM card 1 Available from your mobile service Enabled for data
provider communication
DSL router & 1 Specialist retailers SCALANCE M816
modem
Static IP address for 1 Can be requested from your
DSL Internet service provider
or
DynDNS
Software components
Table 2-6
Component No. Article number Note
SIMATIC STEP 7 V15.1 1 6ES7822-1AA05-0YA5 Trial download:
The software is subject to
export restrictions. The
download is only available
for registered users. (See
\5\)
TCSB 8 V3.1.0.1 1 6NH9910-0AA31-0AA0 Number of connectable
© Siemens AG 2018 All rights reserved
software stations: 8.
(see \9\) The product is available in
other configurations and
license options, see
document \5\.
SIMATIC WinCC 1 6AV2102-0AA05-0AA7 Trial download:
Advanced V15.1 The software is subject to
export restrictions. The
download is only available
for registered users. (See
\5\)
UaExpert v1.4.4 1 Free download from Requires registration with
Unified Automation the vendor (see \8\)
3 Mode of Operation
Key points of this application example:
• Configuration of an S7-1200 station with the CP 1242-7 V2 for data
communication with the master station via the cellular network and the Internet.
• Configuration of an S7-1200 station with the CP 1243-1 for data
communication with the master station via Ethernet.
• Configuration of TeleControl Server Basic in the master station.
• Data exchange between the stations and the master station.
Threshold-triggered
© Siemens AG 2018 All rights reserved
Integr:value= -0.7
Integr:value= -1.1
Integr:value= 2.3
Integr:value= 1.8
Integr:value= 0.9
Integr:value= -2
Integr:value= 0
Integr:value= 0
Integr:value= 0
Integr:value= 0
22 0.9 0.9
0.5 0 0
21.5
0
21 -0.2 -0.2
-1.1 0
20.2
20 -1.3
Time
500ms 1s 1.5s 2s 2.5s 3s 3.5s 4s 4.5s 5s 5.5s
Transmitted value
Currently acquired value
Time-triggered
The current fill level is cyclically (here: 30s) transmitted to the master station.
Event-triggered
The inflow alarm bit (overflow) is transmitted to the master station if the trigger
signal is triggered. The trigger signal is set by the user program if the current inflow
is greater than the limit value. This transfer of the alarm bit resets the trigger signal.
The following figure shows the configuration of the S7-1200 stations for data
communication with the master station.
Figure 3-2
Master station
WinCC
Station x
Table 3-1
No. Station 1 Station 2
1. In the CP, the "Data.fillLevel" PLC tag is used to configure the "FillLevel" data point.
2. The data point is sent to the master station when the transmission criteria are met.
3. It is then passed on to the WinCC OPC client as an OPC tag.
4. The OPC tag is used to configure the HMI tag.
SimProg
Main
CPx
DataThres Data
Data points
Sim
InflowFill
levelSim
Station 1: CP 1242-7 V2
User block Data blocks Station 2: CP 1243-1
© Siemens AG 2018 All rights reserved
Table 3-2
Element Symbolic name Description
OB1 Main Cyclic OB: call of the user program
FB1 SimProgCPx The "SimProgCPx" FB contains the
simulation for the event-triggered
process (Table 3-1, step 4).
FB2 DataThresSim The "DataThresSim" FB simulates the
"outflow" for the threshold-triggered
process.
FB3 InflowFilllevelSim The "InflowFilllevelSim" FB simulates the
"inflow" and "filllevel" parameters.
DB1 Data Global data block for saving the data:
• Send data
• Status tags
• Tags for the data simulation
Data points Configured data points for data exchange between a station and the
master station.
Table 3-3
Name Data type Description
fillLevel Real Current fill level of Station 1 or
Station 2.
inflow Real Current inflow of Station 1 / Station 2.
inflowUp Real Limit value of the inflow of Station 1 / Station 2.
Start value: 25.0
overflow Bool Indicates the status of the current inflow.
True:
current inflow has exceeded limit value.
False:
current inflow less than limit value.
The "SimProgCPxx" function block sets the trigger signal for sending an alarm bit
("overflow") to the master station if the current inflow of Station 1 or Station 2 is
greater than the limit value (inflowUp).
The trigger signal is automatically reset when the data is transmitted to the CP.
Figure 3-5
Start
Inflow
Limit value
Inflow<> no
InflowOld
yes
no
Inflow >
© Siemens AG 2018 All rights reserved
Limit value
yes
500ms
delay
yes
Set
trigger signal
End
If the inflow of Station 1 or Station 2 is greater than the limit value (inflow >
inflowUp), a timer is started in the user program. When the time (500ms) has
elapsed, the "statTriggerOverflow" trigger signal is set in the user program and the
inflow status (Overflow) is sent to the master station.
Note It is recommended to set the trigger signal for the event-triggered process with a
delay of approx. 500ms to ensure that the value change of the PLC tag is reliably
applied to the appropriate data point.
Note Each trigger signal should be linked to a static tag in the instance data block in
the CPU.
If the trigger signal is interconnected with a global tag, it is possible that the
trigger signal may not be automatically reset. This is due to runtime differences
between the CPU cycle and the CP cycle.
The following figure and table show the call interface of the user block, FB
"SimProgCP12xx" (FB1). It is identical for both stations.
Figure 3-6
Table 3-4
Name Data type Description
inflow Real Current inflow of Station 1 or
Station 2.
© Siemens AG 2018 All rights reserved
Input
The "SimProgCP12xx" FB (FB1) is called cyclically in OB1. The input and output
parameters are stored in the global data block, "Data".
Figure 3-7
© Siemens AG 2018 All rights reserved
Using a cyclic triangle function, the "DataThresSim" function block simulates the
"outflow" of the process.
Figure 3-8
Max. amplitude
Min. amplitude Start
Duration
Outflow
t>0& no
t <=
duration/2
yes
(2*dA*t) / dur.+
min. amplitude
t > dur./2 no
© Siemens AG 2018 All rights reserved
&
t <= dur.
t>
duration
min. amplitude
The following figure and table show the call interface of the user block, FB
"DataThresSim" (FB2). It is identical for both stations.
Figure 3-9
Table 3-5
Name Data type Description
start Bool True:
The data simulation for the threshold-triggered
process is active.
False:
The data simulation for the threshold-triggered
© Siemens AG 2018 All rights reserved
The "DataThresSim" FB (FB2) is called cyclically in OB1. The input and output
parameters are stored in the global data block, "Data".
Figure 3-10
© Siemens AG 2018 All rights reserved
The "InflowFilllevelSim" function block simulates the values for the "Inflow" and
"Filllevel" tags. The "LGF_Sawtooth" function block from the "LGF_Library" was
used to generate a sawtooth signal.
In addition to this, the "Start" tag sent from the master station is relocated to the
"StartMirror" tag and then sent back to the master station. As an acknowledgment
mechanism, this procedure ensures that the values sent from the master station
have been written in the CPU.
Figure 3-11
Start
Start no
set
yes
Set
© Siemens AG 2018 All rights reserved
StartMirror
Sawtooth
simulation for
inflow
Sawtooth
simulation for
fill level
no
Start
reset
yes
Reset
StartMirror
End
The following figure and table show the call interface of the user block, FB
"DataThresSim" (FB2). It is identical for both stations.
Figure 3-12
Table 3-6
Name Data type Description
start Bool True:
The data simulation for the inflow and fill level is
Input
active.
False:
The data simulation for the inflow and fill level
was stopped.
inflow Real Current value of the inflow of Station 1 /
startMirror
Station 2.
Output
The "InflowFilllevelSim" FB (FB3) is called cyclically in OB1. The input and output
parameters are stored in the global data block, "Data".
Figure 3-13
Byte1 Byte 0
Not assigned
0: Send buffer OK
1: Send buffer overflow imminent
(above 80% of fill level )
3: Send buffer overflow imminent
(above 100% of fill level)
3.4 CP diagnostics
Advanced "CP diagnostics" in the CP 1242-7 configuration (see \5\) allow you to
read the status of the connection to the data service in the cellular network from the
CP.
This information is written to the "networkStatus" PLC tag (UInt) in the "Data" DB.
Table 3-7
networkStatus Meaning
0 Cellular network status: not connected
1 Wrong PIN number
2 SIM card missing or defective
3 Waiting for PIN to be entered
4 Cellular network status: connected
Note In the project, the configuration and project engineering have already been fully
implemented. This chapter is for information only.
No. Action
5. Enable telecontrol communication and S7 communication:
"Properties > General > Communication types".
No. Action
8. Configure the CP parameters required to configure the TeleControl server:
"Properties > Partner stations > Connection to partner"
• Partner IP address (static IP address / depends on the provider)
• Partner port
„WAN-IP-ADDRESS“
No. Action
10. Check "Enable advanced CP diagnostics":
"Properties > Communication with the CPU > CP diagnostics".
© Siemens AG 2018 All rights reserved
Link the "diagnostics trigger tag" and the PLC tags you want to read from the CP
1242-7 GPRS V2.
11. Configure the desired data points (see Chapter 4.2).
Threshold trigger
The value of the data point is transmitted when it reaches a certain threshold.
The threshold calculation does not evaluate the absolute value of the process
value's deviation from the last saved value, but the value of the integrated deviation
(see Figure 3-1).
Table 4-3
No. Action
1. Open the data point configuration
editor.
© Siemens AG 2018 All rights reserved
2. Insert the "outflow" data point as an analog input and link it to the "Data.outflow" PLC
tag.
3. Set the transfer method for this data point (here: Current value triggered).
Note:
The index of a data point of the Input type must be unique across all data point types
(digital inputs, analog inputs, etc.).
No. Action
5. As the communication partner, select "Telecontrol server".
Time trigger
The data point value is transmitted cyclically (30 s).
Table 4-4
No. Action
© Siemens AG 2018 All rights reserved
1. In the data point configuration editor, insert the "fillLevel" data point as an analog
input and link it to the "Data.fillLevel" PLC tag.
2. Set the transfer method for this data point (here: Current value triggered).
Note:
The index of a data point of the Input type must be unique across all data point
types
(digital inputs, analog inputs, etc.).
4. As the communication partner, select "Telecontrol server".
No. Action
5. Configure the "time trigger":
"Properties > General > Trigger > Time trigger"
Event trigger
The data point value is transmitted when a configured trigger signal is triggered.
Table 4-5
No. Action
1. In the data point configuration editor, insert the "overflow" data point as an analog
input and link it to the "Data.overflow" PLC tag.
© Siemens AG 2018 All rights reserved
2. Set the transfer method for this data point (here: Current value triggered).
Note:
The index of a data point of the Input type must be unique across all data point
types
(digital inputs, analog inputs, etc.).
4. As the communication partner, select "Telecontrol Server".
No. Action
5. Configure the "event trigger":
"Properties > General > Trigger > Event trigger"
In the user program, create a trigger tag and link it to the "event trigger".
Note It is recommended to set the trigger tag with a delay of approx. 500 ms to ensure
that the value change of the inflow is reliably applied to the appropriate data
point.
© Siemens AG 2018 All rights reserved
Note The trigger signal should be linked to a static tag in the instance data block in the
CPU.
If the trigger signal is interconnected with a global tag, it is possible that the
trigger signal may not be automatically reset. This is due to runtime differences
between the CPU cycle and the CP cycle.
No. Action
6. Configure the CP parameters required to configure the TeleControl server:
"CP 1243-1 Properties > Partner stations > Connection to partner"
• Partner IP address
• Partner port
"Windows Start menu > All Programs > Siemens Automation > SIMATIC > TCS
Basic > Config and Monitoring Tool"
2. After starting the program, the CMT Logon window opens.
No. Action
6. "Save & activate" the configuration to
activate the configuration data for
connection establishment.
Note:
The parameters assigned here must be identical to the parameters in the
STEP 7 project.
• Click OK.
© Siemens AG 2018 All rights reserved
No. Action
10. Configure the IP address and the ports of the TeleControl server:
"TCSB system > "TCM" tab > General > Address TCM 1".
Note Once the stations have established a connection to TeleControl Server Basic,
the configured data points are known to the server. Only then can you assign the
"Archive" and "Data buffer" attributes to the data points.
Both attributes are necessary for this application.
Note If you create a new TCSB project for this application example, modify the
relevant HMI tags in the visualization software accordingly.
"Windows Start menu > All Programs > Unified Automation > UaExpert"
2. Insert the OPC server:
© Siemens AG 2018 All rights reserved
No. Action
4. Select the OPC.SimaticNET.TCSB server and choose the desired authentication
method (here: no authentication). Check "Connect Automatically":
© Siemens AG 2018 All rights reserved
No. Action
6. Use drag and drop to move any data points to the "Data Access View" area.
© Siemens AG 2018 All rights reserved
No. Action
8. Check the data points' attributes in the CMT.
Only data points with the "Archive" attribute can be monitored using the
"History Trend View".
9. Use drag and drop to move any data points with the "Archive" attribute to the
"Configuration" area:
© Siemens AG 2018 All rights reserved
Note If you create a new project for this application example, modify the relevant HMI
tags in the visualization software accordingly.
NOTICE Before you switch on the power supply, complete and check the
installation!
The following figure shows the hardware configuration of Station 1: S7-1200 CPU
with the CP 1242-7 GPRS V2.
Figure 5-1
© Siemens AG 2018 All rights reserved
24 V
Table 5-1
No. Action
1. Insert your SIM card into the CP 1242-7 GPRS V2.
2. Insert the SIMATIC Memory Card into the CPU.
3. Connect the CPU to the CP 1242-7 GPRS V2 via the backplane bus.
4. Attach the two modules to a suitable rack.
5. Connect the antenna to the CP 1242-7 GPRS V2.
6. Connect the CPU and the CP 1242-7 GPRS V2 to a 24 V DC power source.
7. Connect the DC power source to the power grid
(220 / 230 V AC).
The following figure shows the hardware configuration of Station 2: S7-1200 CPU
with the CP 1243-1.
Figure 5-2
Master station
24 V
172.16.62.1 172.16.62.100
Industrial Ethernet
Table 5-2
No. Action
© Siemens AG 2018 All rights reserved
The following figure shows the hardware configuration of the master station.
Figure 5-3
TCSB V3.1
WinCC Adv. Static IP address
Internet
(DSL)
172.16.62.100 172.16.0.1
Industrial Ethernet
Table 5-3
No. Action
1. Connect your PC on which TeleControl Server Basic is installed to the router
© Siemens AG 2018 All rights reserved
via Ethernet.
2. If the DSL modem is not integrated in the router, connect the router to the
DSL modem.
5.4 Startup
5.4.1 Assigning the IP address of the master station
The following table shows the network properties you must set for the master
station.
Table 5-6
© Siemens AG 2018 All rights reserved
No. Action
1. Open the Internet Protocol (TCP/IP) Properties:
"Start > Control Panel > Network and Internet > Network Connections > Local
Connections"
2. In the open window, select Internet Protocol (TCP/IPv4) and open Properties.
3. Enter the IP address for your master
station.
In the "Default gateway" and
"Preferred DNS server" fields, enter
the DSL router's internal IP address.
For the configuration, no specific router will be discussed as the screen forms will
differ from router to router.
Table 5-7
No. Action
1. Open the router's configuration user This can be additional software,
interface. "Telnet" or a Web page.
2. Enter the access data for your Internet Login, password, etc. you received
account. from your provider.
3. Enter your DNS server. The address is provided with your
access data.
4. Assign a LAN IP address to the router. In this example:
172.16.0.1.
5. Forward the partner port. TCP port 55097 to port 55097 of
172.16.62.100.
Note To configure the router, you have to assign an IP address to your PG/PC that is
in the router's internal network.
© Siemens AG 2018 All rights reserved
Table 5-8
No. Action
1. Stop the existing database by selecting
"Windows Task Manager" > "Services" tab > "Services" button > "TCS Basic
Database Service" (right-click) > "Stop".
© Siemens AG 2018 All rights reserved
No. Action
2. Start SQL Server Management Studio as an administrator:
"Start > All programs > Microsoft SQL Server 2008 R2 > SQL Server
Management Studio (right-click) > Run as administrator"
© Siemens AG 2018 All rights reserved
No. Action
4. Select the "Databases" item.
No. Action
6. • In the "Destination for restore" field, select the "TCSB" database ("To
database").
• In the "Source for restore" field, select the "From device" option and use
the "..." button to open the "Specify Backup" dialog.
• Select the "39863979_S7-1200_with_TCSB.bak" backup copy by first
opening the file browser using the "Add" button.
© Siemens AG 2018 All rights reserved
7. In the "Restore Database - TCSB" dialog, select the selected “backup set” in
the "Restore" column and click "OK".
8. Click "OK" to close Management Studio.
9. Restart the computer.
5.4.4 Configuring the IP address and the ports of TeleControl Server Basic
V3.1
Table 5-9
No. Action
1. Start the configuration and monitoring user interface of TCSB (CMT):
"Windows Start menu > All Programs > Siemens Automation > SIMATIC > TCS
Basic > Config and Monitoring Tool".
2. After starting the program, the CMT Logon window opens.
– Computer name
or
– IP address (default IP address: 127.0.0.1)
3. Configure the Telecontrol server's IP address by selecting:
"TCSB system > Edit > Address TCM 1".
Set "IPT listener-port" to 55097.
No. Action
4. Configure the settings for the integrated OPC server.
© Siemens AG 2018 All rights reserved
To monitor the process data at the master station, you must open the
"39863979_S7-1200_with_TCSB.uap" UaExpert configuration file included in the
project.
Table 5-10
No. Action
1. Open UaExpert:
"Windows Start menu > All Programs > Unified Automation > UaExpert"
2. Open the "39863979_S7-1200_with_TCSB.uap" file:
"File > Open …".
3. Open the OPC server settings:
© Siemens AG 2018 All rights reserved
No. Action
5. Connect UaExpert to the OPC UA server:
6. In the next dialog, select "Trust Server Certificate" to confirm the certificate
and then click "Continue":
© Siemens AG 2018 All rights reserved
No. Action
7. Open the "OPC.SimaticNET.TCSB" server. If the connection to the server was
successful, you will see the OPC items.
© Siemens AG 2018 All rights reserved
Requirements
• Connect your PG to the CPU.
• The CPU must be in a mode that allows downloading.
• Before downloading the user program, a general reset of the CPU should be
performed to ensure that no "old" blocks are on the CPU.
Table 5-11
No. Action
1. Connect the engineering PG to the PROFINET interface of the S7 CPU.
2. Unzip the "39863979_S7-1200_WinCC_Adv_PROJ_V20.zip" project.
3. Open the following STEP 7 project:
"39863979_S7-1200_WinCC_Adv_CODE_V20.ap15_1"
4. Log on:
© Siemens AG 2018 All rights reserved
Note:
This step is only required for the CP
1242-7 GPRS V2.
No. Action
6. Change the partner IP address (static IP address of your DSL router) required for
the connection to the TeleControl server in the master station:
„WAN-IP-ADDRESS“
Note:
This step is only required for the CP 1242-7 GPRS V2.
7. Compile and save the project.
8. Select the "S7-1200_CP1242-7" or "S7-1200_CP1243-1" station.
© Siemens AG 2018 All rights reserved
Figure 6-1
Start screen
© Siemens AG 2018 All rights reserved
Figure 6-2
Note For Station 1 (CP 1242-7 GPRS), the TeleService function must be activated in
order to monitor or modify the table's tags as the master station and the CP are
not in the same IP network. (See \7\)
© Siemens AG 2018 All rights reserved
The TeleService function is not necessary for Station 2 as the master station and
the CP are in the same IP network.
Verify that both nodes have established a connection ("Connection = 1"). If this is not
the case, check the hardware configuration and the configuration of both stations.
4. Use the "On" button to start the data simulation for the respective station.
The master station therefore sends a 'start data simulation' command to the station.
The station reports that the data simulation has started. In the HMI system, the "On"
button is displayed in green.
5. To stop the data simulation, click the "Off" button.
6. To stop WinCC Runtime, click "Stop Runtime".
© Siemens AG 2018 All rights reserved
Note:
"Threshold trigger"=2 was configured in the data point configuration (see
Chapter 4-2).
3. Repeat the step for Station 2.
2. Go to the "TCSB Communication" screen. In this screen, you can also monitor the
fill level value.
No. Action
4. The overflow alarm is displayed in the "TCSB Communication" screen.
No. Action
2. Open the "History Trend View" in UaExpert.
3. Use drag and drop to move the desired data points to the "Configuration" area.
© Siemens AG 2018 All rights reserved
5. Go to WinCC and start the value simulation as described in Chapter 6.2. Now you
can monitor the data points' trend.
Alternatively, you can use the "Trend view" WinCC control. To this end, an optional
screen is configured in the HMI.
7 Appendix
7.1 Service and Support
Industry Online Support
Do you have any questions or need assistance?
Siemens Industry Online Support offers round the clock access to our entire
service and support know-how and portfolio.
Industry Online Support is the central address for information about our products,
solutions and services.
Product information, manuals, downloads, FAQs, application examples and videos
– all information is accessible with just a few mouse clicks at:
https://support.industry.siemens.com/
Technical Support
The Technical Support of Siemens Industry provides you with fast and competent
support regarding all technical queries with numerous tailor-made offers
– ranging from basic support to individual support contracts.
You send queries to Technical Support via Web form:
https://www.siemens.en/industry/supportrequest
© Siemens AG 2018 All rights reserved
Service offer
Our range of services includes the following:
• Plant data services
• Spare parts services
• Repair services
• On-site and maintenance services
• Retrofitting and modernization services
• Service programs and contracts
You can find detailed information on our range of services in the service catalog:
https://support.industry.siemens.com/cs/sc
https://support.industry.siemens.com/cs/ww/en/view/109757071
9 History
Table 9-1
Version Date Modifications
V1.0 05/2016 First version
V1.1 02/2018 • Upgraded to STEP 7 V14.
• New block and data point link for the simulation and
transfer of fill level and inflow.
V1.2 06/2018 • Upgraded to STEP 7 V15.
• New TCSB functions added.
• OPC Scout replaced by UaExpert.
V2.0 09/2019 Upgraded to STEP 7 V15.1