Vous êtes sur la page 1sur 53

Cover sheet

Communication Between
S7-300 Stations by
Using SINAUT ST7 Telecontrol via
Dedicated Line and Ethernet
SINAUT ST7 Telecontrol
Application Description October 2011

Applications & Tools


Answers for industry.

Industry Automation and Drive Technologies Service & Support Portal


This article is taken from the Service Portal of Siemens AG, Industry Automation
and Drive Technologies. The following link takes you directly to the download page
of this document:
http://support.automation.siemens.com/WW/view/en/48283510
Caution
The functions and solutions described in this article confine themselves to the
realization of the automation task predominantly. Please take into account
furthermore that corresponding protective measures have to be taken up in the
context of Industrial Security when connecting your equipment to other parts of the
plant, the enterprise network or the Internet. Further information can be found
under the Content-ID 50203404.
http://support.automation.siemens.com/WW/view/en/50203404

If you have any questions concerning this document please e-mail us to the
following address:

Copyright Siemens AG 2011 All rights reserved

mailto:online-support.industry@siemens.com
You can also actively use our Technical Forum from the Service & Support Portal
regarding this subject. Add your questions, suggestions and problems and discuss
them together in our strong forum community:
http://www.siemens.com/forum-applications

SINAUT_WAN
V1.2, Article ID: 48283510

Copyright Siemens AG 2011 All rights reserved

SIMATIC
SINAUT_WAN

SINAUT_WAN
V1.2, Article ID: 48283510

Problem

Solution

Basics on Telecontrol
with SIMATIC

Function Mechanisms of
this Application

Configuration and Project


Settings

Installation

Startup of the Application

Operation of the
Application

Further Notes, Tips &


Tricks, etc.

Links & Literature

10

History

11

Warranty and Liability

Warranty and Liability


Note

The Application Examples are not binding and do not claim to be complete
regarding configuration, equipment and any eventuality. The application
examples do not represent customer-specific solutions. They are only intended
to provide support for typical applications. You are responsible for ensuring that
the described products are used correctly. These Application Examples do not
relieve you of the responsibility to use sound practices in application, installation,
operation and maintenance. When using these Application Examples, you
recognize that we cannot be made liable for any damage/claims beyond the
liability clause described. We reserve the right to make changes to these
Application Examples at any time without prior notice.
If there are any deviations between the recommendations provided in this
Application Example and other Siemens publications e.g. Catalogs the
contents of the other documents have priority.
We accept no liability for information contained in this document.

Copyright Siemens AG 2011 All rights reserved

Any claims against us based on whatever legal reason resulting from the use of
the examples, information, programs, engineering and performance data etc.,
described in this Application Example shall be excluded. Such an exclusion shall
not apply in the case of mandatory liability, e.g. under the German Product Liability
Act (Produkthaftungsgesetz), in case of intent, gross negligence, or injury of life,
body or health, guarantee for the quality of a product, fraudulent concealment of a
deficiency or breach of a condition which goes to the root of the contract
(wesentliche Vertragspflichten). The damages for a breach of a substantial
contractual obligation are, however, limited to the foreseeable damage, typical for
the type of contract, except in the event of intent or gross negligence or injury to
life, body or health. The above provisions do not imply a change of the burden of
proof to your detriment.
Any form of duplication or distribution of these Application Examples or excerpts
hereof is prohibited without the expressed consent of Siemens Industry Sector.

SINAUT_WAN
V1.2, Article ID: 48283510

Preface

Preface
Objective of this application
This application is aimed at giving newcomers to SINAUT ST7 Telecontrol an
understanding of the communication between S7-300 stations via classic WAN
networks and IP-based networks with the help of TIM3V-IE (Advanced) modules.
Main contents of this application
This application discusses the following main points:
Telecontrol with SIMATIC

TIM communication modules

SINAUT Object

connection configuration

programming with TD7onCPU

programming with TD7onTIM

Copyright Siemens AG 2011 All rights reserved


48283510_SINAUT_WAN_e.doc

SINAUT_WAN
V1.2, Article ID: 48283510

Table of Contents

Table of Contents
Warranty and Liability ................................................................................................. 4
Preface .......................................................................................................................... 5
1

Problem .............................................................................................................. 8

Solution............................................................................................................... 9
2.1
2.2
2.3

Basics on Telecontrol with SIMATIC ............................................................. 13


3.1
3.2
3.3
3.3.1
3.3.2
3.4
3.5

4
Copyright Siemens AG 2011 All rights reserved

5.5

6.1.3
6.2
6.3

7.2.2

Defining the PG/PC interface ............................................................. 41


Loading the stations via MPI .............................................................. 42
Station 2 (node station) and master: Storing the SDBs on CPU
and TIM .............................................................................................. 42
Station 3: Storing the SDBs on the CPU only .................................... 44

Operation of the Application .......................................................................... 45


8.1

Hardware installation.......................................................................... 37
Modem settings .................................................................................. 37
Hardware installation for the master, station 2 (node station)
and station 3....................................................................................... 38
Interconnection of the example system.............................................. 39
Software installation ........................................................................... 40
Installation of the application example ............................................... 40

Startup of the Application............................................................................... 41


7.1
7.2
7.2.1

Hardware configuration ...................................................................... 25


Network configuration......................................................................... 26
Ethernet settings ................................................................................ 26
Dedicated line settings ....................................................................... 27
Configuration with the SINAUT ST7 configuration tool ...................... 29
Configuration of SINAUT connections ............................................... 29
Adjusting the SINAUT ST7 subscriber numbers................................ 30
SINAUT ST7 configuration with TD7onTIM (station 3) ...................... 30
Saving and generating the system data............................................. 32
SINAUT ST7 configuration with TD7onCPU (master and station
2) ........................................................................................................ 33
Measures required when using other component types .................... 35

Installation........................................................................................................ 37
6.1
6.1.1
6.1.2

General overview ............................................................................... 18


SINAUT program blocks on station 2................................................. 20
Object parameters for TD7onTIM on station 3................................... 23

Configuration and Project Settings ............................................................... 25


5.1
5.2
5.2.1
5.2.2
5.3
5.3.1
5.3.2
5.3.3
5.3.4
5.4

SINAUT Telecontrol ........................................................................... 13


SINAUT TD7 Library .......................................................................... 13
The SINAUT TD7 library TD7onCPU................................................. 13
Overview of the library........................................................................ 13
Structure of the SINAUT user program .............................................. 14
The SINAUT TD7 library TD7onTIM .................................................. 16
TIM communication modules ............................................................. 17

Function Mechanisms of this Application .................................................... 18


4.1
4.2
4.3

Overview of the overall solution ........................................................... 9


Description of the functionality ........................................................... 10
Hardware and software components used......................................... 12

Overview ............................................................................................ 45

SINAUT_WAN
V1.2, Article ID: 48283510

Table of Contents
8.2
8.2.1
8.2.2
8.3
8.4
9

Further Notes, Tips & Tricks, etc. .................................................................. 50


9.1
9.2

10

General tips and tricks........................................................................ 50


Notes on IP address assignment ....................................................... 51

Links & Literature ............................................................................................ 52


10.1
10.2

Literature ............................................................................................ 52
Internet links ....................................................................................... 52

History............................................................................................................... 53

Copyright Siemens AG 2011 All rights reserved

11

Operation and monitoring via the table of variables (VAT) ................ 45


Example: switching pump 2 from automatic to manual mode............ 46
Operating examples: .......................................................................... 47
Monitoring via the LEDs on the TIM modules .................................... 47
Monitoring via the TIM message protocol .......................................... 48

SINAUT_WAN
V1.2, Article ID: 48283510

1 Problem
2.1 Overview of the overall solution

Problem
Two parallel pumps that feed into a common pipeline shall be controlled and
monitored from a control center. The illustration below gives an overview of the
automation task.

Copyright Siemens AG 2011 All rights reserved

Figure 1-1

SINAUT_WAN
V1.2, Article ID: 48283510

2 Solution
2.1 Overview of the overall solution

Solution

2.1

Overview of the overall solution


