You are on page 1of 56

Inter-Station

Communication
between S7-1200
Stations Using TCSB
V3.1 via CP 1242-7 V2
Siemens
CP 1242-7 V2, TCSB V3.1 Industry
Online
https://support.industry.siemens.com/cs/ww/en/view/58099765 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: https://www.siemens.com/industrialsecurity.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 2
Table of contents

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 Principle of Operation ..................................................................................... 13
3.1 Complete overview of the data flow ................................................... 13
3.1.1 Station 2, "Stormwater Overflow", program overview ........................ 16
3.1.2 Global data block: "SndRcvData" (DB1) ............................................ 17
3.2 Functionality of Station 2, "Stormwater Overflow" ............................. 19
3.2.1 Program details on the "SimProgSO" FB ........................................... 19
3.2.2 Call of the "SimProgSO" FB in OB1 ................................................... 21
3.3 Partner status ..................................................................................... 22
3.4 CP diagnostics ................................................................................... 22
4 Configuration and Project Engineering ......................................................... 23
© Siemens AG 2018 All rights reserved

4.1 Configuring the stations "Inspection Shaft" and "Stormwater


Overflow" ............................................................................................ 23
4.2 Configuring the data points ................................................................ 27
4.2.1 "Inspection Shaft" station ................................................................... 27
4.2.2 "Stormwater Overflow" station............................................................ 30
4.3 Configuring TeleControl Server Basic (TCSB) ................................... 35
5 Installation and Startup ................................................................................... 38
5.1 Installing the hardware ....................................................................... 38
5.1.1 "Inspection Shaft" hardware configuration ......................................... 38
5.1.2 "Stormwater Overflow" hardware configuration ................................. 39
5.1.3 Master station hardware configuration ............................................... 40
5.2 Installing the software ......................................................................... 40
5.3 Installing the application software ...................................................... 41
5.4 Startup ................................................................................................ 41
5.4.1 Setting the IP addresses .................................................................... 41
5.4.2 Assigning the IP address to the engineering station .......................... 41
5.4.3 Configuring the DSL router................................................................. 42
5.4.4 Inserting a backup copy of the database into TCSB V3.1 ................. 43
5.4.5 Configuring TeleControl Server Basic V3.1 ....................................... 46
5.4.6 Loading the stations ........................................................................... 47
6 Operation of the Application .......................................................................... 49
6.1 Overview............................................................................................. 49
6.1.1 HMI menu ........................................................................................... 49
6.1.2 Watch tables ....................................................................................... 50
6.2 Station "Inspection Shaft" ................................................................... 51
6.3 Station "Stormwater Overflow" ........................................................... 53
7 Appendix .......................................................................................................... 55
7.1 Service and support ........................................................................... 55
8 Links & Literature ............................................................................................ 56

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 3
Table of contents

9 History............................................................................................................... 56
© Siemens AG 2018 All rights reserved

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 4
1 Task

1 Task
Introduction
The infrastructure of a sewage treatment plant contains two SIMATIC S7-1200
substations. Both stations are to exchange data with each other.
Both stations are connected to a master station on which the TeleControl Server
Basic V3.1 software is installed. Inter-station communication takes place only via
the master station.
The Internet-based GPRS service is the data transfer medium to be used.

Overview of the automation task


The figure below provides an overview of the automation task.
Figure 1-1
Master station

TCSB
WinCC
© Siemens AG 2018 All rights reserved

Internet

Fill level
Inflow

“Inspection Shaft” “Stormwater Overflow”

Requirements
This application example is intended to meet the following requirements:
• The "Inspection Shaft" station (Station 1) cyclically requests data from the
"Stormwater Overflow" station (Station 2).
• The "Stormwater Overflow" station sends data to the "Inspection Shaft" station
on an "event-triggered" basis.
• The master station monitors the status of the connected substations.
The process in the remote stations is operated and controlled with the aid of
visualization software.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 5
2 Solution

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

SCALANCE
M816

Tunnel connection
© Siemens AG 2018 All rights reserved

Internet

Cellular network

Station 1 Station 2
S7-1200 with S7-1200 with
CP 1242-7 V2 CP 1242-7 V2

Configuration
TeleControl Server Basic V3.1 (TCSB) in the master station allows inter-station
communication between the two S7-1200 stations. The TCSB V3.1’s counterpart is
the CP 1242-7 V2 included in each substation. For test purposes, the two stations
are connected to the master station.
Communication takes place via the cellular network and the Internet.
The application is visualized using WinCC Advanced.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 6
2 Solution

Note For information on the data communication between S7-1200 stations and
TeleControl Server Basic, please refer to this application example: "Data
communication between S7-1200 stations and TeleControl Server Basic V3.1 via
CP 1242-7 V2 and CP1243-1" (see \7\).

Advantages
The solution presented here offers the following advantages:
• TeleControl Server Basic V3.1 enables economic data communication
between remote stations.
• 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.
• GPRS and Internet: Always-on functionality.
• To increase reliability, the CPs can, in the event of a connection failure, buffer
the data of events of different classes and transfer the aggregated data to the
TeleControl Server.

Scope
This application does not include a description of
• SIMATIC NET TeleControl Server Basic. See document \3\.
• SIMATIC HMI operator panels.
© Siemens AG 2018 All rights reserved

• the LAD/FBD/STL/SCL programming languages.


Basic knowledge of these topics is required.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 7
2 Solution

2.2 Description of the core functionality


Functions implemented
The following core functions are implemented in the application example:
Table 2-1
Station Station 1 Station 2 Master station
"Inspection "Stormwater
Function Shaft" Overflow"
Time-triggered
✓ ✓ ✗
Event-triggered
✗ ✓ ✗
Status monitoring
✗ ✗ ✓

