This chapter describes stepwise how to create
a redundant distributed system in WinCC OA
via the wizard. Before you have to think of the topology and of
the connections between the sub systems. In this example the following
structure is used for the whole system:
Figure: Topology for a redundant
distributed system

Computer name |
Project name |
System name |
System number |
Note |
eiwrk017 and eiwrk028 |
Project1 |
Sys1 |
1 |
Redundant project with redundant
network connection. |
eiwrk160 |
Project2 |
Sys2 |
2 |
Connected to Sys1 via simple
connection. |
eiwrk180 |
Project3 |
Sys3 |
3 |
Connected to Sys1 via redundant
network connections and connected to Sys2 via simple connection. |
How to create the three systems via the wizard
is described and is divided into three parts (the single steps
of creating the system are described). The redundant and distributed
system specific settings are not described in detail since the
settings were already described in the chapters Creating
a redundant system and Create
a distributed system.
Create the whole system (settings for the
project1)
Execute the following steps to create the project1
with the settings shown above (System name "Sys1" with
System number 1):
Open the wizard for creating
a new project from the project administrator panel.
Choose the project type
Redundant
distributed project and click on Next >.
Enter general settings like
project name (in this case "Project1"), languages,
project directory and click on Next >.
Create the redundancy settings
for the "Project1" like shown in the following figure.
Figure: Redundancy settings for
Project1

Click on
Next > and create
the settings for a distributed system in the next panel. The
following figure shows the settings for "Sys1".
Figure: Settings for Sys1

Since the system "Sys1"
is the server in this example no further settings are necessary
in the area Connected
Systems.
Click on Next > and then
on OK
to create the project.
Create the whole system (settings for the
project2)
Execute the following steps to create the project2
with the settings shown above (System name "Sys2" with
System number 2):
Open the wizard for creating
a new project from the project administrator panel.
Choose the project type
Distributed
project and click on
Next >.
Enter general settings like
project name (in this case "Project2"), languages,
project directory,... and click on Next >.
Create the distributed settings
for the "Project2. The following figure shows the settings
for "Sys2".
Figure: Settings for Sys2

The system "Sys2"
has a connection to "Sys1". The Sys1 is redundant
(the check box Redundant
has to be activated). Choose the both computers on
which the redundant system "Sys1" is configured
via the appropriate buttons. The button with the green checkmark
applies the settings (the settings are added into the selection
list of the Connected Systems).
Click on Next > and then OK
to create the project.
Create the whole system (settings for the
project3)
Execute the following steps to create the project3
(System name "Sys3" with System number 3)
Open the wizard for creating
a new project from the project administrator panel.
Choose the project type
Distributed
project and click on
Next >.
Enter general settings like
project name (in this case "Project3"), languages,
project directory,... and click on Next >.
Create the distributed settings
for the "Project3". The following figure shows the
settings for "Sys3".
Figure: Settings for Sys3

The system "Sys3"
has a connection to "Sys1" which is redundant (the
check box Redundant
has to be activated). Choose the both computers on which the
redundant system "Sys1" is configured via the appropriate
buttons. Additionally the network from "Sys3" to
"Sys1" is redundant (the check box
Redundant net has
to be activated). The button with the green checkmark
applies the settings (the settings are added into the selection
list of the Connected Systems ).
The "Sys3" has
additionally a connection to "Sys2". The connection
to this system is not redundant. Choose the host (in this
case eiwrk160) and the specific system number (for "Sys2"
this is the number 2) via the spin button Number.
Apply the settings (the settings are added into the
selection list of the Connected Systems .)
Click on Next > and then OK to
create the project.
Result
You have configured and created the systems
Sys1,Sys2 and Sys3 with the settings described above. Note that
when you configure a hierarchical structure it is sufficient to
have a connection in one direction (see also Figure
of the hierarchical structure of a distributed system).
NOTE
You can change
the system number and name of an
existing project by using the WCCOAtoolSyncTypes. Note
that the project is stopped and start WCCOAtoolSyncTypes via the
command line as follows:
WCCOAtoolSyncTypes -system 3 newSysName -proj
"Demo_3.10"
As shown above, specify first the system number
and then the system name.
The system number and name can be queried in CONTROL via the functions getSystemName()
and getSystemId():
main()
{
int
sysId;
string
sysNam;
sysNam
= getSystemName();
DebugN("NAME
IST:",sysNam);
sysId=getSystemId(sysNam);
DebugN("ID
IST:",sysId);
}
CAUTION
For an empty project
the system number and name can be changed by using the tool WCCOAtoolSysNames!
|