The simple structure of this example project includes one master station which
communicates with two other stations, whereby station 2 is used as a node station.

master CPU: CPU 314 with TIM 3V-IE Advanced

node station: CPU 314 with TIM 3V-IE Advanced

station: CPU 314 with TIM 3V-IE

Each CPU of the two stations includes a simple controller for the relevant pump.
The pump signals are simulated by the user program.
Schematic illustration
The following schematic illustration shows the main components required for this
solution:
Copyright Siemens AG 2011 All rights reserved

Figure 2-1

01_Master

02_Node_station

TIM 3V-IE
Advanced

TIM 3V-IE
Advanced
Master <> node station

CPU 314

CPU 314

MD2

Ethernet
Ma
st
er

<>

st
at
io
n

LTOP 1

Dedicated line

LTOP 1

03_Station
TIM 3V-IE

Logic link

CPU 314

SINAUT_WAN
V1.2, Article ID: 48283510

MD2

2 Solution
2.2 Description of the functionality
Structure
The master station consists of a CPU 314 with a TIM 3V-IE Advanced
communication module. It is connected to the node station via the Ethernet
interface integrated in the TIM 3V-IE module.
The node station consists of a CPU 314, a TIM 3V-IE Advanced module and an
MD2 dedicated line modem. This modem provides connection to the station via
dedicated line. As this station requires the use of a TIM module with two WAN
interfaces, a TIM 3V-IE Advanced module has been selected instead of a module
type TIM3V-IE.
The structure of the station is similar to that of the node station with the only
difference that it is equipped with a TIM 3V-IE and not with a TIM 3V-IE Advanced
module.
In the following, the term station refers to both the node station (station 2) and
the station 3.

Note

Copyright Siemens AG 2011 All rights reserved

Delimitation
This application does not include any programs relevant to the technology for pump
control or coordination. It is only used to demonstrate the data exchange between
the master and the stations. It has been deliberately kept simple, so as to illustrate
the data correlations in the CPUs.
Required knowledge
Basic knowledge of STEP 7 is assumed.

2.2

Description of the functionality

Basic function principle


Our intention was to find an easy example that demonstrates the process
simulated in the controller. It consists of two parallel pumps that feed into a
common pipeline. In this configuration, hydraulic interactions or protective circuits
remain unconsidered. The sliders and valves are illustrated as symbols (uncolored
in this diagram), but are not activated.
Figure 2-2

10

SINAUT_WAN
V1.2, Article ID: 48283510

2 Solution
2.2 Description of the functionality
The pumps in stations 2 and 3 can be operated by means of a table of variables.
The options for operating the example plant are restricted. The following operating
modes and operating statuses are available:

Operating mode:

manual

automatic

Operating status in manual mode:

ON

OFF

When starting the example system for the first time, the two stations are in
automatic mode and the pump in station 2 is set to ON. As long as the operating
modes of the two stations remain in this mode, the pumps will switch over
automatically at 30-second intervals, i.e. the pump in station 2 will be set to OFF
and the pump in station 3 will be set to ON, etc. Station 2 is used as master for
this cyclic switch-over operation.
The operating mode can be selected independently for each aggregate. In
manual mode, the operating status can be selected as desired for each
aggregate.
Copyright Siemens AG 2011 All rights reserved

This leads to the following rules:

Both stations in automatic mode

Always one pump at a time is in the operating status ON (after system


start, this is the pump of station 2). The other pump is set to OFF.

When the pump of station 3 is automatically set to ON (at 30-second


intervals), the pump of station 2 will automatically be switched OFF.

In automatic mode, the pumps cannot be operated manually. In this case,


the error message "not controllable" will be displayed. This error message
remains present until the next valid command is received or the next cyclic
switchover is performed.

Station 2 in automatic mode, station 3 in manual mode

If the pump of station 3 is set to ON manually while the pump of station 2


is active, the pump of station 2 will be turned OFF automatically.

If the pump of station 3 is active and turned OFF manually, the pump of
station 2 will be switched ON automatically.

When one pump is set to manual mode, an automatic switchover at


30-second intervals is not possible.

The rules for station 2 being automatic and station 3 being in manual mode
apply vice versa, if station 3 is set to automatic and station 2 to manual mode.

Both stations in manual mode

For the pumps in the stations 2 and 3 any ON and OFF combination is
possible:
Pump of station 2
ON
OFF
ON
OFF

SINAUT_WAN
V1.2, Article ID: 48283510

Pump of station 3
ON
OFF
OFF
ON

11

2 Solution
2.3 Hardware and software components used

2.3

Hardware and software components used


This application has been created with the following components:

Hardware components
Table 2-1

Copyright Siemens AG 2011 All rights reserved

Component

Qty.

MLFB / order number

Note

Configurators

SIMATIC Field PG

6ES7712-

DIN rail (rack 300)

6ES7390-1xxx0-0AA0

Power supply unit


PS 307 2A
(or higher)

6ES7307-1BA00-0AA0

S7-CPU 314

6ES7314-1AF10-0AB0

TIM 3V-IE

6NH7800-3BA00

Firmware V1.0.1 or
later version

TIM 3V-IE Advanced

6NH7800-3CA00

Firmware V1.1 or later


version

Ethernet cross cable


with RJ45 connectors
on both ends

6XV1 870-3RE10

Acc. to Ethernet
specification 10BaseTX or 100Base-TX

Modem type MD2

6NH7811-0AA21

Incl. connecting cable


6NH7700-2AR60

LTOP1

6NH9821-0BC11

Connecting cable

6NH7701-4AL

TIM...Modem
connection
1 x 2-wire
(or 2 x 1-wire)

Copper dedicated line


0.2...2.5mm2:
MPI cable

6ES7 901-0BF00-0AA0

Standard software components


Table 2-2
Component

Qty.

MLFB / order number

Note

STEP 7

See catalog

V5.4 or later

SINAUT ST7

6NH7997-0CA15-0AA0

V3.6 or later

Example files and projects


The following list includes all files and projects used in this example.
Table 2-3
Component

12

Note

48283510_SINAUT_WAN_e.pdf

This document.

48283510_SINAUT_WAN_CODE.zip

This zip-file includes the project


STEP 7 & SINAUT ST7.

SINAUT_WAN
V1.2, Article ID: 48283510

3 Basics on Telecontrol with SIMATIC


3.1 SINAUT Telecontrol

Basics on Telecontrol with SIMATIC


This chapter provides newcomers to the SINAUT telecontrol system with a brief
overview of its manifold options.

3.1

SINAUT Telecontrol
SINAUT Telecontrol (Siemens Network Automation) is based on SIMATIC S7. It
supplements the system with the hardware and software required to interconnect
the individual components via WAN (wide area network).
In the context of WAN services, the SINAUT system offers a variety of solutions for
data transmission via conventional WAN connections, such as dedicated copper
lines, telephone networks, radio etc., but also via modern WAN connections based
on Ethernet-technology, such as broadband systems or the internet.

Copyright Siemens AG 2011 All rights reserved

On the basis of SIMATIC S7-300, S7-400 and WinCC, SINAUT ST7 is a very
versatile telecontrol system for the fully automated monitoring and control of
decentralized process stations, which enables data exchange between these
stations and with one or several control center stations over a variety of WAN
media.

3.2

SINAUT TD7 Library


SINAUT ST7 communication between two CPUs or between a CPU and a control
center (e.g. ST7cc) via WAN or Ethernet can be realized only with the help of the
SINAUT TD7 software.
The TD7 software is available in the following two variants:

TD7onCPU
This software is used on the CPU and its installation is mandatory for all
stations equipped with TIM modules without TD7onTIM. Configuration is
effected in the SIMATIC Manager.

TD7onTIM
This software can only be used in TIM modules suitable for TD7onTIM (e.g.
TIM 3V-IE, TIM 3V-IE Advanced or TIM4R-IE); it is part of the TIM firmware
and can be used only in combination with S7 300 systems.
In TIM modules suitable for TD7onTIM, the TD7 software may also be used as
a TD7onCPU in the CPU. Configuration is effected with the SINAUT ST7
configuration tool.
The use of both TD7 variants in one station is not admissible!