Time-triggered
The "Inspection Shaft" station cyclically requests data from the "Stormwater
Overflow" station (polling).
It cyclically sends a bit to the "Stormwater Overflow" station and the "Stormwater
Overflow" station responds with the requested data.
© Siemens AG 2018 All rights reserved

Event-triggered
The "Stormwater Overflow" station sends data to the "Inspection Shaft" station.
The data is sent when a configured trigger signal is triggered.

Status monitoring
The master station monitors the status of the connected substations.

Note For a more detailed description of these functions, please refer to Chapter 3 and
the following chapters.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 8
2 Solution

2.3 Overview and description of the user interface


The application example is visualized with WinCC Advanced using two configured
screens: "TCSB Communication" and "S7-1200 Application".

"TCSB Communication"
The "TCSB Communication" screen shows the status of the connection to the two
substations.
Figure 2-2

1 2
© Siemens AG 2018 All rights reserved

Table 2-2
No. Item Description
1. Communication Status: Information about the communication status of the
• Connectionstate "Inspection Shaft" station.
• SignalQuality TCSB itself determines the values
(Connectionstate, SignalQuality, PLCConnected,
• PLCConnected PLCCpuState).
• PLCCpuState
• PartnerStatus
• NetworkStatus
2. Communication Status: Information about the communication status of the
• Connectionstate "Stormwater Overflow" station.
• SignalQuality TCSB itself determines the values
(Connectionstate, SignalQuality, PLCConnected,
• PLCConnected
PLCCpuState).
• PLCCpuState
• PartnerStatus
• NetworkStatus
3. Change screen Click the buttons to display the appropriate
screens.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 9
2 Solution

"S7-1200 Application"
The "S7-1200 Application" screen visualizes the processes of the "Inspection
Shaft" and "Stormwater Overflow" stations.
Figure 2-3

1 3 4

Table 2-3
© Siemens AG 2018 All rights reserved

No. Item Description


1. "Polling Data" "Activate Polling"
Click the button to activate requesting the fill level from the
"Stormwater Overflow" station.
"Deactivate Polling"
Click the button to deactivate requesting the fill level from the
"Stormwater Overflow" station.
2. "Partner data" "PartnerFillLevel"
Current fill level of the "Stormwater Overflow" station.
"Overflow"
Green:
Inflow of "Stormwater Overflow" station less than limit value.
Red:
Inflow of "Stormwater Overflow" station greater than limit
value.
3. "FillLevel" Current fill level of "Stormwater Overflow" station.
4. "Inflow" Current inflow of station.
5. "InflowUp" Inflow limit value of "Stormwater Overflow" station.
Entered manually by the user.
The start value is set to 25%.
6. Change screen Click the buttons to display the appropriate screens.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 10
2 Solution

2.4 Hardware and software components


2.4.1 Validity

This application is valid for


• CP 1242-7 V2 with Firmware V3.1 or higher
• STEP 7 V15.1
• S7-1200 CPU V4.1 or higher
• TCSB V3.1

2.4.2 Components used

This application was created with the following components:

Station 1 hardware components


Table 2-4
Component No. Article number Note
S7-1200 PM1207 1 6EP1332-1SH71 Power supply
SIMATIC S7-1200 1 6ES7217-1AG40-0XB0 Any S7-1200 CPU V4.1 or
CPU 1217C higher can be used.
© Siemens AG 2018 All rights reserved

DC/DC/DC
CP 1242-7 V2 1 6GK7242-7KX31-0XE0 Firmware V3.1 or higher
COMMUNICATIONS
PROCESSOR
ANT794-4MR 1 6NH9860-1AA00 GSM quad-band and
ANTENNA UMTS
SIMATIC Memory 1 6ES7954-8LF01-0AA0 Memory card for the
Card S7-1200 CPU

Station 2 hardware components


Table 2-5
Component No. Article number Note
S7-1200 PM1207 1 6EP1332-1SH71 Power supply
SIMATIC S7-1200 1 6ES7217-1AG40-0XB0 Any S7-1200 CPU V4.1 or
CPU 1217C higher can be used.
DC/DC/DC
CP 1242-7 V2 1 6GK7242-7KX31-0XE0 Firmware V3.1 or higher
COMMUNICATIONS
PROCESSOR
ANT794-4MR 1 6NH9860-1AA00 GSM quad-band and UMTS,
ANTENNA LTE
SIMATIC Memory 1 6ES7954-8LF01-0AA0 Memory card for the S7-1200
Card CPU

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 11
2 Solution

Accessories
Table 2-6
Component No. Article number Note
SIM card 2 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 or DynDNS service provider

Software components
Table 2-7
Component No. Article number Note
STEP 7 Professional 1 6ES7822-1AA05-0YA5
V15.1
TCSB 8 V3.1 1 6NH9910-0AA31-0AA0 Number of connectable
stations: 8.
The product is available in
other configurations and
license options, see
document \3\.
© Siemens AG 2018 All rights reserved

WinCC Advanced 1 6AV2102-0AA05-0AA5


V15.1

Sample files and projects


The following list contains all files and projects that are used in this example.
Table 2-8
Component Note
58099765_S7-1200_InterCom_PROJ_V12.zip This zip file contains:
• The STEP 7 V15.1/ WinCC
Advanced project
• TCSB project
58099765_S7-1200_InterCom_DOC_V12_en.pdf This document.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 12
3 Principle of Operation

3 Principle of Operation
Key points of this application example:
• Configuration of the "Inspection Shaft" station (S7-1200 and CP 1242-7 V2) for
inter-station communication with the "Stormwater Overflow" station (S7-1200
and CP 1242-7 V2).
• Configuration of TeleControl Server Basic in the master station.
• Functional data exchange between the two stations.

3.1 Complete overview of the data flow


To transfer the data between the station and the communication partner, the CP
requires no programming. The data areas in the memory of the CPU intended for
communication with the partner are configured in the CP on a data point-related
basis. In this configuration, each data point is linked to a PLC tag or data block in
the CPU.
In this example, the current fill level and the alarm bit of the "Stormwater Overflow"
station are read and transferred by the CP to the "Inspection Shaft" station via
TCSB V3.1. The following transfer methods are set in the data configuration in
STEP 7:

Time-triggered
© Siemens AG 2018 All rights reserved

The "Inspection Shaft" station cyclically requests the current fill level of the
"Stormwater Overflow" station.
The "Inspection Shaft" station cyclically sends (1x per minute) a bit ("reqFillLevel")
to the "Stormwater Overflow" station. Then the "Stormwater Overflow" station
sends the current fill level ("fillLevel") back to the "Inspection Shaft" station.

Event-triggered
The "Stormwater Overflow" station sends the alarm bit to the "Inspection Shaft"
station. If the current inflow exceeds the set limit value, a trigger signal is triggered,
which transfers the alarm bit. This transfer of the alarm bit resets the trigger signal.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 13
3 Principle of Operation

The following figure shows the data flow and the configuration points of the
S7-1200 stations for inter-station communication via the master station.
Figure 3-1
Station 1 Station 2
“Inspection Shaft” “Stormwater Overflow”

1
1 min

reqFillLevel receiveReqFillLevel
=True

partnerFillLevel fillLevel Send

automatic
statTriggerFillLevel
Reset Set

inflow
Manual
>
inflowUp
Reset
© Siemens AG 2018 All rights reserved

Set
automatic statTriggerOverflow
Send
partnerOverflow overflow (=True)

1 min Configured in the CP as a cyclic data point

Configured in the CP as an event-triggered data point

Table 3-1
No. Station 1 Station 2
1. a. The "reqFillLevel" data point in the CP 1242-7 V2 of Station 1 (Inspection
Shaft) is configured with the "reqFillLevel" PLC tag in the CPU with the
cyclically time-triggered transfer method.
b. The "fillLevel" data point in the CP1242-7 of Station 2 (Stormwater Overflow)
is configured with the "fillLevel" PLC tag in the CPU with the event-triggered
transfer method.
c. The "Inspection Shaft" station cyclically sends a bit (reqFillLevel) to the
"Stormwater Overflow" station.
d. Then the "Stormwater Overflow" station sends the current fill level back to the
"Inspection Shaft" station.
e. The current fill level (fillLevel) is sent to Remote Station 1 via the master
station.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 14
3 Principle of Operation

No. Station 1 Station 2


2. a. The "overflow" data point in the CP 1242-7 V2 of Station 2 is configured with
the "overflow" tag (true if inflow > limit value) in the CPU with the event-
triggered transfer method.
b. If the inflow value of Station 2 is greater than the limit value (inflow >
inflowUp), a timer will be started in the user program.
When the time has elapsed, the "statTriggerOverflow" trigger signal will be set
in the user program and the alarm bit ("overflow") will be sent to Remote
Station 1 via the master station.
c. This transfer of the alarm bit resets the trigger signal.

Note It is recommended to set the trigger signal with a delay of approx. 500 ms to
ensure that the value change of the PLC tags is reliably applied to the
appropriate data point.

Note Inter-station communication requires that a partner be activated in the data point
configuration.
Partners set in the table of the parameter group can be selected (see Table 4-1,
Step 11).
© Siemens AG 2018 All rights reserved

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 15
3 Principle of Operation

3.1.1 Station 2, "Stormwater Overflow", program overview

The following figure shows the important elements of the program of the
"Stormwater Overflow" station. In this application example, no program is
implemented in the "Inspection Shaft" station. Communication with the "Stormwater
Overflow" station does not require a program block. This is done via the data point
configuration.
Figure 3-2

SimProg instDBSim Data


Main points
SO ProgSO

SndRcv
Data

Station 1: CP 1242-7 V2
User block Data blocks Station 2: CP 1242-7 V2
© Siemens AG 2018 All rights reserved

Table 3-2
Item Symbolic name Description
OB1 Main Cyclic OB: Call of the user program
FB1 SimProgSO The "SimProgCPx" FB contains the
described functions
(Table 3-1, Step 3).
DB2 instDBSimProgSO Instance data block of the user block
DB1 SndRcvData Global data block for saving the data:
• Send data
• Status tags
• Trigger signals
Data points Configured data points for data exchange between the "Stormwater
Overflow" station and the "Inspection Shaft" station.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 16
3 Principle of Operation

3.1.2 Global data block: "SndRcvData" (DB1)

"Inspection Shaft" station


The DB contains the PLC tags necessary for the data configuration of the
CP 1242-7 V2 in the "Inspection Shaft" station and the status tags.
Figure 3-3

Table 3-3
Name Data type Description
reqFillLevel Bool Cyclic sending to the "Stormwater Overflow"
station to request the current fill level.
© Siemens AG 2018 All rights reserved

partnerFillLevel Real Current fill level received from the "Stormwater


Overflow" station.
partnerOverflow Bool Alarm bit received from the "Stormwater
Overflow" station.
True:
Current inflow has exceeded the limit value.
False:
Current inflow less than limit value.
partnerStatus Word Status of connection to TCSB
(see Chapter 3-3).
networkStatus UInt Status of connection to data service in cellular
network
(see Chapter 3-4).
triggerDiag Bool Diagnostics trigger tag.
Set when the sample plant is started for the first
time to enable the CP 1242-7 V2’s advanced
diagnostics (networkStatus).

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 17
3 Principle of Operation