Note

3.3

The SINAUT TD7 library TD7onCPU

3.3.1

Overview of the library


The SINAUT TD7 library TD7onCPU includes:

Basic and auxiliary blocks


Most of these blocks are always required in the CPU. The basic blocks are
used to perform some fundamental tasks such as startup, connection
monitoring, communication management, etc. The auxiliary blocks are used for
supportive communication tasks.

SINAUT_WAN
V1.2, Article ID: 48283510

13

3 Basics on Telecontrol with SIMATIC


3.3 The SINAUT TD7 library TD7onCPU

Data point typicals


These blocks are integrated in the CPU program as required for the types and
volumes of data to be transmitted. They are used to compile messages on
request or if data is modified and output received process data.

The TD7 package requires several data blocks for each CPU. The central records
DB and the communication DBs are generated automatically by the SINAUT ST7
configuration tool when the SINAUT connections are configured and then stored in
the program directory for the relevant CPU.
In addition to the above data blocks, the SINAUT ST7 configuration tool also stores
the basic and auxiliary blocks essential for program execution in the CPU program
directory.
So, you only need to copy the required data point typicals from the SINAUT TD7
library to the CPU program directory before you start creating the SINAUT user
program.
The blocks stored in the CPU program directory by the SINAUT ST7 configuration
tool are available both as single blocks in the Blocks directory and as an STL
source file in the Sources directory named TD7_UserSource.

Copyright Siemens AG 2011 All rights reserved

3.3.2

Structure of the SINAUT user program


The SINAUT program consists of various blocks, most of which are generated
automatically.
The function blocks for the processing of process data, the user-specific function
blocks, such as the FB10 in this application example (includes a small program to
simulate the pump signals and the automatic switchover between the pumps), and
some further optional blocks of the TD7 software are copied to the blocks directory
for the CPU as required by the user. The individual blocks are called by the cyclic
OB1 program.
The table below shows an example of an OB1 program structure for a model
station which, however, is not identical with the station in this example project. This
table includes only a selection of possible blocks.

14

SINAUT_WAN
V1.2, Article ID: 48283510

3 Basics on Telecontrol with SIMATIC


3.3 The SINAUT TD7 library TD7onCPU
Table 3-1

Cyclic OB1

BasicTask

Copyright Siemens AG 2011 All rights reserved

TimeTask

- FC BasicTask is always called at the start of the cyclic SINAUT


program. This FC includes only the parameter UserFC
(normally = 0). When receive messages are to be processed on
a user-specific basis, enter the number of the FC that contains
the user program for further processing.
- As an option, the FC TimeTask can be called next. This FC
does not include any parameters. The FC TimeTask must be
used, if the SINAUT time is required. The SINAUT time enables
SINAUT messages to be time-stamped, the start of program
components at a specified time or the scheduled transmission
of data messages. In this case, the FC Trigger described below
will be required.

Trigger

- FC Trigger can be included as an option. The output of this FC


is set for the duration of one OB1 cycle when the point in time or
the time interval set for this FC has been reached.

ListGenerator

- FC ListGenerator300 (for S7-300 CPUs) can be included as an


option. This FC is required, if the station receives messages
that contain an incomplete or no destination address at all.
Subsequent to the above FCs for the execution of SINAUT
basic tasks, data point typicals for data transmission and receipt
are called.

Usually, these data point typicals include

objects to be sent, such as binary information (alarms, status


messages), analog values or counted values

objects to be received, such as commands or setpoints


All data point typicals are FBs. When an FB is called, an instance
DB must be specified. The number of this instance DB is
identical to the object number of the data point object.

Bin..._S

Ana..._S

etc.

SINAUT_WAN
V1.2, Article ID: 48283510

- For the acquisition and transmission of binary information


- For the acquisition and transmission of analog values

The user-specific cyclic program of the station which is required


independently of the SINAUT program, can be integrated in OB 1
before or after the SINAUT program or, where appropriate, within
the SINAUT program itself.

15

3 Basics on Telecontrol with SIMATIC


3.4 The SINAUT TD7 library TD7onTIM

3.4

The SINAUT TD7 library TD7onTIM


With the help of SINAUT objects, the TIM modules suitable for TD7onTIM take
over all tasks of the local CPU, so as to reduce the capacity requirements in the
CPUs main memory. SINAUT objects consist of

system objects

data objects

System objects provide system-relevant information for the CPU user program.
The transmission and receipt of process data is configured with the help of
standardized data objects.
SINAUT offers data objects with different data areas. Each data object may contain
one or several send or receive channels. The data object Bin04B_S (S at the end
for send), for example, includes four send channels for the transmission of four
bytes, the data object Cmd01B_R (R at the end for receive) includes one channel
for receiving one byte.

Copyright Siemens AG 2011 All rights reserved

The management and configuration of data objects for the TIM module is
performed with the ST7 configuration tool. The data objects for the TIM can be
added with the help of a standard library. The parameters for the data objects are
assigned in two steps:

16

Definition of the basic parameters for the data objects (e.g. partner to which the
data of the objects shall be sent or from where they shall be received)

Configuration of the channel-specific properties of the individual send and


receive channels, e.g. memory area, byte address.

SINAUT_WAN
V1.2, Article ID: 48283510

3 Basics on Telecontrol with SIMATIC


3.5 TIM communication modules

3.5

TIM communication modules


The communication module TIM (Telecontrol Interface Module) is a central
component of the SINAUT ST7 hardware. It is used to manage the data traffic via
WAN network for the S7 CPU or control center PC.
The figure below shows a summary of the features of different TIM modules which
support both types of the SINAUT TD7 software versions.

Figure 3-1

Copyright Siemens AG 2011 All rights reserved

General properties

for S7-300
single slot size
module replacement without PG (MMC of CPU)

for S7-300 and for standalone operation (without


S7-300 CPU) with
S7-400 and PC
double slot size
module replacement
without PG (MMC of
CPU or C-PLUG)

SINAUT library
SINAUT
communication via
TIM can be used in

Data memory

RS232 or RJ45

RS232 and RJ45

2 x RS232/RJ45 and
2 x RJ45

Station

Station
Master
Node station

Station
Master
Node station

16,000 messages

32,000 messages

56,000 messages,
battery-buffered

S7 connection via
IP-based networks

Note

This chapter does not replace the official documentation. For further information
about SINAUT Telecontrol, please refer to /1/ and /2/.

SINAUT_WAN
V1.2, Article ID: 48283510

17

4 Function Mechanisms of this Application


4.1 General overview

Function Mechanisms of this Application

4.1

General overview
Communication between the stations is effected by means of the SINAUT ST7
protocol which is generally used for WAN communication between remote (and
local) subscribers in SINAUT ST7 systems. The communication modules used in
the stations are the TIM module variants TIM 3V-IE and TIM 3V-IE Advanced.
For stations equipped with an IE-TIM module, there are two TD7 software variants
for SINAUT communication one for operation on the CPU (TD7onCPU) and one
for operation on the TIM module (TD7onTIM).
In order to demonstrate both variants, the TD7 software in this example project has
been configured as follows:

TD7onCPU for the master and station 2

TD7onTIM for station 3

Figure 4-1

Copyright Siemens AG 2011 All rights reserved

01_Master

02_Node_station
TIM 3V-IE Advanced
(1002)

TIM 3V-IE Advanced


(1001)
Master<>Node station

CPU 314 (1)

CPU 314 (2)

192.168.1.187

192.168.1.24

Ethernet

Ma
st
er

<>

MD2

St
at
io
n

LTOP 1

Dedicated line

LTOP 1

03_Station
Logic link

TIM 3V-IE
(1003)

(n)
SINAUT
subscriber number
192.168.1.X
IP address

CPU 314
(3)

MD2

The TIM modules manage the communication between the two stations and the
master. They store the data messages to be sent, so that no data will be lost, even
if the network connection or the communication partner fails. The module types
TIM 3V-IE and TIM 3V-IE Advanced are provided with two interfaces: one for

18