"Stormwater Overflow" station


The DB contains the PLC tags necessary for the data configuration of the
CP 1242-7 V2 in the "Stormwater Overflow" station and the status tags.
Figure 3-4

Table 3-4
Name Data type Description
© Siemens AG 2018 All rights reserved

fillLevel Real Current fill level of the "Stormwater Overflow"


station.
inflow Real Current inflow of the "Stormwater Overflow"
station.
inflowUp Real Inflow limit value of the "Stormwater Overflow"
station.
overflow Bool Alarm bit of the "Stormwater Overflow" station.
True:
Current inflow has exceeded the limit value.
False:
Current inflow less than limit value.
receiveReqFillLevel Bool Bit received from the "Inspection Shaft" station.
True:
The "Inspection Shaft" station cyclically requests
data from the "Stormwater Overflow" station.
Only for one cycle.
partnerStatus Word Status of connection to TCSB (see Chapter 3-3).
networkStatus UInt Status of connection to data service in cellular
network (see Chapter 3-4).
triggerDiag Bool Diagnostics trigger tag.
Set when the sample plant is started for the first
time to enable the CP 1242-7 V2’s advanced
diagnostics (networkStatus).
done Bool True:
The data was successfully transferred to the CP.
Only valid for one cycle.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 18
3 Principle of Operation

3.2 Functionality of Station 2, "Stormwater Overflow"


3.2.1 Program details on the "SimProgSO" FB

The "SimProgSO" FB sets the trigger signals for sending


• the current fill level (fillLevel) of the "Stormwater Overflow" station to the
"Inspection Shaft" station when a request ("receiveReqFillLevel") is received
from the "Inspection Shaft" station.
• the alarm bit (overflow) of the "Stormwater Overflow" station to the "Inspection
Shaft" station if the current inflow is greater than the limit value.
Figure 3-5

Start
Inflow
Limit Value

Inflow <> no
InflowOld

yes
© Siemens AG 2018 All rights reserved

Inflow > no
Limit Value
Partner
Request
yes

500-ms
Delay

yes

Set
Trigger Signals

End

Note The trigger signals are automatically reset when the data is transferred to the
CP.

Note In the function block, the trigger signals are set with a 500-ms delay so that the
value change of the "fillLevel" and "overflow" tags is reliably applied to the
appropriate data points ("DP, fillLevel" and "DP, overflow").

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 19
3 Principle of Operation

The following figure and table show the call interface of the user block FB,
"SimProgSO" (FB1), of the "Stormwater Overflow" station.
Figure 3-6

Table 3-5
Name Data type Description
© Siemens AG 2018 All rights reserved

fillLevel Real Current fill level of the "Stormwater Overflow"


station.

inflow Real Current inflow of the "Stormwater Overflow"


station.
Input

inflowUp Real Inflow limit value of the "Stormwater Overflow"


station.
Entered manually by the user.
Set to 25% when starting the sample plant for
the first time.
overflow Bool Alarm bit: Current inflow status.
True:
Current fill level has exceeded the limit value.
False:
InOut

Current fill level less than limit value.


receiveReqFillLevel Bool True:
The "Inspection Shaft" station requests data
from the "Stormwater Overflow" station.
Only valid for one cycle.
done Bool True:
The data was successfully transferred to the
Out

CP.
Only valid for one cycle.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 20
3 Principle of Operation

3.2.2 Call of the "SimProgSO" FB in OB1

The "SimProgSO" FB (FB1) is called cyclically in OB1. The input and output
parameters are stored in the global data block, "SndRcvData".
Figure 3-7
© Siemens AG 2018 All rights reserved

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 21
3 Principle of Operation

3.3 Partner status


Using the "Report partner status" function in the CP configuration, the CP signals
the status of the communication with TCSB to the CPU. This information is written
to the "partnerStatus" PLC tag in the "SndRcvData" DB.
The following figure shows the bit assignment of the "partnerStatus" tag (Word).
Figure 3-8

Byte1 Byte 0

Not assigned

Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

Not assigned 0: Partner unreachable


1: Partner reachable

0: All paths to partner OK


© Siemens AG 2018 All rights reserved

1: All paths to partner not OK

0: Send buffer OK
1: Send buffer overflow imminent
(above 80% of fill level)
3: Send buffer overflow imminent
(above 100% of fill level)

Bit 2 and 3 will be reset to 0 as soon


as the value is below 50% of the fill
level.

3.4 CP diagnostics
Advanced "CP diagnostics" in the CP 1242-7 configuration (see \5\) allows you to
read the status of the connection to the data service in the cellular network out of
the CP.
This information is written to the "networkStatus" PLC tag (UInt) in the
"SndRcvData" DB.
Table 3-6
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

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 22
4 Configuration and Project Engineering

4 Configuration and Project Engineering

Note In the project, the configuration and project engineering have already been fully
implemented. This chapter is for information only.

The configuration is performed in the following configuration tools (first STEP 7,


then TeleControl Server Basic):
• STEP 7 V15.1:
– Configuring the "Inspection Shaft" and "Stormwater Overflow" stations
– Configuring the data points for both stations
• TeleControl Server Basic:
– Creating and configuring the project
– Creating and configuring connections
– Configuring general parameters

4.1 Configuring the stations "Inspection Shaft" and


"Stormwater Overflow"
© Siemens AG 2018 All rights reserved

The following table shows you how to configure an S7-1200 station with the
CP 1242-7 GPRS V2 for inter-station communication with a second S7-1200
station.
Table 4-1
No. Action
1. Create a STEP 7 V15.1 project.
2. Insert the S7-1200 CPU (V4.1 or higher) for the "Inspection Shaft" SIMATIC station.
3. Insert the CP 1242-7 GPRS V2 into the station.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 23
4 Configuration and Project Engineering

No. Action
4. Double-click the CP 1242-7 GPRS V2 to open its properties. Activate telecontrol
communication and S7 communication:
"Properties > General > Communication types".

5. Make the required mobile wireless communications settings:


"Properties > Mobile wireless communications settings":
• Activate PIN
• Enable data services and GPRS
• Enter the APN settings you obtained from your service provider (APN settings).
© Siemens AG 2018 All rights reserved

6. Enable the security functions.


Create a user for the security functions.
"Properties > Security > Security properties".

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 24
4 Configuration and Project Engineering

No. Action
7. Configure the CP parameters required to configure the TeleControl Server:
"Properties > Partner stations > Connection to partner"
• Partner IP address (a static IP address must be requested from the provider)
• Partner port

„WAN-IP-ADDRESS“

"Properties > Security > CP identification"


• Project number
• Station number
© Siemens AG 2018 All rights reserved

• Telecontrol password ("Inspection Shaft": CP1242-7_1, "Stormwater Overflow":


CP1242-7_2)

The parameters assigned here must be identical to the parameters in TCSB.


8. Check Report partner status:
"Properties > Partner stations > Advanced settings"

Link a PLC tag you have created in the user program.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 25
4 Configuration and Project Engineering

No. Action
9. Check Enable advanced CP diagnostics:
"Properties > Communication with the CPU > CP diagnostics".

Link the "diagnostics trigger tag" and the PLC tags you want to read out of the CP
1242-7 GPRS V2.
10. Repeat steps 1 through 9 for the "Stormwater Overflow" station.
11. For the CP of each station, define the communication partners for inter-station
communication:
"Properties > Partner stations > Partner for inter-station communication"
• Enter the project number of the CP in the partner station
• Enter the station number of the CP in the partner station
• Enter the slot number of the CP in the partner station
• Check Send buffer.
© Siemens AG 2018 All rights reserved

12. Configure the desired data points for the "Inspection Shaft" station (see Table 4-2
and Table 4-3) and the "Stormwater Overflow" station
(see Table 4-4 and Table 4-5).
13. Download the project data to the stations.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 26
4 Configuration and Project Engineering

4.2 Configuring the data points


For the CP 1242-7 GPRS V2, it is not necessary to program program blocks in
order to transfer user data between the stations. The data areas in the memory of
the CPU intended for inter-station communication are configured in the
CP 1242-7 GPRS V2 on a data point-related basis. In this configuration, each data
point is linked to a PLC tag in the CPU (see Figure 3-1).

4.2.1 "Inspection Shaft" station

Data point for the send data to the "Stormwater Overflow" station
Table 4-2
No. Action
1. Open the data point configuration
editor.
© Siemens AG 2018 All rights reserved

2. Insert the "reqFillLevel" data point as a digital input and link it to the
"SndRcvData.reqFillLevel" PLC tag.

3. Set the transfer method for this data point (here: Current value triggered).

4. Set the data point index (here: 0).

Note:
The index of a data point of the Input type must be unique over all data point types
(digital inputs, analog inputs, etc.).
The data point index must match the one in "Stormwater Overflow".

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 27
4 Configuration and Project Engineering

No. Action
5. As the communication partner, select "Inter-station communication".

6. Configure the "Time trigger":


"Properties > General > Trigger > Time trigger"

7. Configure the partner stations.


"Properties > General > Partner stations >
Partner for inter-station communication"
© Siemens AG 2018 All rights reserved

For the partner number, please refer to the CP configuration (see Table 4-1, Step
11).

Data points for the receive data from the "Stormwater Overflow" station
Table 4-3
No. Action
1. In the data point configuration editor, insert the "partnerfillLevel" data point as an
analog output and link it to the "SndRcvData.partnerFillLevel" PLC tag.

2. Set the transfer method for this data point (here: Transfer after call).

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 28
4 Configuration and Project Engineering

No. Action
3. Set the data point index (here: 1).

The data point index must match the one in "Stormwater Overflow".
4. As the communication partner, select "Inter-station communication".

5. Configure the partner stations.


"Properties > General > Partner stations > Partner for inter-station communication"
© Siemens AG 2018 All rights reserved

For the partner number, please refer to the CP configuration (see Table 4-1, Step
11).
6. In the data point configuration editor, insert the "partnerOverflow" data point as a
digital output and link it to the "SndRcvData.partnerOverflow" PLC tag.

7. Set the transfer method for this data point (here: Transfer after call).

8. Set the data point index (here: 2).

The data point index must match the one in "Stormwater Overflow".
9. As the communication partner, select "Inter-station communication".

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 29
4 Configuration and Project Engineering

No. Action
10. Configure the partner stations.
"Properties > General > Partner stations > Partner for inter-station communication"

For the partner number, please refer to the CP configuration (see Table 4-1, Step
11).

4.2.2 "Stormwater Overflow" station

Data points for the receive data from the "Inspection Shaft" station
Table 4-4
No. Action
© Siemens AG 2018 All rights reserved

1. Open the data point configuration


editor.

2. Insert the "recReqFilllevel" data point as a digital output and link it to the
"SndRcvData.receiveReqFillLevel" PLC tag.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 30
4 Configuration and Project Engineering

No. Action
3. Set the transfer method for this data point (here: Transfer after call).

4. Set the data point index (here: 0).

The data point index must match the one in "Inspection Shaft".
5. As the communication partner, select "Inter-station communication".

6. Configure the partner stations.


"Properties > General > Partner stations > Partner for inter-station communication"
© Siemens AG 2018 All rights reserved

For the partner number, please refer to the CP configuration (see Table 4-1, Step
11).

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 31
4 Configuration and Project Engineering