SINAUT_WAN
V1.2, Article ID: 48283510

4 Function Mechanisms of this Application


4.1 General overview
WAN communication (e.g. via dedicated line or telephone network) and one
Ethernet interface.
This application example demonstrates the communication between master and
node station (station 2) via Ethernet, as well as the communication between
node station and station 3 via dedicated line.
Each of the pumps configured for the stations 2 and 3 can be operated via the
variable table (VAT). The transmission of messages between these stations can be
tracked with the help of the VAT and the TIM message protocol of the SINAUT
Diagnostics and Service tool.
Communication
Each SINAUT partner is provided with a unique SINAUT subscriber number. This
number is required for connection and object configuration.

Copyright Siemens AG 2011 All rights reserved

Communication is possible between the following stations:


Communication
partner

TIM

TIM

Communication
partner

via

Master CPU,
subscriber no. 1

TIM,
subscr.-no.
1001

TIM,
subscr.-no.
1002

CPU station 2,
subscriber no. 2

Ethernet

Master CPU,
subscriber no. 1

TIM,
subscr.-no.
1001

TIM,
subscr.-no.
1003

CPU station 3,
subscriber no. 3

Ethernet +
dedicated line

CPU of station 2,
subscriber no. 2

TIM,
subscr.-no.
1002

TIM,
subscr.-no.
1003

CPU station 3,
subscriber no. 3

dedicated line

Data transmission
Each function block called in a CPU has an instance DB the number of which is
identical with the SINAUT object number. With the help of the SINAUT subscriber
number and the SINAUT object number, communication between the associated
typicals can be clearly addressed. Each typical includes two parameters to
determine the communication relation.

partner number:
subscriber number of the communication partner.

partner object number:


object number (= instance DB no.) at this partner.

SINAUT_WAN
V1.2, Article ID: 48283510

19

4 Function Mechanisms of this Application


4.2 SINAUT program blocks on station 2

4.2 SINAUT program blocks on station 2


In this application example, the SINAUT user program only includes:

the startup program OB100


used to call the ST7 startup block FC Startup.

the cyclic program OB1


consisting of only the basic block FC BasicTask, the pump simulation block
FB10 and the blocks of the required TD7 data point typicals.

The figure below shows the blocks of the CPU of station 2 with the TD7 software
configured as TD7onCPU.

Copyright Siemens AG 2011 All rights reserved

Figure 4-2

The cyclic program of OB1 of station 2


The figure below describes the block OB1 of station 2. It shows that FC127
(BasicTask), FC121 (TimeTask) and FC119 (ListGenerator300) are called first.
Then the data point typicals for the send binary values (Bin04B_S), the
commands (Cmd01B_R), the receive binary values (Bin04B_R) and the pump
simulation program (FB10) are called.
FC121 (TimeTask) is not obligatory in this example project.

20

SINAUT_WAN
V1.2, Article ID: 48283510

4 Function Mechanisms of this Application


4.2 SINAUT program blocks on station 2

Copyright Siemens AG 2011 All rights reserved

Figure 4-3

SINAUT_WAN
V1.2, Article ID: 48283510

21

Copyright Siemens AG 2011 All rights reserved

4 Function Mechanisms of this Application


4.2 SINAUT program blocks on station 2

Pump simulation program in FB10


For this example project, a simple simulation program has been generated in FB10
which reflects the behavior of the pumps. Furthermore, it initiates the switchover
between the two pumps at 30-second intervals when the pumps are operated in
automatic mode. This block is used in both the CPU of station 2 and of station 3.

22

SINAUT_WAN
V1.2, Article ID: 48283510

4 Function Mechanisms of this Application


4.3 Object parameters for TD7onTIM on station 3

4.3 Object parameters for TD7onTIM on station 3


Since the TD7 software in station 3 has been configured as TD7onTIM on the
TIM 3V-IE module, the block directory of the CPU of station 3 only includes OB1,
FB10 and DB10.
Please see the list below that shows the parameters for the data objects and
channels configured in TD7onTIM on the TIM module in station 3.
In theory, the memory byte MB11 could also have been transmitted with MB10 in
one message. Here, the pump signals of station 3 are split into 2 messages /
memory bytes. The operating status information (MB10) is sent to the master and
to station 2, the error message (MB20), however, is only transmitted to the master.
Some bits for error and alarm messages have not been assigned in this automation
solution.

Copyright Siemens AG 2011 All rights reserved

Object Bin04B_S

Object no.: 1

Object
parameter

Value

Selected partners:

Subscriber no. 1 / master


Subscriber no. 2 / station 2

Partner object no.:

Channels and
channel parameters

Function, bit assignment

Memory
area

InputByte_1:

Bit assignment:
0: operating mode automatic
1: operating mode manual
2: operating status Off
3: operating status On
4-7: not assigned

Memory

InputByte_2:

- empty -

InputByte_3:

- empty -

InputByte_4:

- empty -

DB
no.

Address
[byte; bit]
MB10

Channel parameter
for InputByte_1
Send trigger:

Send at change of: 1

The remaining object parameters image memory, conditional spontaneous,


high priority and read cycle, as well as the channel parameter masks remain
unchanged in their default settings. The same applies to object 2 (Bin04B_S).
Object Bin04B_S

Object no.: 2

Object
parameter

Value

Selected partners:

Subscriber no. 1 / master

Partner object no.:

Channels and
channel parameters

Function, bit assignment

Memory
area

InputByte_1:

Bit assignment
0: not assigned

Memory

SINAUT_WAN
V1.2, Article ID: 48283510

DB
no.

Address
[byte; bit]
MB11

23

4 Function Mechanisms of this Application


4.3 Object parameters for TD7onTIM on station 3
1: Fault message not controllable
(after receipt of a switching
command in automatic mode)
2-7: not assigned
InputByte_2:

- empty -

InputByte_3:

- empty -

InputByte_4:

- empty -

Channel parameter
for InputByte_1
Send trigger:

Copyright Siemens AG 2011 All rights reserved

Object Cmd01B_R

Send at change of: 1


Object no.: 3

Object
parameter

Value

Selected partner:

Subscriber no. 1 / master

Partner object no.:

Channels and
channel parameters

Function, bit assignment

Memory
area

CommandOutputByte:

Bit assignment:
0: operating mode automatic
1: operating mode manual
2: operating status Off
3: operating status On
4-7: not assigned

Memory

Command output
time:
Object Bin04B_R

Address
[byte; bit]
MB30

5 (x 0.1 sec.)

Object no.: 4

Object
parameter

Value

Selected partner:

Subscriber no. 2 / station 2


(node station)

Partner object no.:

Channels and
channel parameters

Function, bit assignment

Memory
area

OutputByte_1:

Bit assignment:
0: operating mode automatic
1: operating mode manual
2: operating status Off
3: operating status On
4-7: not assigned

Memory

OutputByte_2:

- empty -

OutputByte_3:

- empty -

OutputByte_4:

- empty -

24

DB
no.

DB
no.

Address
[byte; bit]
MB20

SINAUT_WAN
V1.2, Article ID: 48283510

5 Configuration and Project Settings


5.1 Hardware configuration

Configuration and Project Settings


This chapter describes the main project settings that resulted in the program
created for this application.

5.1

Hardware configuration

Table 5-1

Copyright Siemens AG 2011 All rights reserved

No.

Action

1.

Select Start > SIMATIC > SIMATIC Manager to start


the SIMATIC Manager.

2.

Select File > New to create a new project in the


SIMATIC Manager.

3.

Select Insert > Station > SIMATIC 300 Station to


insert a SIMATIC 300 station.

4.

Click the right mouse button > Object Properties and


rename the station.

5.

Double click this station and then select Hardware to


open the HW Config window.
Insert the desired CPU and TIM module.

Comments

In this example project, the following


names were used: 01_Master,
02_Node_station, 03_Station.

Note:
You will find IE-TIM modules under SIMATIC 300 >
SINAUT ST7 > TIM IE.

6.

Repeat the steps 35 for all stations.

Note

Choose TIM 3V-IE Advanced for the master and for station 2. Choose TIM 3V-IE
for station 3.