Data point for the send data to the "Inspection Shaft" station
Table 4-5
No. Action
1. In the data point configuration editor, insert the "fillLevel" data point as an analog
input and link it to the "SndRcvData.fillLevel" PLC tag.

2. Set the transfer method for this data point (here: Current value triggered).

3. Set the data point index (here: 1).

Note:
© Siemens AG 2018 All rights reserved

The index of a data point of the Input type must be unique over all data point types
(digital inputs, analog inputs, etc.).
The data point index must match the one in "Inspection Shaft".
4. As the communication partner, select "Inter-station communication".

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"
("instDBSimProgSO.statTriggerFillLevel").

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 32
4 Configuration and Project Engineering

No. Action
6. Configure the partner stations.
"Properties > General > Partner stations > Partner for inter-station communication"

For the partner number, please refer to the CP configuration (see Table 4-1, Step
11).
7. In the data point configuration editor, insert the "overflow" data point as a digital
input and link it to the "SndRcvData.overflow" PLC tag.

8. Set the transfer method for this data point (here: Current value triggered).
© Siemens AG 2018 All rights reserved

9. Set the data point index (here: 2).

Note:
The index of a data point of the Input type must be unique over all data point types
(digital inputs, analog inputs, etc.).
The data point index must match the one in "Inspection Shaft".
10. As the communication partner, select "Inter-station communication".

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 33
4 Configuration and Project Engineering

No. Action
11. Configure the "Event trigger":
"Properties > General > Trigger > Event trigger"

In the user program, create a trigger tag and link it to the "event trigger" (here:
"instDBSimProgSO.statTriggerOverflow").
12. Configure the partner stations.
"Properties > General > Partner stations >
Partner for inter-station communication"
© Siemens AG 2018 All rights reserved

For the partner number, please refer to the CP configuration (see Table 4-1, Step
11).

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 the runtime
differences between the CPU cycle and the CP cycle.
It is recommended to set the trigger tag with a delay of approx. 500 ms to ensure
that the value change of the fill level is reliably applied to the appropriate data
point.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 34
4 Configuration and Project Engineering

4.3 Configuring TeleControl Server Basic (TCSB)


Table 4-6
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.

Enter your logon data to log on.


© Siemens AG 2018 All rights reserved

Default logon data:


User name: administrator
Password: 0000
3. Create a new project:
• In the navigation pane, select the "Projects" item.
• In the command bar, click the "Add" button.
The new project appears in the navigation pane and in the object pane.
4. Configure the new project:
In the navigation pane or object pane, select the project and click the "Settings" tab.
5. Enter the following project parameters:
"Project name", "Project number",
"Server password".
Click "Create".

6. "Save & activate" the configuration to


activate the configuration data for
connection establishment.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 35
4 Configuration and Project Engineering

No. Action
7. Create a new connection for Station 1:
• In the navigation pane, select a project for which you want to create a new
connection.
• In the command bar, select the required connection type from the "Connection
type" drop-down list.
• In the object pane, select the "Add" button from the command bar. Select the
desired CP.

The new connection appears in the object pane.


8. Save the changes and activate the
project.
© Siemens AG 2018 All rights reserved

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 36
4 Configuration and Project Engineering

No. Action
9. Configure the new connection:
• Select the connection.
• In the object pane, select the "Connections" tab.
10. In the "General" parameter group, enter the parameters for Station 1:
"Station name"
"Station number"
"Telecontrol password"

Note:
The parameters assigned here must be identical to the ones in the STEP 7 V15
project.
11. Repeat steps 7 through 10 for Station 2.
12. Configure the IP address and the ports of the TeleControl Server:
© Siemens AG 2018 All rights reserved

"TCSB system > "TCM" tab > General > Address TCM 1".

13. Save the changes and activate the


project.

Note If you create a new TCSB project for this application example, modify the
relevant HMI tags in the visualization software accordingly.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 37
5 Installation and Startup

5 Installation and Startup


5.1 Installing the hardware
For the necessary hardware components, please refer to Chapter 2.4.

Note Always follow the installation guidelines for all components.

NOTICE Before you switch on the power supply, complete and check the
installation!

5.1.1 "Inspection Shaft" hardware configuration

The figure below shows the hardware configuration of the "Inspection Shaft"
station. S7-1200 CPU to the CP 1242-7 GPRS V2.
Figure 5-1
CP 1242-7
© Siemens AG 2018 All rights reserved

GPRS V2 CPU 1217C


Engineering station

24 V

192.168.0.1 192.168.0.100

Industrial Ethernet

Table 5-1
No. Action
1. Insert your SIM card into the CP 1242-7 GPRS V2.
2. Attach the individual modules to a suitable rack.
3. Connect the CPU to the CP 1242-7 GPRS V2.
4. Connect the antenna to the CP 1242-7 GPRS V2.
5. Connect the engineering PG to the PROFINET interface of the S7 CPU.
6. Connect the CPU 1217C 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).

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 38
5 Installation and Startup

5.1.2 "Stormwater Overflow" hardware configuration

The figure below shows the hardware configuration of the "Stormwater Overflow"
station. S7-1200 CPU to the CP 1242-7 GPRS V2.
Figure 5-2
CP 1242-7
GPRS V2 CPU 1217C
Engineering station

24 V

192.168.0.2 192.168.0.100

Industrial Ethernet

Table 5-2
No. Action
1. Insert your SIM card into the CP 1242-7 GPRS V2.
© Siemens AG 2018 All rights reserved

2. Attach the individual modules to a suitable rack.


3. Connect the CPU to the CP 1242-7 GPRS V2.
4. Connect the antenna to the CP 1242-7 GPRS V2.
5. Connect the engineering PG to the PROFINET interface of the S7 CPU.
6. Connect the CPU 1217C 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).

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 39
5 Installation and Startup