Note

Since the motor signals are simulated by the user program, no peripheral
modules need to be configured.

SINAUT_WAN
V1.2, Article ID: 48283510

25

5 Configuration and Project Settings


5.2 Network configuration

5.2

Network configuration

5.2.1

Ethernet settings

Table 5-2

Copyright Siemens AG 2011 All rights reserved

No.

Action

1.

Open NetPro. Select the Subnets folder and


doubleclick Industrial Ethernet to add a new Ethernet
network.

2.

Doubleclick TIM to open the Properties dialog for the


TIM of the master station and select the tab labeled
Interfaces.

3.

Select Ethernet 1 as interface, then click the


Properties button.

4.

Enter an IP address for the TIM module as shown in


the screenshot on the right, and select the subnet
Ethernet 1.
Click OK to confirm your settings in all windows.

Comments

Note:
The IP addresses for the modules connected to the
same subnet must be located in the same address
area. In this application example, the control center has
the following address:
IP address: 192.168.1.187
Subnet mask: 255.255.255.0
5.

26

Repeat steps 2-4 for station 2. In this application


example the address has been configured as follows:
IP address: 192.168.1.24
Subnet mask: 255.255.255.0

SINAUT_WAN
V1.2, Article ID: 48283510

5 Configuration and Project Settings


5.2 Network configuration

5.2.2

Dedicated line settings

Configuration of the dedicated line


Table 5-3

Copyright Siemens AG 2011 All rights reserved

No.

Action

1.

Select the Subnets folder and doubleclick SINAUT


Dedicated line to add a new dedicated line.

2.

Doubleclick the newly created dedicated line to open


the Properties dialog for this dedicated line.

3.

Set the baud rate to 19200 bps for this application


example.

4.

Click OK to confirm your settings.

Comments

Note

The tab Network Settings is used to define the message format and the WAN
protocol, etc. These parameters are explained in detail in /1/.

Note

To establish a connection via dedicated line, the modem network settings are to
be defined by setting the DIL switches of the modems accordingly.
The settings for this application example are described in chapter 6.1.1. For a
detailed description of the DIL switches, please refer to /3/.

Configuration of the dedicated line master and station


Table 5-4
No.

Action

1.

Doubleclick the TIM of the node station to open the


Properties dialog for this TIM and select the Interfaces
tab.

2.

Select the interface WAN 1.

SINAUT_WAN
V1.2, Article ID: 48283510

Comments

27

5 Configuration and Project Settings


5.2 Network configuration

Copyright Siemens AG 2011 All rights reserved

No.

Action

3.

Click New to create the network node, then click the


Properties button to specify the parameters.

4.

Select the dedicated line you have created beforehand.

5.

Select Master in the node type field and click OK to


confirm your settings.

6.

Select the MD2 modem, then click OK to close this


dialog.

7.

Repeat this procedure for station 3.


In step 5, define the station 3 as Station.

8.

Note on station 3:
To demonstrate the download process of the system
data blocks (SDBs) for the TIM on the CPU just change
over to the Options tab and select the option Save
configuration data on the CPU.
See chapter 7.2.

28

Comments

SINAUT_WAN
V1.2, Article ID: 48283510

5 Configuration and Project Settings


5.3 Configuration with the SINAUT ST7 configuration tool
No.
9.

Action

Comments

Then Save and Compile the project in NetPro, so as


to enable access to the configured data from other
STEP 7 and SINAUT applications.
After successful configuration and when saving the
project, an internal consistency check will be performed
and the message "No errors" appears.

5.3

Configuration with the SINAUT ST7 configuration tool

5.3.1

Configuration of SINAUT connections

Table 5-5

Copyright Siemens AG 2011 All rights reserved

No.

Action

1.

Start the SINAUT ST7 configuration tool and open your


project.

2.

Select the option Connection Configuration. Click the


OK button.

3.

All possible connections are listed in the right window.


Select the desired connection(s) by clicking it with your
right mouse button > Add.

Comments
Start -> SIMATIC -> SINAUT
ST7 -> Configuration

Save this configuration and change over to the


Subscriber Administration dialog.
The configured connections are shown in the left
window.
Note:
In this example all connections
possible have been configured, i.e. the
connection from the master to station 2
and station 3 and the connection
between station 2 and station 3.

SINAUT_WAN
V1.2, Article ID: 48283510

Master Station 2

Master Station 3

Station 2 Station 3

29

5 Configuration and Project Settings


5.3 Configuration with the SINAUT ST7 configuration tool
Note

In the SINAUT ST7 configuration tool, subscriber numbers have been assigned
to all potential subscribers from a SINAUT point of view.
CPU modules and PC stations are assigned to subscriber numbers starting from
no. 1, for TIM modules the number start from no. 1001. The subscriber numbers
can be changed in the Subscriber administration dialog (see chapter 5.3.2).

5.3.2

Adjusting the SINAUT ST7 subscriber numbers

Table 5-6

Copyright Siemens AG 2011 All rights reserved

No.

Action

1.

In this window, all SINAUT subscribers (CPUs, TIMs,


SINAUT ST7cc PC) are listed. Here you can change
the SINAUT subscriber numbers.
Select the desired subscriber by clicking the right
mouse button > Change subscriber no.

2.

Then enter the new subscriber number.

Comments

In this example project only the


subscriber numbers listed below are to
be adjusted as follows:
Master CPU: subscriber no. = 1
CPU in station 2: subscriber no. = 2
CPU in station 3: subscriber no. = 3
Master TIM: subscriber no. = 1001
TIM in station 2: subscriber no. = 1002
TIM in station 3: subscriber no. =1003

5.3.3

SINAUT ST7 configuration with TD7onTIM (station 3)

Table 5-7
No.

Action

1.

The TD7onTIM stations are configured in the


Subscriber Administration dialog.
Select the directory TIMs with TD7onTIM in the left
window.

2.

Define the Basic settings for TD7onTIM as shown on


the right.

30

Comments

SINAUT_WAN
V1.2, Article ID: 48283510

5 Configuration and Project Settings


5.3 Configuration with the SINAUT ST7 configuration tool
No.

Action

3.

Select the TIM to be configured.


(In this example the TD7onTIM parameters are set for
the TIM of station 3.)

4.

Then click the TD7onTIM library icon.

5.

The TD7onTIM Library window opens.


Select the object to be configured, then click the Paste
into project button.

Comments

Copyright Siemens AG 2011 All rights reserved

Click the Close button to close the library.

6.

Define the parameters for the objects.

The following data objects are configured on the TIM module of station 3 for the
transmission of switching operations and pump statuses:

Bin04B_S (object no. 1) for transmitting the following status messages to the
master and to station 2 (node station):
Operating mode manual / automatic, operating status on / off.

Bin04B_S (object no. 2) for transmitting the error message not controllable to
the master (when a switching command is received during automatic mode).

Cmd01B_R (object no. 3) for receiving the following commands:


Operating mode automatic / manual, operating status off / on.

Bin04B_R (object no. 4) for receiving the following operating statuses from
station 2:
Operating mode automatic / manual, operating status off / on.

The parameter assignment of the individual data objects and their channels is
described in chapter 4.3.

SINAUT_WAN
V1.2, Article ID: 48283510

31

5 Configuration and Project Settings


5.3 Configuration with the SINAUT ST7 configuration tool
Note

5.3.4

Since station 3 has been configured for TD7onTIM, the user program in the CPU
of station 3 includes only OB1 which is used to call the pump simulation block
FB10.

Saving and generating the system data

Table 5-8

Copyright Siemens AG 2011 All rights reserved

No.

Action

1.

Use the subscriber administration dialog to save and


compile your project.

2.

Confirm the security prompt with OK, leave the options


settings unchanged and click the OK button.

3.

The SDBs are generated anew and saved in the


STEP 7 project. If no errors have occurred, close the
program again.

32

Comments

SINAUT_WAN
V1.2, Article ID: 48283510

5 Configuration and Project Settings


5.4 SINAUT ST7 configuration with TD7onCPU

5.4

SINAUT ST7 configuration with TD7onCPU


(master and station 2)
Installation of the SINAUT ST7 software also includes the TD7 library. It contains
the standard blocks as STL source file in the Sources directory and also in block
format in the Blocks directory.

Table 5-9

Copyright Siemens AG 2011 All rights reserved

No.

Action

1.

Open the SIMATIC Manager for the station you want to


configure with TD7onCPU and select the Blocks
directory. That is station 2 in this example.

2.

Click your right mouse button and select Insert New


Object > Organization Block to create OB100.

3.

Open OB100.

4.

You will find the TD7onCPU blocks under Libraries >


SINAUT TD7 Library > Basic01.

5.

Drag & drop the block FC Startup into your project.


Save the project and close OB100.

SINAUT_WAN
V1.2, Article ID: 48283510

Comments

33

5 Configuration and Project Settings


5.4 SINAUT ST7 configuration with TD7onCPU
No.

Action
Open OB1.

7.

Drag & drop the block FC BasicTask into your project.

8.

Drag & drop the required data typicals into your project,
e.g. FB Bin04B_S for the transmission of 4 binary
values.

9.

The user program is also called in OB1, i.e. the pump


simulation block FB10 in this example.

10.

Repeat the steps 1-8 for the master station.

Copyright Siemens AG 2011 All rights reserved

6.

34

Comments

for the configuration of data typicals


please refer to
Figure 4-3.

The user program of the master station


is similar to that of station 2, except
that FB10 is missing since it is not
required here.

SINAUT_WAN
V1.2, Article ID: 48283510

5 Configuration and Project Settings


5.5 Measures required when using other component types

5.5

Measures required when using other component types


If you use another type of CPU than described in this application example, please
perform the following measures before you start downloading:

Replacing the configured module type by the other module type in HW Config for
hardware configuration
Table 5-10

Copyright Siemens AG 2011 All rights reserved

No.

Action

1.

Open the SINAUT Project in the SIMATIC Manager,


select the SIMATIC 300 station 02_Node_Station and
select Hardware to start HW Config.

2.

Click the CPU with your right mouse button and select
the function Replace Object to replace the previous
CPU by your CPU type.

3.

Select Save and Compile to accept your changes and


close HW Config, if no error message appears.

Comments

Using the SINAUT configuration dialog to replace SINAUT connections that have become
invalid after module change
Table 5-11
No.

Action

1.

Start the SINAUT ST7 configuration tool.

2.

Use the SINAUT ST7 configuration tool to open the


ST7 project SINAUT_WAN.

3.

Select Connection Configuration and click the OK


button to start.

4.

If the configured connections on the right side are


marked red, restore them by clicking your
right mouse button > Recover lost connection.

SINAUT_WAN
V1.2, Article ID: 48283510

Comments
Start > SIMATIC > SINAUT ST7 >
Configuration

35

5 Configuration and Project Settings


5.5 Measures required when using other component types
No.

Action

Comments

Then click the Save icon or select SINAUT > Save to


save the new connection table.

5.

Check of subscriber numbers and generation of system data in the subscriber


administration dialog of the SINAUT configuration tool.
Table 5-12

Copyright Siemens AG 2011 All rights reserved

No.

Action

1.

Open the Subscriber Administration tab.

2.

Check whether the subscriber numbers have remained


unchanged. If necessary, adjust the subscriber
numbers as described in chapter 5.3.2.

3.

Confirm the security prompt with OK, leave the options


unchanged and click the OK button to continue.

4.

The SDBs are generated anew and saved in the


STEP 7 project. If no errors have occurred, you can
close the program again.

5.

Then transfer the changed SDBs to the station as


described in chapter 7.2.

Note

36

Comments

Basically, you can adapt the whole demonstration project to your individual
requirements. A description of all change options, however, would go beyond the
scope of this configuration example. For further information, please refer to the
relevant manuals.

SINAUT_WAN
V1.2, Article ID: 48283510

6 Installation
6.1 Hardware installation

Installation

6.1

Hardware installation

Note

6.1.1

Please observe the notes in the latest issue of the relevant documentation before
starting commissioning.
The most important manuals are listed in chapter 10.

Modem settings
Set the DIL switches of the modems of stations 2 and 3 as described below.

DIL switches accessible from above


Table 6-1

Copyright Siemens AG 2011 All rights reserved

No.

Action

1.

Turn the DIL switches of all three modems upwards to


ON position (position as delivered).

2.

Then set the 5-pin DIL switch as follows:


switch 2: down (ON) = 2-wire operation
switches 4 + 5: down (ON) = baud rate 19200 bps.

Comments

2-wire operation

Baud rate 19200 bps

The 10-pin DIL switch remains in its


position as delivered, i.e. all switches
are in an upward position (OFF).

DIL switches accessible from below


Table 6-2
No.

Action

1.

There are two DIL switches at the bottom of the MD2


modem.
Set the 4-pin DIL switch of the modems to RS232
interface active (see Figure 6-1).

2.

Set the 4-pin DIL switch for connection of the WAN-side


terminating resistors as follows:
switch 1: up (OFF)
switch 2: down (ON)
switch 3: up (OFF)
switch 4: down (ON)

SINAUT_WAN
V1.2, Article ID: 48283510

Comments

Terminal point for 2-wire or 2 x 2-wire


operation;
transmission rate: 9600 or 19200 bps

37

6 Installation
6.1 Hardware installation
Figure 6-1
Front door labeled Modem

6-pin RJ12 Western socket X3:


WAN connection for MD2 modem. The
standard connecting cable is included in
the delivery of the MD2.

4-pin DIL switch for connection of the


terminating resistors on WAN side.

Copyright Siemens AG 2011 All rights reserved

This 4-pin DIL-switch is used to define


which of the interfaces RS232 or RS 485
shall be active.
The default settings for RS232 and RS485
are as follows:
RS232 port active
(status when delivered)

RS485 port active,


terminating resistor not
active. Needs to be set
on the last connector.

6.1.2

Hardware installation for the master, station 2 (node station) and station 3
Install the master station and the stations 2 and 3 as described below. Modem
installation refers only to the stations 2 and 3 (steps 1, 6 and 7).

Table 6-3
No.

38

Action

Comments

Perform the modem settings as described in


chapter 6.1.1.

Place the power supply module in slot 1 of the SIMATIC


300 rack.

Connect the bus connector supplied with the TIM to the


connector on the rear side of the CPU module.

Place the CPU module in slot 2 of the


SIMATIC 300 rack.

Hook the TIM into slot 4 of the DIN rail of the 300-type
rack, swivel it in downwards and secure it with screws.

Place the MD2 modem in slot 5 on the DIN rail of the


rack.

Stations 2 and 3 only.

Use the connecting cable 6NH7701-4AL to connect the


MD2 modem and the TIM module.

Stations 2 and 3 only.

Connect the TIM, the CPU and the MD2 modems of


stations 2 and 3 to the deenergized DC 24V power
supply unit.

Stations 2 and 3 only.

SINAUT_WAN
V1.2, Article ID: 48283510

6 Installation
6.1 Hardware installation

6.1.3

Interconnection of the example system


To interconnect the individual stations, proceed as follows.

Table 6-4

Copyright Siemens AG 2011 All rights reserved

No.

Action

Insert one Ethernet cross cable connector into the


mating RJ45 socket of the master TIM and insert the
other Ethernet cable connector into the RJ45 socket of
the TIM of station 2.

Use cable 6NH7701-4AL to connect the TIM module


and the modem of station 2 via the RS232 sockets.

Insert the RJ12 cable connector of cable 6NH77002AR60 into the RJ socket X3 of the modem of station 2
and insert the other cable connector into the mating
socket on the LTOP of station 2.

Use the cable 6NH7701-4AL to connect the TIM


module and the modem of station 3 via the RS232
sockets.

Insert the RJ12 connector of cable type 6NH77002AR60 into the RJ12 socket X3 of the modem of station
3 and insert the other cable connector in the mating
socket on the LTOP of station 3.

Connect the 2 cores of the dedicated line cable