5.1.3 Master station hardware configuration

The figure below shows the hardware configuration of the master station.
Figure 5-3

Master station DSL router

TCSB V3.1 Static IP address


Internet
(DSL line)

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.2 Installing the software


Engineering PC/PG
Table 5-4
No. Action Comment
1. Install STEP 7 V15.1.
2. Install WinCC Advanced V15.1. Follow the instructions of the installation
program.

PC/PG as the master station


Table 5-5
No. Action Comment
1. Install TeleControl Server Basic Follow the instructions of the installation
V3.1. program.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 40
5 Installation and Startup

5.3 Installing the application software


Unzip the "58099765_S7-1200_InterCom_PROJ_V12.zip" file. This folder contains:
• The archived STEP 7 project, "58099765_S7-
1200_InterCom_CODE_V12.zip":
– "Inspection Shaft" Station 1 project
– "Stormwater Overflow" Station 2 project
– "Data communication TCSB" WinCC project
• "58099765_S7-1200_InterCom.bak" TCSB configuration file

5.4 Startup
5.4.1 Setting the IP addresses

The following table shows the configured IP addresses.


Table 5-6
Module IP address Subnet mask
"Inspection Shaft": 192.168.0.1 255.255.255.0
CPU 1217C DC/DC/DC
© Siemens AG 2018 All rights reserved

"Stormwater Overflow": 192.168.0.2 255.255.255.0


CPU 1217C DC/DC/DC
Engineering PC/PG 192.168.0.100 255.255.255.0
SIMATIC HMI TP700 Comfort 192.168.0.3 255.255.255.0
PC/PG master station 172.16.62.100 255.255.0.0

5.4.2 Assigning the IP address to the engineering station

The following table shows the network settings to which you have to change the
engineering station:
Table 5-7
No. Action
1. Open the Internet Protocol (TCP/IP) Properties:

"Start > Settings > Network Connection >Local Connections".


2. In the open window, select Internet Protocol (TCP/IP) and open Properties.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 41
5 Installation and Startup

No. Action
3. Select the "Use the following IP
address" radio button and fill out the
field as shown in the screenshot.
Select "OK" to close the dialogs.

4. If your PG has an IWLAN interface, disable it.

5.4.3 Configuring the DSL router

For the configuration, no specific router will be discussed as the screen forms will
differ from router to router.
© Siemens AG 2018 All rights reserved

Note To configure the router, you have to assign an IP address to your PG/PC that is
in the router’s internal network.

Table 5-8
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 TCP port 55097 to port 55097
of 172.16.62.100.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 42
5 Installation and Startup

5.4.4 Inserting a backup copy of the database into TCSB V3.1

Table 5-9
No. Action
1. Stop the existing database by stopping the "TCS Basic Database Service"
service using Windows Task Manager in the "Services" tab (as an administrator).
© Siemens AG 2018 All rights reserved

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 43
5 Installation and Startup

No. Action
2. Start SQL Server Management Studio as an administrator:

"Start > All Programs > Microsoft SQL Server 2008 R2 > SQL Server
Management Studio".

The "Connect to Server" dialog opens with the following settings:


• Server type: Database Engine
© Siemens AG 2018 All rights reserved

• Server name: <PC name>\TCSB


• Authentication: Windows Authentication
3. Keep all settings and click "Connect".

SQL Server Management Studio opens with the database’s object navigation.
4. Select the "Databases" item.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 44
5 Installation and Startup

No. Action
5. Right-click "Restore Database...".
The "Restore Database - TCSB" dialog opens.

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 "58099765_S7-1200_InerCom.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.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 45
5 Installation and Startup

5.4.5 Configuring TeleControl Server Basic V3.1

Table 5-10
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.

• User name: administrator


• Password: administrator
• Enter the IP address or the TeleControl Server name resolvable by DNS.
© Siemens AG 2018 All rights reserved

– Computer name
or
– IP address (default IP address: 127.0.0.1)
3. Configure the IP address and the ports of the TeleControl Server:
"TCSB system > "TCM" tab > General > Address TCM 1".

4. Save the changes and activate the project.

5. Restart the computer.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 46
5 Installation and Startup

5.4.6 Loading the stations

Requirements
• A connection has been established between your engineering station and the
CPU (for example, via the PROFINET interface).
• 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. Unzip the "58099765_S7-1200_InterCom_CODE_V12.zip" project.
2. Open the "S7-1200 with TCSB_interCom.ap15_1" STEP 7 V15.1 project.
3. Following dialog appears:
© Siemens AG 2018 All rights reserved

Log on with the following data:


User name: administrator
Password: administrator
4. Customize the mobile wireless
communications settings of the
CP 1242-7 GPRS V2 for both stations:
"Properties > Mobile wireless
communications settings":
• Change the PIN
• Change the APN settings

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 47
5 Installation and Startup

No. Action
5. For both stations, change the partner IP address (static IP address of your DSL
router) required for the connection to the TeleControl Server in the master station:

"Properties > Partner stations > Connection to partner"

“WAN IP ADDRESS”

6. Select the "Inspection Shaft" or "Stormwater Overflow" station.

7. Download the project to the "Inspection Shaft" or "Stormwater Overflow" station.

8. Repeat steps 6 and 7 for the other station.


© Siemens AG 2018 All rights reserved

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 48
6 Operation of the Application

6 Operation of the Application


6.1 Overview
6.1.1 HMI menu

The application is visualized with WinCC Advanced using two configured screen
forms: "TCSB Communication" and "S7-1200 Application".

Figure 6-1
Main menu
© Siemens AG 2018 All rights reserved

TCSB Communication S7-1200 Application