between the LTOPs of station 2 and station 3 using the
terminals 1+2 on the LTOP.
Each DIP switch of LTOP1 must be set to position "1".

Switch on the power supply for the master station and


the two other stations.

Turn the key switch of all three CPU modules into the
position RUN-P. The CPU modules start up.

SINAUT_WAN
V1.2, Article ID: 48283510

Comments

39

6 Installation
6.2 Software installation

6.2

Software installation
To prepare your system for installation, proceed as described below. If not yet
available, install the required software packages as listed in chapter 2.3 on your
PG/PC.
The following software packages are required and must be installed in the order as
stated here:

Table 6-5
No.
1

Action

Comments

Install a suitable operating system.

Install STEP 7 and the license key.

Install the standard SINAUT ST7 software package and


the license key.

6.3

Installation of the application example

Copyright Siemens AG 2011 All rights reserved

To install the SINAUT ST7 application example, proceed as follows.


Table 6-6
No.

Action

Select Start > SIMATIC > SIMATIC Manager to open


the SIMATIC Manager.

Select File > Retrieve to retrieve the file


48283510_SINAUT_WAN_CODE.zip.

40

Comments

SINAUT_WAN
V1.2, Article ID: 48283510

7 Startup of the Application


7.1 Defining the PG/PC interface

Startup of the Application

7.1

Defining the PG/PC interface

Copyright Siemens AG 2011 All rights reserved

Table 7-1
No.

Action

Select Start > SIMATIC > SIMATIC NET > Set PG/PC
Interface to make sure that the interface of your PG is
set to MPI.

Select Set PG/PC Interface > Properties > Address


and specify an MPI address for the PG interface other
than 2.

Comments

Note

If the IP address of your modules does not comply with the IP addresses used in
this application project, the correct IP address will be assigned to the modules
when downloaded via the MPI.

Note

It is assumed that you know how to download a user program with STEP 7. This
procedure is not described in this document.

SINAUT_WAN
V1.2, Article ID: 48283510

41

7 Startup of the Application


7.2 Loading the stations via MPI

7.2

Loading the stations via MPI

7.2.1

Station 2 (node station) and master: Storing the SDBs on CPU and TIM

Station 2
Table 7-2

Copyright Siemens AG 2011 All rights reserved

No.

42

Action

Connect the PG and the CPU of station 2 with the MPI


cable.

On the PG, open the NetPro program by selecting


Start > SIMATIC > STEP 7 > NetPro and doubleclick
station 2 to open the hardware configuration dialog
HW Config.

Select the menu commands Target module >


Download > Select target module. The CPU and TIM
3V-IE Advanced are listed as target modules.

Select the target modules CPU 314 and TIM 3VIE Advanced (or click the Select All button) and click
OK to confirm your selection.
The dialog box Select Node Address opens.

The MPI address of your CPU is displayed in the field


Enter connection to target station. If a number other
than "2" is set, correct this entry and confirm with OK.
The Download dialog box opens.
After a while, the Stop target module dialog box
opens.

In the Stop target module dialog box, click OK to


confirm that you wish to continue the download
process.
The Download to Module dialog box opens.

In the Download to Module dialog box, click OK to


restart of the CPU module.

Comments

SINAUT_WAN
V1.2, Article ID: 48283510

7 Startup of the Application


7.2 Loading the stations via MPI
No.

Action

Then return to the SIMATIC Manager and download the


example program to the CPU; then disconnect the MPI
cable from the CPU.

Comments

Master station

Copyright Siemens AG 2011 All rights reserved

Connect the MPI cable with the master CPU and repeat the procedure described in
Table 7-2 for the master station.

SINAUT_WAN
V1.2, Article ID: 48283510

43

7 Startup of the Application


7.2 Loading the stations via MPI

7.2.2

Station 3: Storing the SDBs on the CPU only


The loading of data to station 3 is similar to the procedure of loading data to station
2. The TIM module of station 3 has been configured in NetPro in such a way that
the system data blocks (SDBs) will only be stored on the CPU.

Copyright Siemens AG 2011 All rights reserved

Figure 7-1

This is a convenient solution, that allows the installation of a replacement TIM


without requiring to reload the SDBs, as they are already available on the CPU.
As HW Config recognizes that only the CPU needs to be loaded in this case, this is
also the only module displayed.
Figure 7-2

44

SINAUT_WAN
V1.2, Article ID: 48283510

8 Operation of the Application


8.1 Overview

Operation of the Application

8.1

Overview
Connect the PG to the master CPU with the MPI cable. Your system is now ready
to start the example project.
When the operating mode or operating status of a pump changes, the transmission
of data or messages can be monitored or controlled by the following means:

Copyright Siemens AG 2011 All rights reserved

8.2

control by means of the table of variables (VAT) of the master station

LEDs of the TIM modules

the TIM message protocol

Operation and monitoring via the table of variables


(VAT)
After completion of all preparatory steps as described in chapters 6 and 7, open the
table of variables in the master station. Proceed as follows:

Table 8-1
No.
1

Action

Comments

Open the example project in the SIMATIC Manager


and select VAT_1 in the block directory of the master
CPU. Doubleclick the context menu Open Object to
open this VAT.
Click the Monitor variable icon
connection to the master CPU.

to produce a

Operate the example project by entering commands in


the row of the relevant control bit in the Control value
column of the VAT (see description below).

The pump statuses in the VAT can be monitored with the help of the following two
memory bytes:

MB10 (pump station 2) and

MB11 (pump station 3)

SINAUT_WAN
V1.2, Article ID: 48283510

45

8 Operation of the Application


8.2 Operation and monitoring via the table of variables (VAT)
The bit assignment of MB10 and MB11 is as follows:

Bit 0: operating mode AUTOMATIC

Bit 1: operating mode MANUAL

Bit 2: operating status OFF

Bit 3: operating status ON

Bit 4: not assigned

Bit 5: error message not controllable

Bit 6: not assigned

Bit 7: not assigned

When starting the project for the first time, both stations are set to automatic
mode and the pump of station 2 is in the operating status On (bit 0 of MB10 set
to 1). If the two pumps remain in automatic mode, they will change their operating
status at 30-second intervals, i.e. the pump of station 2 will change from On to Off,
the pump in station 3 will change from Off to On, and so on.

Copyright Siemens AG 2011 All rights reserved

During this cyclic switchover operation, station 2 is defined as master.

8.2.1

Example: switching pump 2 from automatic to manual mode

Table 8-2
No.

Action

Enter 1 in the control value field for manual command


(Cmd Manual, M 12.1).

46

Comments

Click the icon


(control value) to transmit the
entered value to the CPU.
The value 1 entered as control value will then be set
to true (0 would be set to false).
The status value of the pump (in MB 10) changes over
to 0000_0110, i.e. the pump is in manual mode (bit
1 has the value 1) and in the operating status off (bit 2
has the value 1).
Delete all control values entered in the Control value
column before the next entry.

Note

Always delete all entries in the Control value column before you enter new
control values; otherwise previous entries may lead to a 1-out-of-n error
(transmission of 2 commands), or to setpoint messages within one OB1 cycle
and/or a 1-out-of-8 error (transmission of 2 commands within one message).

Note

Error messages can be identified in the SINAUT Diagnostic and Service tool by
choosing the menu command SINAUT / TD7 CPU diagnosis..., or by selecting
the CPU in the SIMATIC Manager via the context menus PLC /
Diagnostics/Settings / Module Status in the Diagnostics Buffer tab (here only in
hex format).

SINAUT_WAN
V1.2, Article ID: 48283510

8 Operation of the Application


8.3 Monitoring via the LEDs on the TIM modules
The two entries, which the TD7 software identifies as errors, cannot be
recognized in the VAT, if they comply with the user program logic.
Any invalid entries can be identified only by the fact of a missing response,
because the master CPU has not transmitted the message to the relevant target
subscriber. The bits are reset in the CPU memory.

Note

Copyright Siemens AG 2011 All rights reserved

8.2.2

8.3

Operating examples:

Switch the pump of station to manual mode (M 12.1):


bit 0 in MB10 switches to 0 and bit 1 switches to 1.