Main menu
The main menu allows you to open the application example and toggle between
"TCSB Communication" and "S7-1200 Application".

"TCSB Communication" screen


The "TCSB Communication" screen shows the status of the connection to the
substations. You can toggle between "main menu" and "S7-1200 Application".

"S7-1200 Application" screen


The "S7-1200 Application" screen visualizes the process of the "Inspection Shaft"
and "Stormwater Overflow" stations. You can toggle between "main menu" and
"TCSB Communication".

Note The HMI is only used to test the application in the local network.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 49
6 Operation of the Application

6.1.2 Watch tables

As an alternative to the HMI, you can use the "Watch_table_IS" /


"Watch_table_SO" tables to monitor or modify the tags of the "SndRcvData" DB.
For a description of the tags, please refer to Chapter 3.1.2.

"Inspection Shaft" station


Figure 6-2

"Stormwater Overflow" station


Figure 6-3
© Siemens AG 2018 All rights reserved

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 50
6 Operation of the Application

6.2 Station "Inspection Shaft"


The "Inspection Shaft" station requests the fill level of the "Stormwater Overflow"
station at a defined interval (1 minute). The "Stormwater Overflow" station
responds with the requested data. The following table provides instructions for this
job.
Table 6-1
No. Action
1. Click the "Start Simulation" icon to start the WinCC Advanced simulation.
© Siemens AG 2018 All rights reserved

2. Open the "TCSB Communication" screen.

Make sure that the connection between the stations has been established:
• PartnerStatus: 0003 (see Chapter 3.3)
• NetworkStatus: 4 (see Chapter 3.4)

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 51
6 Operation of the Application

No. Action
3. Open the "S7-1200 Application"
screen and activate the polling
process.

4. Enter the fill level of the "Stormwater


Overflow" station.

5. After 1 minute, the fill level is transferred to the "Inspection Shaft" station.
© Siemens AG 2018 All rights reserved

Note You can change the time interval in the data point configuration as needed:
"Inspection Shaft > Local modules > CP 1242-7 > Data points > PollingData".

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 52
6 Operation of the Application

6.3 Station "Stormwater Overflow"


If the inflow of the "Stormwater Overflow" station exceeds a maximum value, an
alarm bit will be sent to the "Inspection Shaft" station. The following table provides
instructions for this job. The WinCC Advanced simulation was started (see
Table 6-1, Step 1).
Table 6-2
No. Action
1. Open the "TCSB Communication" screen.
© Siemens AG 2018 All rights reserved

Make sure that the connection between the stations has been established:
• PartnerStatus: 0003 (see Chapter 3.3)
• NetworkStatus :4 (see Chapter 3.4)
2. Open the "S7-1200 Application"
screen and enter an inflow value that
exceeds the maximum inflow value
("InflowUp")
(e.g., 30%).

Note:
When starting the simulation, the limit
value is set to 25%. You can change
this value as needed.

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 53
6 Operation of the Application

No. Action
3. The overflow alarm bit is set immediately and transferred to the "Inspection Shaft"
station.

4. Enter an inflow value that is less than


the maximum inflow value (e.g., 15%).

5. The overflow alarm bit is reset immediately and transferred to the "Inspection Shaft"
station.
© Siemens AG 2018 All rights reserved

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 54
7 Appendix

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.
The 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:
https://support.industry.siemens.com/

Technical Support
The Technical Support of Siemens Industry provides you fast and competent
support regarding all technical queries with numerous tailor-made offers
– ranging from basic support to individual support contracts. Please send queries
to Technical Support via Web form:
https://www.siemens.com/industry/supportrequest
© Siemens AG 2018 All rights reserved

SITRAIN – Training for Industry


We support you with our globally available training courses for industry with
practical experience, innovative learning methods and a concept that’s tailored to
the customer’s specific needs.
For more information on our offered trainings and courses, as well as their
locations and dates, refer to our web page:
https://www.siemens.com/sitrain

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
web page:
https://support.industry.siemens.com/cs/sc

Industry Online Support app


You will receive optimum support wherever you are with the "Siemens Industry
Online Support" app. The app is available for Apple iOS, Android and Windows
Phone:
https://support.industry.siemens.com/cs/ww/en/sc/2067

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 55
8 Links & Literature

8 Links & Literature


Table 8-1
Topic Title
\1\ Siemens Industry http://support.industry.siemens.com
Online Support
\2\ Download page of the https://support.industry.siemens.com/cs/ww/en/view/5809
entry 9765
\3\ SIMATIC NET https://support.industry.siemens.com/cs/ww/en/view/1097
Industrial Remote 55138
Communication -
TeleControl Server
Basic V3.1
\4\ SIMATIC WinCC https://support.industry.siemens.com/cs/ww/en/pv/6AV21
Advanced V15.1 02-0AA05-0AA5/
\5\ How do you read out https://support.industry.siemens.com/cs/ww/en/view/1094
advanced diagnostics 80967
data from the CP
1242-7 GPRS V2?
\6\ SIMATIC NET S7- https://support.industry.siemens.com/cs/ww/en/view/1094
1200 - TeleControl 76700
CP 1242-7 GPRS V2
- Operating
Instructions
© Siemens AG 2018 All rights reserved

\7\ Data communication https://support.industry.siemens.com/cs/ww/en/view/3986


between S7-1200 3979
stations and
TeleControl Server
Basic V3 via CP
1242-7 V2 and
CP1243-1

9 History
Table 9-1
Version Date Modifications
V1.0 05/2016 First version
V1.1 06/2018 Migration to TIA Portal V15 and TCSB V3.1
V1.2 08/2019 Migration to TIA Portal V15.1

S7-1200 Inter-Station Communication


Entry-ID: 58099765, V1.2, 08/2019 56

You might also like