Change the operating status of the pump in station 2:


On Off (M 12.2): bit 2 in MB10 switches to 1 and bit 3 switches to 0.
Off On (M 12.3): bit 2 in MB10 switches to 0 and bit 3 switches to 1.

Enter the inadmissible command to change the operating status while the
pump of station 3 is in automatic mode:
On Off (M 22.2) or
Off On (M 22.3):
Bit 1 in MB21 (pump errors) changes from 0 to 1 (not controllable)

Enter two conflicting commands at one time (On + Off or manual + automatic),
so that the two signal states switch to 1 ( ).

Monitoring via the LEDs on the TIM modules


Each transmission or receipt of a message via Ethernet is indicated by the flashing
of LED no. 4 (RX/TX) on the front panel of the TIM 3V-IE.
At a data transmission rate of 19200 bps, however, the rapid blinking of the LED
can hardly be discerned.

SINAUT_WAN
V1.2, Article ID: 48283510

47

8 Operation of the Application


8.4 Monitoring via the TIM message protocol

8.4

Monitoring via the TIM message protocol


All messages sent from and received in a TIM module can be registered in the
SINAUT Diagnostics and Service tool by means of the TIM Message Monitor and
evaluated with the TIM Message Protocol. Proceed as follows:

Table 8-3
Action

Select Start > SIMATIC > SINAUT ST7 > Diagnostics


and Service to open the SINAUT Diagnostics and
Service tool.

Open the STEP 7 project in the SINAUT Diagnostics


and Service tool.

Select a TIM module with your mouse.

Select the menu commands SINAUT > TIM Message


Monitor to open the associated dialog.

Use the square button to find the directory for the 7dt
file in which your recorded TIM messages shall be
stored and define a file name.

In the TIM Message Monitor dialog, select the field


Monitor Stop Action and choose the stop option Fill
buffer only once.

Click the Start monitor button to start the report


generation process. The TIM Message Monitor
progress dialog box opens.

Start the example system and enter one ore several


commands via the variable table.

In the next dialog box of TIM Message Monitor, select


the option Stop Monitor. The Download dialog box
opens briefly.

Copyright Siemens AG 2011 All rights reserved

No.

48

Comments

SINAUT_WAN
V1.2, Article ID: 48283510

8 Operation of the Application


8.4 Monitoring via the TIM message protocol
No.

Action
In the next dialog box, click Yes to confirm that you
want to open the message protocol.
The TIM message monitor window opens. Here you
can see the recorded TIM module messages.

11

Open a message by a doubleclick in the TIM message


monitor dialog box. Here you can select between
various tabs which provide detailed information about
the contents of this message. Use the arrow buttons at
the bottom of this dialog box to jump to other recorded
messages.

Copyright Siemens AG 2011 All rights reserved

10

Comments

SINAUT_WAN
V1.2, Article ID: 48283510

49

9 8BFurther Notes, Tips & Tricks, etc.

Further Notes, Tips & Tricks, etc.

9.1

General tips and tricks


This chapter describes a couple of possible scenarios and includes some further
tips and notes.

1. Problems with module loading.


Table 9-1
No.

Action

Make sure that all devices are connected to power and that the power supply unit is switched on.

Check the MPI address of the modules to be loaded and correct it in NetPro, if necessary.

2. Problems during commissioning, when alternative devices are used or if the


application example is installed in an existing network.
Table 9-2

Copyright Siemens AG 2011 All rights reserved

No.

Action

Firstly, make sure that all steps described for question 1 have been carried out.

Then check:
correct configuration of your example project (device names/types in NetPro and HW Config),
whether all devices are correctly addressed and
whether any subnet masks have been configured.
Please refer to the relevant notes in chapter 5.5 and chapter 9.2.
Note: When using a TIM 3V-IE / TIM 3V-IE Adv, the lighting up LED no. 3 (LINK) on the front
panel of the TIM module indicates a physical Ethernet connection.

If the measures described above do not show the desired success, check your configuration on
the basis of the configuration description in chapter 5 and, if necessary, repeat the installation and
startup procedure as described in chapters 6 and 7.

3. When switching between stop/start, the CPU always returns to stop status.
Table 9-3
No.

50

Action

Choose the relevant CPU in the SIMATIC Manager and select the menu commandsPLC >
Diagnostic/Setting > Module Information, then open the Diagnostics buffer tab and read the
last two or three messages.

If one of these messages says that an attempt has been made to access a block that does not
exist, download the missing block.

SINAUT_WAN
V1.2, Article ID: 48283510

9 8BFurther Notes, Tips & Tricks, etc.

4. The group error LED on the TIM 3V-IE (Advanced) and the STOP LED light up while the
RUN LED is off.
Table 9-4
No.

Action

An error occurred during the TIM module startup process, the red group error LED (SF) lights up
and a diagnostic alarm has been transmitted to the CPU. Furthermore, a corresponding message
has been entered directly in the diagnostics buffer of the TIM 3V-IE module.
The chapter Mounting and Installing a TIM in the SINAUT ST7 manual includes a table that
shows the status indications of all LEDs during the startup phase.
Check whether the corresponding message in the TIM diagnostics buffer indicates a configuration
error.
Correct the configuration error in your project and save the project including the newly generated
system data blocks.
Reload the SDBs for the relevant TIM.

5. The group error LEDs of TIM 3V-IE (Advanced) light up in a combination different than
that stated in section 4.

Copyright Siemens AG 2011 All rights reserved

Table 9-5
No.

Action

The chapter SINAUT Diagnostics and Service Tool in the SINAUT ST7 manual includes a table
that provides a summary of all error messages that cause lighting up of the group error LED (SF),
as well as a detailed description of each error message.
Check the application example for any errors described in that section.

9.2

Notes on IP address assignment

IP addresses when components are replaced


When individual components are replaced by components of a different type, the
name (type) of the device must also be changed accordingly in the hardware
configuration. However, it is not necessary to change the IP address.
Configuration of the IP address is usually performed by STEP 7 and when devices
are replaced it uses the relevant device names. For this reason, you should not
assign IP addresses to the devices, unless required by the specific system
structure (e.g. if a previous system with predefined IP addresses is used).

IP addresses when an existing Ethernet connection shall be used for this example
If the application example shall be installed in an existing network where the IP
addresses have already been assigned, possibly with pre-defined and pre-masked
subnetworks, the IP addresses of the stations must be adjusted accordingly in
NetPro or HW Config.

SINAUT_WAN
V1.2, Article ID: 48283510

51

10 9BLinks & Literature

10

Links & Literature

10.1

Literature
The following list is by no means complete and only provides a selection of related
sources.
Table 10-1
Topic
/1/

SINAUT ST7
Hardware

Title
SINAUT ST7 System Manual
Volume 1: System and Hardware 07/2009
http://support.automation.siemens.com/WW/view/en/39026870

/2/

SINAUT ST7
Software

SINAUT ST7 System Manual


Volume 2: Software 07/2009
http://support.automation.siemens.com/WW/view/en/39027081

/3/

Copyright Siemens AG 2011 All rights reserved

10.2

MD2 dedicated
line modem

Dedicated Line Modem MD2 Operating Instructions


http://support.automation.siemens.com/WW/view/en/17163799

Internet links
The following list is by no means complete and only provides a selection of related
sources.
Table 10-2
Topic

52

Title

\1\

Reference to the
entry

http://support.automation.siemens.com/WW/view/en/48283510

\2\

Siemens I IA/DT
Customer Support

http://support.automation.siemens.com

SINAUT_WAN
V1.2, Article ID: 48283510

11 10BHistory

11

History
Table 11-1
Version

Date

Changes

01.10.2005

First issue

V1.1

09.02.2010

Updated issue for the Service & Support portal

V1.2

24.10.2011

Figure 2-1, figure 4-1 and table 2-1 have been changed

V1.2.1

09.12.2011

The order number of Modem MD2 has been changed (Table


2-1)

Copyright Siemens AG 2011 All rights reserved

V1.0

SINAUT_WAN
V1.2, Article ID: 48283510

53