Vous êtes sur la page 1sur 63

Application about Control

PC-Based Automation by Means of


SIMATIC WinAC
Automation by Means of SIMATIC Microbox 420-RTX

Warranty, liability and support


Automation by Means of SIMATIC Microbox 420-RTX

The application examples are not binding and do not claim to be


complete regarding the circuits shown, equipping and any eventuality.
The application examples do not represent customer-specific solutions.
They are only intended to pro-vide support for typical applications. You
are responsible in ensuring that the de-scribed products are correctly
used. These application examples do not relieve you of the responsibility
in safely and professionally using, installing, operating and servicing
equipment. When using these application examples, you recognize that
Siemens 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 these application
examples and other Siemens publications - e.g. Catalogs - then the
contents of the other documents have priority.

Warranty, liability and support


We do not accept any liability for the information contained in this
document.
Any claims against us - based on whatever legal reason - resulting from the
use of the examples, information, programs, engineering and performance
data etc., described in this application example shall be excluded. Such an
exclusion shall not apply in the case of mandatory liability, e.g. under the
German Product Liability Act (Produkthaftungsgesetz), in case of intent,
gross negligence, or injury of life, body or health, guarantee for the quality
of a product, fraudulent concealment of a deficiency or breach of a
condition which goes to the root of the contract (wesentliche
Vertragspflichten). However, claims arising from a breach of a condition
which goes to the root of the contract shall be limited to the foreseeable
damage which is intrinsic to the contract, unless caused by intent or gross
negligence or based on mandatory liability for injury of life, body or health
The above provisions does not imply a change in the burden of proof to
your detriment.

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Note

Item-Number: 23942303

Copyright 2006 Siemens A&D. It is not permissible to transfer or


copy these application examples or excerpts of them without first
having prior authorization from Siemens A&D in writing.
For questions about this document please use the following e-mail address:
mailto:csweb@ad.siemens.de

V 1.0

Issue 2006.12.04

2/63

Foreword
Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

Foreword
Objective of the application
The SIMATIC Windows Automation Center (WinAC) offers you an open,
versatile and robust basis to realize your automation solution on a PCbased basis.
Its full compatibility with SIMATIC S7 combined with interfaces to the open
PC world enables you to combine your classic automation tasks with the
options of the PC world. Using the SIMATIC Microbox 420-RTX offers a
powerful and very robust platform for your automation solution with WinAC.

Two further examples are planned which are marked with a question mark
in the following diagram.
Arrangement of the examples
The automation tasks described in the examples are related to typical tasks
occurring in automation technology:

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Ten examples have been developed up to now for quick and easy
introduction in the PC-based automation with SIMATIC WinAC. These
examples include the sample code and detailed documentation. The
specific tasks discussed in these application examples will help you to
become familiar with the relevant subjects.

V 1.0

Control

Communication

Visualization

Technology

Issue 2006.12.04

3/63

Foreword
Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

The individual examples


To allow optimum use of PC-based automation, we have developed one
example from the classic PLC world, one from the open PC world and
one from the "embedded" world for each of the four typical automation
tasks (control, communication, visualization, technology).
The following figure shows all realized and planned examples with their
assignment to the particular fields of use. The example on the topic of
Automation by Means of SIMATIC Microbox 420-RTX is highlighted with a
red frame.
Figure 0-1

V 1.0

Examples from the


classic world
Examples from the
open world
Examples from the
embedded world

Examples on PC-based automation

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Controlling

Visualizing

Technology

Communication

Automating with
WinAC RTX

Interaction of WinCC
and WinAC

Positioning with
WinAC RTX

S7 communication with
WinAC RTX

Installing the PC
platform

Tuning for WinAC


RTX

Positioning with
Easy Motion Control

S7 communication
with BSEND/BRCV

Process interface
for WinAC RTX

Connecting WinCC
to WinAC RTX

Connecting a
MICROMASTER 440

via Industrial
Ethernet

Configuration of
WinAC

Visualizing with
WinCC

Communication:
WinAC S7-300

Data exchange via


OPC XML

Visualizing with Visual


Basic.NET + OPC XML

SIMATIC Vision Sensors snd WinAC ODK

Sending e-mails with


WinAC RTX

Dynamic recipe
data control

Access to OPC XML


via VB .NET

Configuration of the
Vision Sensor

Data exchange to
the database via
OPC XML

Setting up web server


with IIS

Application of the CCX


interface of
WinAC ODK

Application of the SMX


interface of
WinAC ODK

Local and remote


visualization

ADO.NET database
interface

d
Automating with
SIMATIC Microbox 420RTX

Visualizing with Visual


Basic .NET via
WinAC ODK

Basics for the


Microbox 420-RTX

Access to data in
data blocks of the
controller

Installing the
Microbox 420-RTX

h
Is planed

j
Is planned

WinAC ODK, SMX


used as interface

Remote Control
DiagMonitor

Sending e-mails
via MAPI

Communication Vision
Sensor with ODK

Issue 2006.12.04

4/63

Foreword
Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

Basis of the examples


The common basis of all examples is a virtual "mixing process". Using this
mixing process, the different tasks and automation components from the
product range of PC-based automation are applied.
Plant display
The following figure shows the system graph of the mixing process. The
red frame indicates the components described in this example.
Figure 0-2

System

Microbox 420-RTX
SIMATIC
WinAC RTX

WinCC

CP 5611

Easy Motion
Control

ET200S
Compact

SIMATIC NET

Database
(e.g. MS Access)

d
23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Visual Basic .NET


visualization
(local)

WinAC ODK

WinAC ODK

WinAC ODK

VB.NET
visualization

C++
E-Mail
application

C++
Control
program

Ethernet interface

Vision Sensor
SIMATIC VS 723

Visual Basic .NET


visualization
(remote)

Micromaster
with motor

SIMATIC S7-300
controller

Reference to Automation and Drives Service & Support


This entry is from the internet application portal of Automation and Drives
Service & Support. Clicking the link below directly displays the download
page of this document.
http://support.automation.siemens.com/WW/view/en/23942303

V 1.0

Issue 2006.12.04

5/63

Table of Contents
Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Table of Contents
1

Task.................................................................................................................. 7

2
2.1
2.2
2.3
2.4

Configuration of the Automation Solution ................................................... 8


Presentation of involved components ............................................................... 8
Required components....................................................................................... 8
Performance data ........................................................................................... 11
Customer benefit ............................................................................................ 11

3
3.1
3.2
3.3

Description of the Microbox 420-RTX ......................................................... 12


Functional basic data of the SIMATIC Microbox 420-RTX ............................. 12
Particularities of the Microbox 420-RTX ......................................................... 13
The Enhanced Write Filter............................................................................ 16

4
4.1
4.2
4.3
4.4
4.5
4.6

Setting up the Microbox 420-RTX ............................................................... 19


Requirements ................................................................................................. 19
Preparatory configuration ............................................................................... 20
Installing the example program....................................................................... 29
Startup characteristics of WinAC RTX............................................................ 32
Operating WinAC RTX.................................................................................... 35
Setting the retentivity of WinAC RTX .............................................................. 36

5
5.1
5.2
5.3
5.4
5.5

Remote Control............................................................................................. 39
Remote Desktop ............................................................................................. 40
Using Remote Desktop for remote control...................................................... 40
Virtual Network Computing (VNC) .................................................................. 43
Using VNC for remote control ......................................................................... 46
Remote Desktop vs. VNC............................................................................... 49

6
6.1
6.2
6.3
6.4

DiagMonitor................................................................................................... 50
Installing DiagMonitor ..................................................................................... 50
Configuring WinAC for data transmission ....................................................... 50
Configuring DiagMonitor for data transmission............................................... 51
Simulating an alarm in DiagMonitor................................................................ 55

Operating the Example Program ................................................................. 58

Restoring the System................................................................................... 61

Bibliographic References ............................................................................ 63

V 1.0

Issue 2006.12.04

6/63

Task
Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

Task

Task specification/ overview

Commissioning of the Microbox 420-RTX

Installation of hardware and software

Configuration of WinAC RTX for retentive data

Remote Control

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

The present example describes the SIMATIC Microbox 420-RTX which is


referred to in the following as Microbox 420-RTX. Moreover, basic data of
the Microbox 420-RTX are explained. The procedure for installation and
commissioning is described in detail by means of an automation task.

Remote Desktop

Virtual Network Computing (VNC)

DiagMonitor

Installation & configuration

Data transmission in WinAC

Restoring the system by means of restore CD

Principle view of the automation solution


The following figure shows the interaction of the automation components,
which are described in this example in principle.
Figure 1-1

WinAC Station (Microbox 420-RTX)


WinAC RTX

Periphery
ET 200S
IM151-1

CP 5611

I/Os

Programcycle OB 1

PROFIBUS DP (PB)

V 1.0

Issue 2006.12.04

7/63

Configuration of the Automation Solution


Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

Configuration of the Automation Solution


The hardware structure of the automation solution is described in this
chapter. The respectively required hardware and software components are
listed in a table in chapter 2.2 Required components.

2.1

Presentation of involved components


The following figure shows the hardware setup of the sample application
and the standard and user software components involved.
Figure 2-1

Periphery
ET 200S, IM151-1
16 DI / 16 DO

23942303

PG/PC
STEP 7

2.2

Industrial Ethernet

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

WinAC Station (Microbox 420-RTX)


WinAC RTX (+ SIMATIC NET)
CP5611

PROFIBUS

Required components
The hardware and software components for the different stations are listed
in the following tables.

Hardware components
The components listed below can be ordered directly in the Siemens A&D
Mall at https://mall.automation.siemens.com.

V 1.0

Issue 2006.12.04

8/63

Configuration of the Automation Solution


Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

Please refer to the indicated FAQs on the A&D Support Homepage at


http://support.automation.siemens.com (please enter the FAQ ID into the
search field).
Table 2-1

No.

MLFB / order number

Note

SIMATIC Microbox 420RTX 1 GB compact flash


card

6ES7675-1BB30-0PA0

SIMATIC S7-300, PS 307


power supply

6ES7307-1BA00-0AA0

USB keyboard

Standard PC
keyboard

USB mouse

Standard PC
mouse

Monitor

With DVI interface


if possible

Graphics adapter DVI to


VGA

Only required if
your monitor is not
equipped with a
DVI interface

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Component

For the Microbox


420-RTX, a
suitable connector
is required.

I/O hardware components


Table 2-2

Component

No.

MLFB / order number

Connection for ET200 S


Compact
IM151-1 Compact

6ES7 151-1CA00-3BL0

Mounting rail L=480mm

6ES7 390-1AE80-0AA0

Note

Hardware components for the PG/PC


Table 2-3

Component

V 1.0

No.

MLFB / order number

Programming device
Field PG with Pentium 4

6ES7711-2EA21-3LB4

Crossed Ethernet cable


0.5m (cross cable)

6XV1850-2HE50

MPI cable

6ES7901-0BF00-0AA0

Issue 2006.12.04

Note
Configuration
Editor: See FAQ ID
17128155

9/63

Configuration of the Automation Solution


Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

Software components of the Microbox 420-RTX


Table 2-4

No.

MLFB / order number

Note

Windows XP Embedded
Service Pack 2

Pre-installed and
licensed

SIMATIC WinAC RTX


2005 SP1

Pre-installed and
licensed

Restore CD for SIMATIC


Microbox 420-RTX

Optional;
can be ordered
free of charge at
A&D Service &
Support

VNC Server Free Edition


V4.1.2

Optional;
available for
download on the
Internet
at RealVNC Ltd.

DiagMonitor 3.0

6ES7648-6CA03-0YX0

Software components of the PG/PC


23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Component

Table 2-5

Component

No.

STEP 7 V5.4

VNC Viewer Free Edition


V4.1.2

MLFB / order number

Note

6ES7 810-4CC07-0YA5
Optional;
available for
download on the
Internet
at RealVNC Ltd.

Example project
This application consists of the components listed in the following table.
These components are part of the present application example (available
for download on the Internet).
For further information on the commissioning of hardware and software,
refer to chapter 5 "Setting up the Microbox 420-RTX.
Table 2-6

Component

V 1.0

23942303_WinAC_SE_CODE_v10.zip

Note
This ZIP file contains:
A complete STEP 7 project for
controlling a virtual mixing process

23942303_WinAC_SE_DOKU_v10_e.pdf

This document

Issue 2006.12.04

10/63

Configuration of the Automation Solution


Automation by Means of SIMATIC Microbox 420-RTX

2.3

Item-Number: 23942303

Performance data
For performance data on WinAC RTX, please refer to the application
Automation with WinAC RTX or to the manual. Both entries can be
downloaded from the A&D Service and Support portal on the Internet.

2.4

Customer benefit

Customer benefit of this application

Rapid familiarization with contexts concerning automation with WinAC


RTX and the Microbox 420-RTX
You can get to know very quickly the particularities of the Microbox 420RTX
Support for hardware configuration by means of the example

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Customer benefit of the Microbox 420-RTX

regarding EMC

regarding temperature conditions

regarding shocks and vibrations

Embedded system: Access protection against system modifications by


viruses or unauthorized access

Maintenance-free since available without mechanically moved parts

Easy mounting (mounted onto the wall or onto a top hat rail)

Expandable by open interfaces (PROFIBUS, PC/104, USB, Ethernet)

Control of the Microbox 420-RTX without connected I/O devices

Routing via subnet limits towards S7 stations

Integrated system diagnostics

V 1.0

Very robust, thus also appropriate for harsh industrial environment

Programming errors

Memory errors

Module failure

Channel errors

Programming and configuration with SIMATIC STEP 7 Existing knowhow as well as all S7 programming languages can be used.

Issue 2006.12.04

11/63

Description of the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

Description of the Microbox 420-RTX

3.1

Functional basic data of the SIMATIC Microbox 420-RTX


The following table shows some basic data of the Microbox 420-RTX (as of:
Summer 2006). For the latest basic data, refer to the Configuration Editor of
the Microbox 420-RTX in the A&D Mall.
Table 3-1

Available version

Processor

3 different processors:
Intel Celeron 400 MHz
Intel Celeron 650 MHz
Intel Pentium III 933 MHz

Main memory

from 128 MB up to 512 MB

Drives

40 GB hard disk or
256 MB up to 1 GB compact flash

Operating system

Windows XP Professional or
Windows XP Embedded SP2
pre-installed
RMOS3 V3.30
Other operating systems are possible.

Software

Temperature range

0 to + 45 / + 50 C (when using
compact flash memory cards;
depending on installation position)

Expandability

Up to 3 PC/104 (Plus) modules


Expandability via USB interfaces

Interfaces

4 x USB
1 x RS 232 (serial)
DVI-I (DVI digital or VGA
analog)
2 x 10/100 Mbit Ethernet
1 x PROFIBUS DP 12 MHz
(optional)
Profibus DP
Other field buses upon request

Power supply

24 V DC voltage

Graphics

Integrated, up to 1600 * 1200


pixels, depending on monitor / LC
display

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Characteristics

V 1.0

Issue 2006.12.04

WinAC RTX 2005 SP1


Softnet PG
SIMATIC NET OPC

12/63

Description of the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX

Buffer memory

128-KByte battery-buffered SRAM


of which 25 Kbytes can be used for
retentivity without UPS

The configuration used in the present application (SIMATIC Microbox


420-RTX) is highlighted in bold type.

Note

3.2

Item-Number: 23942303

Particularities of the Microbox 420-RTX

Outstanding features

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

The SIMATIC Microbox 420-RTX excels in the following characteristics:

High ruggedness

Data retentivity

Compact design

Free of maintenance

Latest technology

Real-time capability

Protective mechanism for compact flash memory cards

Readily pre-installed for control tasks with WinAC RTX

Ruggedness
The device is highly EMC-proof due to an all-metal housing and a potentialisolated power supply.
Furthermore, the thermal load of the Microbox 420-RTX is reduced by
means of a large heat dissipator and low supply voltage of the
semiconductor components.
The mechanically stable structure and missing of mechanically moved parts
(when using a compact flash memory card) ensure resistance of the
Microbox 420-RTX against shocks and vibrations.
Data retentivity: Basics
Data retentivity means that the current values of variables in the controller
(e.g. process values) are maintained even after a voltage drop during a
warm start. Examples for retentive variables:

Flag

Counter

Times

Data blocks

During a cold start, all variables are deleted.

V 1.0

Issue 2006.12.04

13/63

Description of the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

Which variables are retentive can be configured in STEP 7. Please refer to


the SIMATIC Microbox 420-RTX Manual for the corresponding quantity
frameworks.
Retentivity types for the SIMATIC Microbox 420-RTX
The SIMATIC Microbox 420-RTX offers two versions for retentive data
backup.
It is possible either to store the data in the file system (i.e. on hard disk or
on a compact flash memory card) or to store them in a non-volatile memory
area. For Microbox 420-RTX, this is a battery-buffered static RAM (SRAM).
How to determine the storage type will be explained in a later chapter.

If you decided to store the data in the file system, the retentive data are
stored in a file at the RUN STOP transition. At the STOP RUN transition
with warm start, the retentive data are restored from this file.
In case of a power failure, the data are not stored. If nevertheless data
retentivity is required, an uninterruptible power supply (UPS) has to be
interconnected.
Advantages:
23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Retentivity by means of the file system

No buffer battery required

Quantity frameworks for retentive data are only limited by the size of
the hard disk / compact flash memory card

Disadvantages:

No data retentivity in case of power failure (or: UPS required)

No data retentivity in case of blue screen (Windows system failure)

Retentivity by means of SRAM


If you decided to store the data in the SRAM, the retentive data are stored
in a specifically provided memory area at the RUN STOP transition. At
the STOP RUN transition with warm start, the retentive data are restored
from there. This also works in case of a power failure.
Advantages:

Retentivity even in case of power failure

No UPS required

Data retentivity even in case of blue screen (Windows system


failure)

Disadvantages:

V 1.0

The amount of retentive data is limited to 25KB

Buffer battery required

Issue 2006.12.04

14/63

Description of the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

Maintenance-free
If a hard disk can be renounced, no movable parts requiring maintenance
are contained in the Microbox 420-RTX. Only the battery has to be
replaced.
Latest technology
Retentive data can be stored in an integrated buffered SRAM. This can be
made either cyclically or after detecting the mains failure signal. If retentive
data are to be stored, a buffer battery is required.
Using the DVI-I interface makes sure that you can connect even future
generations of displays without any problems.
Real-time capability: Definition

Example 1: The system responds to a process alarm after x milliseconds at


the latest.
23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Real-time capability is the property of a system allowing to respond to a


coming event within a defined period of time. The duration is irrelevant, but
it must not exceed the defined maximum duration.

Example 2: Independent of the CPU utilization, a defined function is


executed deterministically in a fixed time pattern.
Real-time capability of the SIMATIC Microbox 420-RTX
Real-time capability of the Microbox 420-RTX can be established by the
following characteristics:

Use of real-time capable operating systems


Using the RMOS real-time operating system by Siemens or other
project-specific operating systems

Targeted reservation of system resources


Own PCI Interrupts are reserved for Ethernet and PROFIBUS.

Protective mechanism for compact flash memory cards


For protection against unauthorized modifications of the system, the
Microbox 420-RTX offers the possibility of providing drives with a write
protection. This is possible by means of the so-called "Enhanced Write
Filter" which is described in detail in the following chapter.
Readily pre-installed for control tasks with WinAC RTX
The SIMATIC Microbox 420-RTX is delivered ready to be switched on. Both
the operating system Windows XP Embedded SP2 and WinAC RTX 2005
SP1 are installed and pre-configured. The Microbox 420-RTX can be put
into operation very quickly.

V 1.0

Issue 2006.12.04

15/63

Description of the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX

3.3

Item-Number: 23942303

The Enhanced Write Filter


The Enhanced Write Filter (EWF) is a procedure allowing to redirect write
processes onto a data carrier in a specific area (overlay). Thus, the data
carrier is protected against write access. The EWF is a component of
Microsoft Windows XP Embedded.

The data carrier is protected against write access.

Write processes are redirected to a specific area (overlay).

Write processes explicitly can be stored permanently.

The modifications can be cancelled by switching off the Microbox 420RTX.

No unwanted modifications of system data or applications

Protection against unwanted computer viruses

In this application example, the EWF is only described in its RAM (Reg)
mode. For further information on the EWF, refer to the following entry ID:
20012701 and to Microsoft Support.

Note
23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Characteristics with the EWF being activated

EWF in RAM (Reg) mode

EWF settings are stored in the registry.

Overlay is set up in the RAM and will be lost after restart.

The division of the storage medium into partitions is independent of the


EWF.

The EWF settings of the loaded operating system apply.

Protective mechanism for compact flash memory cards


For compact flash memory cards, the manufacturer guarantees a limited
number of write and delete cycles. If this number is exceeded, the
functioning of the memory is no longer guaranteed. Therefore, it is
recommended to reduce write and delete cycles on the memory card to the
minimum.

V 1.0

Issue 2006.12.04

16/63

Description of the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX

Note

Item-Number: 23942303

The EWF of Windows XP SP2 Embedded of the Microbox 420-RTX is


deactivated by default. Activate the EWF after having set up the Microbox
420-RTX.
If the EWF is activated, the station is locked in the Station Configuration
Editor. To cancel a locking of the station, deactivate the EWF and release
the station manually in the Station Configuration Editor.

Recommended settings of the Enhanced Write Filter

In the course of this document, it is assumed that recommended settings of


the EWF have been made.
Note
23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

In delivery state, the compact flash memory card of the Microbox 420-RTX
is divided into two partitions: A system partition "C:\" and an extended
partition "D:\". Activate the EWF for the "C:\" partition while using the "D:\"
partition for permanent storage of data.

If you want to activate the EWF also for partition "D:\", observe the
activation order. First activate the EWF for partition "D:\" and then for
partition "C:\". For deactivation, proceed in the reverse order.
The reason for this is that the EWF settings are stored in the registry. If
the registry is located on partition "C:\", the EWF must be deactivated for
partition "C:\" first.

Commands of the EWF


You can enter commands for the EWF by means of the command prompt.
The command syntax of the EWF is "ewfmgr [<drive letter> ] [Options]",
e.g. "ewfmgr c: -enable". In the following, some commands are described in
a table.
Table 3-2

Function

V 1.0

Command

Disable the write protection of drive C:


and apply the modified data and
programs.

ewfmgr c: -commitanddisable

Enable the write protection of drive C: .

ewfmgr c: -enable

Display information on the EWF drive.


This command indicates whether the
EWF is currently enabled.

ewfmgr c:

Display help

ewfmgr -help

Issue 2006.12.04

17/63

Description of the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX

Note

Item-Number: 23942303

The "ewfmgr c: -disable" command does not work for the EWF in RAM
(Reg) mode. Please use the "ewfmgr c: -commitanddisable" command to
disable the EWF.

Writing data and programs onto the memory card


Proceed as follows to permanently store files or programs on drive C: of a
compact flash card:
Table 3-3

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Step

Procedure

Command

1.

Open a DOS command prompt.

START Run...
Enter "cmd" and click "OK" to
confirm.

2.

Disable the Enhanced Write


Filter.

ewfmgr c: -commitanddisable

3.

Reboot the Microbox 420-RTX.

START Shut Down ... Restart


Click "OK" to confirm.

4.

Write your data on C: or install


your software on C:

User-specific

5.

After having completed step 4,


enable the Enhanced Write
Filter to protect your compact
flash cards. For this, open a
DOS command prompt as
described in step 1.

ewfmgr c: -enable

6.

Reboot the Microbox 420-RTX.

START Shut Down ... Restart


Click "OK" to confirm.

Now, the installed software or files are permanently stored on drive C:.
Further information on the EWF
For further information, refer to chapter 9.2 of the manual.
Link: http://support.automation.siemens.com/WW/view/en/22044587
Regarding the EWF, an FAQ with the number 20012701 exists.
Link: http://support.automation.siemens.com/WW/view/en/20012701

V 1.0

Issue 2006.12.04

18/63

Setting up the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

Setting up the Microbox 420-RTX


This chapter describes

4.1

how to install software on the Microbox 420-RTX,

different possibilities of transmitting data to the Microbox 420-RTX,

how to install application software components.

Requirements

The Microbox 420-RTX is connected to the power supply according to


the manual instructions.

The Ethernet interface 2 of the Microbox 420-RTX is connected to the


Ethernet interface of your PG by means of a crossed Ethernet cable.

The Microbox 420-RTX has not been modified yet.

You dispose of the required software including all licenses.

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

The following requirements must be fulfilled for all descriptions in this


chapter:

V 1.0

Issue 2006.12.04

19/63

Setting up the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX

4.2

Item-Number: 23942303

Preparatory configuration

General information
The SIMATIC Microbox 420-RTX used in this application has been preinstalled in the factory and is ready to be put into operation. The following
software is already installed in the 1GB compact flash memory card of the
Microbox 420-RTX.

Operating system: Windows XP Embedded SP2

WinAC RTX 2005 SP1

SIMATIC SOFTNET PG

SIMATIC SOM V3.0.2

For optimizing the performance, exclusive interrupts are configured.


Make sure that these settings are configured in the BIOS in such a way
as it is described under the entry ID 23421328.

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Note

Software installation
Required software is installed by the user. There are the following options
for installation:

Connection of a USB mass storage device (CD/DVD drive, USB hard


disk, USB memory stick) via the USB interface

Data transmission via a TCP/IP connection (shared resources in the


network, e.g. drives, directories etc.)

As the first option requires additional hardware, the second option is


described in this document.
Disabling the Enhanced Write Filter of the Microbox 420-RTX
In this chapter, several configurations are executed in the Microbox 420RTX. To ensure that these configurations are effective even after a restart,
the EWF has to be disabled. The EWF can be disabled in a DOS command
prompt by means of the command "ewfmgr c: -commitanddisable".
Adapting the IP addresses
Use shared resources in the network to transmit data and/or to install
programs. For this purpose, the Microbox 420-RTX must be able to access
the network.

V 1.0

Issue 2006.12.04

20/63

Setting up the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

In the following, you will learn how to connect the Microbox 420-RTX to
another computer by means of a crossed Ethernet cable and how to use
the shared resources of both computers. Adapt the IP address of both
computers for this connection.
In the delivery state, the Ethernet interfaces of the Microbox 420-RTX are
configured as follows:

Ethernet 1
IP address: 192.168.1.1

Subnet mask: 255.255.255.0

Ethernet 2

IP address: 192.168.1.2

Subnet mask: 255.255.255.0

Adapt the IP address of the respective Ethernet interface on the PG to the


configuration of the Microbox 420-RTX. To do this, please follow the steps
below:
Table 4-1
23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

V 1.0

No.

Instructions

On your PG, open the "Properties" dialog of the LAN connection used by
you via:
"Start Settings Network and dialup connections" (under Windows XP:
"Network connections"). Right-click the LAN connection to call the context
menu and select the menu option "Properties".

In the list, select the "Internet


Protocol (TCP/IP)" entry and
click the "Properties" button.

Issue 2006.12.04

21/63

Setting up the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX
Instructions

Select the "Use the following


IP address" option.

Enter the IP address "192.168.1.3" and the subnet mask "255.255.255.0.


The fields for the standard gateway and the DNS servers remain empty.
Note: Basically, you have free choice regarding the IP addresses.
Nevertheless, the addresses must be different and must differ in the last
figure only. Moreover, the IP addresses you selected must be unique in the
connected network.
If you operate your PG on an intranet, you finally have to cancel the PG
settings mentioned above.

Confirm the opened dialogs with "OK".

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

No.

Item-Number: 23942303

Enabling a CD-ROM drive on the PG


For installation, insert the CD into the CD-ROM drive of your PG. To be
able to access it from the Microbox 420-RTX, the drive has to be enabled.
To do this, proceed as follows:
Table 4-2

No.

V 1.0

Instructions

Open an Explorer window on the PG and select the CD-ROM drive.

Right-click the CD-ROM drive and select the "Sharing" menu item.

Issue 2006.12.04

22/63

Setting up the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

No.

V 1.0

Item-Number: 23942303

Instructions

The "Sharing" dialog opens. Select


"Share this folder" and enter "CDROM" as share name.

Click "Permissions". A new dialog


opens. This dialog lists the users
having access to this resource.
Click the "Add" button.

In the new dialog, enter into the


lower field your domain, a
backslash and your user name.
Click Check Names. If your user
name has been recognized, leave
the dialog by clicking "OK". You are
now enabled to access the CDROM drive from the Microbox 420RTX.

Issue 2006.12.04

23/63

Setting up the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

Enabling a directory on the PG


To exchange any files between the Microbox 420-RTX and the PG, a
directory on the PG can be enabled. To do this, proceed as follows:
Table 4-3

No.

Instructions

Open an Explorer window on the PG and create a directory called


"Transfer" under C:\.

Enable this directory. For this, proceed as described above for enabling a
CD-ROM drive. Nevertheless, choose "Transfer" as share name.

Using shared resources

Table 4-4

No.
7.

Instructions
Search for the computer the shared resources of which you want to use.

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

There are several options of finding and using shared resources in a


network. Here, one option is described in detail.

V 1.0

Issue 2006.12.04

24/63

Setting up the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

No.

V 1.0

Item-Number: 23942303

Instructions

8.

In the next window, click "Computers or people".

9.

Then, click "A computer on the network".

Issue 2006.12.04

25/63

Setting up the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX
No.

Instructions
Enter the IP address of the computer and click "Search".

If the name of the computer is unique in the network, you can also enter
the name of the computer.
11.

After a while, you can see the computer in the result list.

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

10.

Item-Number: 23942303

V 1.0

Issue 2006.12.04

26/63

Setting up the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX
No.

Instructions
Double-click to open the computer. Now, you can see its shared
resources. You might be prompted to enter the user name and
password. In this case, enter the data of the user (possibly with domain,
e.g. "myDomain\me") who may share the resources.

12.

Transmitting the license key for WinAC RTX


23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Item-Number: 23942303

WinAC RTX is already licensed on the Microbox 420-RTX. The following


section exemplarily describes how to transmit licenses.
As the Microbox 420-RTX is not equipped with a floppy drive, the license
key is transmitted via the PG.
Table 4-5:

No.

V 1.0

Instructions

1.

Insert the WinAC authorization disk into the drive of your PG.
Start the Automation License Manager on the PG via
"START SIMATIC License Management Automation License
Manager" and transfer the license to drive C: of your PG.

2.

To transfer the license from the PG


to the Microbox 420-RTX, you have
to permit this in the License
Manager of the PG. To do this,
select in the License Manager of the
PG the menu items File Settings.
Remove the checkmark for "Forbid
license keys transfer from local
computer".
Quit the dialog with "OK".

Issue 2006.12.04

27/63

Setting up the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

No.

Note

V 1.0

Item-Number: 23942303

Instructions

3.

Start the Automation License


Manager of the Microbox 420-RTX.
Select "Edit" "Connect computer".
A new window opens. Please enter
the name of the PG twice.
Quit the dialog with "OK".

4.

Now, your PG is indicated in the left


column of the Automation License
Manager. Select the PG and select
the C: drive of the PG. Now, you can
see the WinAC RTX license stored
on your PG in the window on the
right. Transfer it to the C: drive of
your Microbox 420-RTX.

5.

Now, WinAC RTX is licensed on


your Microbox 420-RTX.

6.

Go to the Automation License


Manager of your PG and restore the
setting changed in step 2.

Alternatively, you can transfer the license keys to the Microbox 420-RTX
by means of USB memory sticks.

Issue 2006.12.04

28/63

Setting up the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX

4.3

Item-Number: 23942303

Installing the example program


In this chapter, you will learn how to install the example program.

Configuring the Station Configuration Editor


The configuration of the WinAC station with the Station Configuration Editor
corresponds to plugging S7-400 hardware components to a rack. Here,
components from the PC station (hardware and software components) are
in software technology terms allocated to a virtual slot.
Table 4-6

Instructions

1.

Start the Station Configuration Editor of the Microbox 420-RTX via "START
Station Configuration Editor".

2.

Click the "Station name" button. In


the new dialog, enter the name
"PCWinAC". This name is
configured as station name in the
STEP 7 project.
Exit the dialog by clicking "OK".

3.

Right-click an empty line and


select the "Add" menu item.

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

No.

V 1.0

Issue 2006.12.04

29/63

Setting up the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

No.

Item-Number: 23942303

Instructions

4.

Select "IE General" and the


Ethernet interface by means of
which the connection to the PG
shall be established. In this
application example, the Ethernet
interface of the Microbox 420-RTX
is used with IP: 192.168.1.2 . Click
"OK".
Note: The IP address 192.168.1.2
is configured in the STEP 7 project
for the application example. If you
use another IP address, the IP
address has to be changed in the
STEP 7 project.

5.

In the next window, you can see


the properties of the "IE General"
component. Confirm with "OK".

6.

Exit the Station Configuration Editor by clicking "OK".

7.

Start WinLC RTX on the Microbox 420-RTX via the "Start SIMATIC
PC Based Control WinLC RTX menu command.
Alternatively, you can double-click the following desktop icon:

Loading the STEP 7 project


The STEP 7 project is available in archived form. It has to be loaded into
WinAC RTX of the Microbox 420-RTX.
Note

If you are working with an older STEP 7 version, the hardware catalog
must be updated. WinAC V 4.2 must be contained.
For updating, select the "Tools Update Catalog menu item in "HW
Config".

V 1.0

Issue 2006.12.04

30/63

Setting up the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

Table 4-7

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

No.

V 1.0

Instructions

In the previously extracted "S7Proj folder of this application, you will find
the 23942303_WinAC_SE_CODE_v10.zip file. This is the archived STEP
7 project.
Open STEP 7 and retrieve this archive via "File Retrieve". Open the
project.

Connect the Microbox 420-RTX and the PG to a network (e.g. connect


both devices by means of a crossed cable and adapt the IP addresses).

Set the PG/PC interface of your


PG to TCP/IP(Ethernet).

Load the project from STEP 7 into the WinAC on the Microbox 420-RTX.

Issue 2006.12.04

31/63

Setting up the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX

4.4

Item-Number: 23942303

Startup characteristics of WinAC RTX


After having loaded your STEP 7 project, you can now define the startup
characteristics of WinAC RTX.

Note

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Two properties have to be considered for setting the "startup


characteristics".

The startup characteristics (e.g. warm start, cold start) of WinAC RTX
which are defined in the hardware configuration of the STEP 7 project
Here, the same settings have to be made as for other SIMATIC S7
CPUs.

Automatic start of the WinAC RTX controller on a computer (e.g. on the


Microbox 420-RTX) For this, the functions "Register Controller for Start
at PC Boot" and "Autostart" are available in the "CPU" menu.

After restarting the Microbox 420-RTX, the WinAC RTX controller is


started only as soon as the first user has logged in (provided that the
WinAC RTX controller is registered for start at PC boot). Automatic login
of a user at the Microbox 420-RTX ensures that the WinAC RTX
controller is started at the boot-up of the Microbox 420-RTX.

Starting the controller at PC boot


If you want the WinLC RTX controller to start automatically after the
computer has booted up, proceed as follows:
Table 4-8

No.

Instructions

1.

Shut down the controller by means of the "CPU Shut Down


Controller" menu command.

2.

Register the controller for automatic startup by means of the "CPU


Register Controller for Start at PC Boot menu command.
Note: To cancel the automatic startup, use the "CPU Unregister
Controller for Start at PC Boot menu command.

3.

V 1.0

Start the controller by means of the "CPU Start Controller" menu


command.

Issue 2006.12.04

32/63

Setting up the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

If you cannot find the "Register Controller for Start at PC Boot" menu
element in the "CPU" menu (not even as grayed menu element), the
controller is already registered for starting at PC boot. In this case, the
"Unregister Controller for Start at PC Boot" menu element is available (if
the controller is started, it is grayed). In the delivery state of the Microbox
420-RTX, the WinAC RTX controller is already registered for starting at
PC boot.

Note

Enabling the Autostart function


By enabling the "Autostart" function, WinAC RTX starts in the same mode
as it was before shutting down the controller. This also applies to a restart
or resetting of the Microbox 420-RTX.
23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

After a restart or after a power failure of the Microbox 420-RTX, WinAC


RTX is started automatically and goes to "STOP" mode, even if "RUN"
mode had been set before.
If you want to set up the WinLC RTX controller in such a way that after a
restart of the Microbox 420-RTX it starts up in the same mode as before,
you have to enable the "Autostart" function additionally.

This means:

If the controller was in "RUN" mode before shut-down, it will start up in


"RUN" mode.

If the controller was in "STOP" mode before shut-down, it will start up in


"STOP" mode.

Proceed as described in the table below to enable the Autostart function:


Table 4-9

No.

V 1.0

Instructions

1.

Open the "Options" dialog by means of the WinAC RTX menu command
"CPU Tools Options.

2.

Select the "Autostart CPU"


option as startup mode.
Click OK to close the dialog.

3.

The Autostart function is now enabled.

Issue 2006.12.04

33/63

Setting up the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX

Note

Item-Number: 23942303

If the "Autostart" function is not enabled, the WinAC RTX controller is


always set to "STOP" mode after starting the Microbox 420-RTX. In the
delivery state of the Microbox 420-RTX, the "Autostart" function is not
enabled.

Automatic login to the Microbox 420-RTX


The WinAC RTX controller only starts up when the first user logs in to the
Microbox 420-RTX. To ensure that the controller starts automatically even
after a power failure, enable the automatic login to the Microbox 420-RTX.

Automatic login to a computer is only possible with computers which do


not belong to a domain, but to a task group.
Moreover, automatic login involves the risk that anyone can access the
computer.

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Note

For further information on how to enable the automatic login to the


Microbox 420-RTX, refer to the following entry ID: 23598260 in Product
Support.

V 1.0

Issue 2006.12.04

34/63

Setting up the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX

4.5

Item-Number: 23942303

Operating WinAC RTX


This section provides a brief overview of the use of WinAC RTX. Only the
functions which are absolutely necessary are explained in the following. It is
recommended to read the SIMATIC WinAC RTX manual for the use of
WinAC RTX.

Starting WinAC RTX


WinLC RTX is started via: Start Simatic PC Based Control WinLC
RTX. Thus, the operator panel of the controller is started simultaneously.
WinAC RTX icons on the Windows task bar
If WinAC RTX is started, you can see one of the following icons on the task
bar:
Table 4-10

Meaning
WinAC is started
WinAC is in "STOP" mode

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Icon

WinAC is in "RUN" mode

Operating WinAC RTX


The buttons of the WinLC RTX operator panel are explained in the
following table.
Table 4-11

Button

Function
Setting the RUN mode
Setting the STOP mode
A memory reset of the controller is performed.

Shutting down WinAC RTX


The controller is not shut down by shutting down the control panel (the
symbol is still in the task bar). The following instructions are intended for
information purposes only. Using this application absolutely requires that
WinAC RTX is started and is in "RUN" mode.
To shut down the process control, proceed as follows:
Table 4-12

No.
1

V 1.0

Instructions
Open the WinLC RTX control panel by double-clicking
.
Select CPU Shut down Controller in the menu.

Confirm the dialog by clicking Yes to terminate the process control.

Issue 2006.12.04

35/63

Setting up the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX

4.6

Item-Number: 23942303

Setting the retentivity of WinAC RTX


In the following, you will find information on how to configure WinAC RTX
so that data are stored in case operation is interrupted and so that the data
can be used after the interruption.

WinAC Data Storage Tool

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

In the delivery state, it is pre-configured that the data are stored in the data
carrier. Modify the retentivity settings by means of the WinAC Data Storage
Tool. To do this, follow the instructions below.

V 1.0

Issue 2006.12.04

36/63

Setting up the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

Table 4-13

No.

Shut down the WinAC controller.

Confirm the displayed query with "Yes".


Note: The controller is shut down and control is terminated.

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

1.

Instructions

2.

V 1.0

Start the WinAC Data Storage Tool.

Issue 2006.12.04

37/63

Setting up the Microbox 420-RTX


Automation by Means of SIMATIC Microbox 420-RTX
No.

Instructions
Make your settings in the window being displayed.

Note: The two storage modes are explained above (see Chap. 3.2)
Click "OK".
23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

3.

Item-Number: 23942303

4.

Note

V 1.0

Start the WinAC controller (menu as in figure for step 1).

For further information on how to configure the retentivity in the STEP 7


project, refer to the following entry ID: 598803

Issue 2006.12.04

38/63

Remote Control
Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

Remote Control
This chapter presents the remote control technology of a remote computer
via a TCP/IP connection. Moreover, Remote Desktop by Microsoft and
Virtual Network Computing (VNC) by RealVNC are described briefly and
advantages as well as disadvantages are presented.

General information on remote control of a PC via a TCP/IP connection


If two computers are connected via a TCP/IP connection, one computer
can be controlled by the other one.
Figure 5-1

Local computer
(e.g. PG/PC)

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Remote computer
(e.g. Microbox 420-RTX)

TCP/IP connection
(e.g. Industrial Ethernet)

Characteristics of a remote connection

The screen contents of the remote computer are shown on the screen
of the local computer.

Inputs of keyboard and mouse of the local computer are sent to the
remote computer.

Tools for remote connections

V 1.0

Remote Desktop

by Microsoft Corporation

integrated in Windows XP

VNC

by RealVNC Ltd.

platform-independent (e.g. Unix)

Issue 2006.12.04

39/63

Remote Control
Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

Further commercial and non-commercial tools

In the following, Remote Desktop and VNC are described in detail.

5.1

Remote Desktop

What is Remote Desktop?


Remote Desktop is a functionality of Microsoft Windows XP. Remote
Desktop allows users to login from one PC (e.g. a programming device)
onto another PC (e.g. a Microbox 420-RTX). On the PG, the screen
contents of the Microbox 420-RTX can be displayed and the Microbox 420RTX can be controlled remotely with the input devices connected to the
PG, such as e.g. keyboard and mouse. The devices are connected via a
TCP/IP connection.

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Figure 5-2

Using Remote Desktop for the Microbox 420-RTX

5.2

Operating the Microbox 420-RTX without keyboard, mouse or monitor

Controlling the Microbox 420-RTX from a remote place

Using Remote Desktop for remote control


Remote Desktop can be used for remote control of the Microbox 420-RTX.
Moreover, this chapter describes how to set up a remote connection with
Remote Desktop.

Settings of the Microbox 420-RTX


In the following, you will learn how to create a new user account for a
remote connection.

Note

V 1.0

If you want to use an existing user account, please observe the


requirements described below.

Password-protected user account on the Microbox 420-RTX

User is administrator and/or Remote Desktop user

Issue 2006.12.04

40/63

Remote Control
Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

Table 5-1

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

No.

V 1.0

Instructions

1.

Open the user administration via "START -> Run" and enter
"compmgmt.msc". The Computer Management opens.
Alternatively, you can open the Computer Management by means of the
menu control via "Start -> Settings -> Control Panel -> Administrative
Tools -> Computer Management.

2.

Go to the local users and create a


new user.

3.

Name this user "Remote User" and


assign the password "Remote".
Set the options as shown in the
figure on the right.
Click the "Create" button.

4.

Assign administrator rights to the


new user (double-click "Remote
User").
In the "Remote User Properties"
dialog that opens, set the
"Administrators" membership for
the user.
Quit the dialog with "OK". Now, the
"Remote User" is administrator for
the Microbox 420-RTX.

Issue 2006.12.04

41/63

Remote Control
Automation by Means of SIMATIC Microbox 420-RTX
No.

Instructions
Make sure that a Remote Desktop
connection is enabled on the
Microbox 420-RTX. To do this,
open the control panel (icon:
"System") from the Control Panel
and in the "System Properties"
dialog select the "Remote" tab.
Make sure a checkmark is set for
Remote Desktop ("Allow users to
connect remotely to this
computer").

Thus, all necessary settings have been made on your Microbox 420-RTX.
Establishing the Remote Desktop connection from the PG
From your PG, you can connect to the Microbox 420-RTX via Remote
Desktop as follows:

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

5.

Item-Number: 23942303

Table 5-2

No.

V 1.0

Instructions

1.

Start Remote Desktop via "START Accessories Communication


Remote Desktop Connection.
Note:
If you cannot find the "Remote Desktop Connection" menu item, you
have to install this additional function subsequently.
For this, insert the "Windows XP Professional Edition" installation CD into
the drive and start the setup.
Select the "Perform additional tasks" installation item. In the next dialog,
select "Set up Remote Desktop Connection" and follow the instructions.
After installation, you will find the menu item as described in step 1.

2.

The "Remote Desktop Connection" window opens. Enter the computer


name (or IP address) of your Microbox 420-RTX, e.g. SIMATIC. Click
"Connect".

3.

A login dialog opens. Log in as "Remote User" with the password


"Remote". It might take some time until the login dialog appears.

Issue 2006.12.04

42/63

Remote Control
Automation by Means of SIMATIC Microbox 420-RTX
No.

Item-Number: 23942303

Instructions

4.

The screen contents of your Microbox 420-RTX are displayed. There, the
Windows user interface appears just as it would look like if a monitor was
connected to the Microbox 420-RTX. You can control the Microbox 420RTX from the PG.

5.

To exit Remote Desktop, close the Remote Desktop window on the PG.

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Further characteristics of Remote Desktop

Note

5.3

Remote Desktop is on-board with Windows XP

The remote computer can be shut down via Remote Desktop using the
"shutdown [options]" command.

With Remote Desktop, the remote computer is locked and cannot be


used otherwise at the same time.

In case of local login of a user at the remote computer, the existing


remote connection is interrupted.

Only one Remote Desktop connection must be established to a remote


computer.

The screen resolution is adapted to the resolution of the local computer.

Encrypted connection

Windows authentication
Keyboard entries on the local computer and particularly control keys
behave differently depending on whether the Remote Desktop window is
maximized or minimized.

Virtual Network Computing (VNC)

What is VNC?
VNC is a software tool by means of which remote computers can be
controlled. For this, the screen contents of a remote computer are
displayed on the local computer and entries are transmitted to the remote
computer.

Note

V 1.0

In this document, the "VNC Free Edition Version 4.1.2 by RealVNC


(http://www.realvnc.com) is described. This version is distributed under
the GNU GPL license. Please refer to the manufacturer's website for
further information.

Issue 2006.12.04

43/63

Remote Control
Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

VNC components
VNC consists of two components: VNC Server and VNC Viewer. The VNC
Server is installed and executed on the remote computer. Only then, the
VNC Viewer which is installed on the local computer can establish a remote
connection to the VNC Server.

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Characteristics of VNC

V 1.0

VNC Server and VNC Viewer are available for different operating
systems.

VNC Server has to be installed and started on the remote computer.

VNC Viewer has to be installed on the local computer.

It is possible to establish several connections to the remote computer at


the same time.

If a user is logged in to the remote computer, his/her rights are assigned


to the user via the remote connection.

The events on the remote computer can be seen on a directly


connected screen.

The Free Edition version does not allow an encrypted connection.

The Free Edition version does not allow Windows authentication.

Issue 2006.12.04

44/63

Remote Control
Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

Locking input devices at the remote computer


Table 5-3

Instructions

1.

Start the "Options" window of the VNC Server by right-clicking the icon in
the system bar and by selecting the "Options" menu item.

2.

In the next window, select the "Inputs" tab.

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

No.

Activate the "Disable local inputs while server is in use checkbox. Click
"Apply" and then "OK".

Using VNC for the Microbox 420-RTX

V 1.0

Operating the Microbox 420-RTX without keyboard, mouse or monitor

Controlling the Microbox 420-RTX from a remote place

Issue 2006.12.04

45/63

Remote Control
Automation by Means of SIMATIC Microbox 420-RTX

5.4

Item-Number: 23942303

Using VNC for remote control

Installing VNC Free Edition


The installation described in the following has been performed with the
installation file from the manufacturer's website. During installation, the
installation file is executed both on the remote computer and on the local
computer. The installation routine is in English language.
Installation on the remote computer

Note
23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

The VNC Server has to be installed on the remote computer. For this,
execute the installation file by double-clicking it. The installation is selfexplanatory and will not be described in detail. In the course of the
installation routine, cancel the installation of VNC Viewer. The default
settings can be applied without any modification. At the end of the
installation, you are prompted to assign a password to the remote
connection. By means of this password, a VNC Viewer can establish a
connection to the VNC Server.

During uninstalling both the VNC Server and the VNC Viewer are deleted
if both have been installed. VNC Server and VNC Viewer cannot be
uninstalled separately.

Installation on the local computer


The VNC Viewer has to be installed on the local computer. For this,
execute the installation file by double-clicking it and cancel the VNC Server
in the course of the installation.

V 1.0

Issue 2006.12.04

46/63

Remote Control
Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

Establishing a connection by means of VNC


Table 5-4

Instructions

1.

Start the VNC Viewer by double-clicking the icon on the desktop of the
local computer.

2.

In the dialog, enter the IP address of the remote computer and click
"OK".

3.

Enter the password for the connection to the VNC Server and click "OK".

4.

Now, you can see the screen contents of the remote computer.

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

No.

If no user is logged in to the remote computer, log in to the remote


computer. How to login to a remote computer is described in the
following.

V 1.0

Issue 2006.12.04

47/63

Remote Control
Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

Sending entries of the control keys


Entries made by means of the control keys such as "Ctrl", "Alt" etc. are sent
by right-clicking the title bar of the VNC window. A context menu appears
which also can be called by means of the "F8" key.

Note

In the settings of the VNC Viewer, you can modify the key assignment for
the context menu (standard "F8" key).

If no user is logged in to the remote computer, you have to log in to the


remote computer. Call the context menu by means of the "F8" key or by
clicking the title bar of the VNC Viewer. Select the "Send Ctrl Alt Del"
menu element in the context menu. Log in as the user who is authorized to
log in to the remote computer.

Note
23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Login to a remote computer

V 1.0

If the VNC Server on the remote computer only allows a "read-only"


connection, the entries are not sent to the remote computer. In this case,
you can also view the events.

Issue 2006.12.04

48/63

Remote Control
Automation by Means of SIMATIC Microbox 420-RTX

5.5

Item-Number: 23942303

Remote Desktop vs. VNC


Table 5-5

Tool
VNC Free Edition

Advantages

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Remote Desktop

Disadvantages

The events can be


viewed on the monitor
connected to the remote
computer.
Cross-platform. In case
of computers with
different operating
systems, a remote
connection can be
established by means of
VNC.

The screen resolution is


adapted to the resolution
of the local computer.
On the remote computer,
the former resolution is
maintained.
The firewall must not be
adapted.

V 1.0

Issue 2006.12.04

VNC must be installed


on the participating
computers.
The firewall must be
adapted, because a port
(default: port 5900) is
used.
The resolution of the
remote computer is
used.
Both computers must run
the Windows XP
operating system.
Nevertheless, the remote
computer must not run
Windows XP Home
Edition.
Only one remote
connection is possible at
the same time.
The remote computer is
locked.

49/63

DiagMonitor
Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

DiagMonitor
This chapter presents the "DiagMonitor" software, version 3.0. It describes
the installation of the program as well as the configuration necessary to set
up communication between DiagMonitor and WinAC RTX via OPC server.

What is DiagMonitor?
DiagMonitor is intended for monitoring the status of a SIMATIC PC (e.g. fan
speed). In this application example, DiagMonitor (version 3.0) is used for
monitoring the Microbox 420-RTX in order to allow the controller (WinAC
station) to respond to system states such as alarms.

6.1

Installing DiagMonitor

In the delivery state, the "Safecard On Motherboard" application is installed


on the Microbox 420-RTX. This application must be uninstalled prior to the
installation of DiagMonitor.
In this application example, DiagMonitor is installed on the Microbox 420RTX (for further information on remote control by means of DiagMonitor,
refer to the manual on the CD). Execute the installation file and follow the
installation instructions of the installation program. You are prompted to
restart the Microbox 420-RTX.

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Installing DiagMonitor

Uninstalling DiagMonitor
Uninstalling DiagMonitor is done according to the Windows standard.

6.2

Configuring WinAC for data transmission


To use data of DiagMonitor in WinAC RTX, configure the WinAC station in
your project. Make the following modifications in the controller:

Create a data block for data of DiagMonitor.

Establish a connection to the OPC server.

Creating a data block for data transmission in WinAC


The data block can be copied from the S7 example project of DiagMonitor
(or with another name). The data block "DB111" originates from the
example project of DiagMonitor and describes the data structure.
The example project of DiagMonitor is located in the installation directory of
DiagMonitor. Open the "Samples" subdirectory and then the "WinAC"
subdirectory. Here, you will find the S7 example project
"Example:DM_WinLC_41.zip". Retrieve the example project in the
SIMATIC Manager. For further information, refer to the "readmeWinAC.txt"
file in the directory.

V 1.0

Issue 2006.12.04

50/63

DiagMonitor
Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

Connecting WinAC to OPC server


Configure your WinAC station for a connection to OPC server. For a
detailed description, refer to the following entry ID: 22155321 under
Product Support or to the "WinAC RTX 2005 manual.

6.3

Configuring DiagMonitor for data transmission

Configuring DiagMonitor
Perform the following actions:

Configure the connection of DiagMonitor to OPC server.

Add a station for monitoring.

Configure the station for data transmission.

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

To do this, follow the instructions below.

V 1.0

Issue 2006.12.04

51/63

DiagMonitor
Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

Table 6-1

Instructions

1.

In the "Tools" menu, select the "Settings" menu element.

2.

In the next window, select the "OPC" tab. Subsequently, activate the
checkboxes "Enable" and "local host". Click "Apply" and then "OK".

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

No.

V 1.0

Issue 2006.12.04

52/63

DiagMonitor
Automation by Means of SIMATIC Microbox 420-RTX
Instructions

3.

In the "Station" menu, select the "Add" menu element.

4.

In the next window, you can search for a station or enter the station
name if the "Local station" checkbox is disabled.

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

No.

Item-Number: 23942303

Activate the checkbox mentioned above if it is not already activated. The


name of the station appears in the grayed text field. Click "OK".

V 1.0

Issue 2006.12.04

53/63

DiagMonitor
Automation by Means of SIMATIC Microbox 420-RTX
No.
5.

Item-Number: 23942303

Instructions
Now, the station appears in DiagMonitor.

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Right-click the station. In the context menu that opens, select the
"OPC" menu element.

V 1.0

Issue 2006.12.04

54/63

DiagMonitor
Automation by Means of SIMATIC Microbox 420-RTX
No.
6.

Item-Number: 23942303

Instructions
In the next window, enter the name (e.g. "DB111") of the data block for
data of DiagMonitor. Also enter the type (e.g. "S7") and the local ID (e.g.
"OPC_1") of the connection between the controller and the OPC server.

Note
23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

After clicking "OK", the data are written into the block (e.g. "DB111") at
an interval (default: 10 sec.).

6.4

When running DiagMonitor, the OPC server must not be exited as


DiagMonitor is permanently connected to the server. If DiagMonitor is
exited, the "old" status of the data is maintained in the controller. There is
no possibility for the controller to respond.

Simulating an alarm in DiagMonitor


DiagMonitor counts the operating hours of the station. In this application
example, a point in time is set for the next station maintenance to simulate
an alarm in DiagMonitor. After the defined time has expired, DiagMonitor
signals that the station has to be maintained.
As a response to this alarm, the currently running mixing process in the
controller is completed and a new mixing process is not started. Moreover,
the output 0.6 is set. Only if the alarm is acknowledged in DiagMonitor, the
controller can start a new mixing process.
To simulate this scenario, follow the instructions below.

V 1.0

Issue 2006.12.04

55/63

DiagMonitor
Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

Table 6-2

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

No.

V 1.0

Instructions

1.

Right-click the "simatic" station. In the context menu, select the


"Properties" menu element.

2.

In the next window, enter the value "1" in the "New Alert in:" field. In the
"Title:" field, enter "alarm" and click "Add". A new entry appears in the
"Revision List" field. Click "OK".

Issue 2006.12.04

56/63

DiagMonitor
Automation by Means of SIMATIC Microbox 420-RTX
No.

Instructions
After the defined time has expired, the station is marked with a red
exclamation mark in DiagMonitor and the system status is written into the
data block. The controller calls this value and will suspend the start of a
new mixing process in this case. Acknowledge the alarm by right-clicking
the concerned station and by selecting the "Acknowledge alert" option in
the context menu.

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

3.

Item-Number: 23942303

V 1.0

Issue 2006.12.04

57/63

Operating the Example Program


Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

Operating the Example Program

Introduction
This chapter explains the S7 program of the example project. You are
provided with detailed information on the functionality of the program, the
assignment of inputs and outputs on the distributed I/O as well as the
operation of the program.
This chapter does not include an extensive program description. This
application does not focus on the S7 program; it focuses on the
configuration of WinAC RTX as well as on the process interface via
distributed I/O.

Note

The S7 program from the example project is used to control a virtual mixing
and bottling plant. This plant consists of:

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Functionality of the S7 program

A boiler with two inlet valves and one outlet valve

a mixer for the boiler

a heater as well as a cooler for the liquid in the boiler

The user has the possibility of influencing the mixing process by selecting
different recipe data records.
Input and output assignment
The S7 program is operated via digital inputs. Connect an "ET 200S
Compact" I/O to the Microbox 420-RTX by means of a PROFIBUS cable.
Ensure power supply for the I/O and the potential groups. For further
information, refer to the "Distributed I/O System ET 200S Operating
Manual" manual under the following entry ID: 1144348
Connect one switch each to the inputs E 0.0, E 0.1, E 0.2 of the "ET 200S
Compact" I/O. The actual process is controlled via digital outputs. The
assignment of inputs and outputs is listed in the following table.
Table 7-1

Channel

V 1.0

LED
no.

Symbol
"IN_Start_Process

Function

E 0.0

Start mixing process

E 0.1
E 0.2

6
9

A 0.0

45

"Out_InValve1

Open inlet valve 1

A 0.1

46

"Out_InValve2

Open inlet valve 2

Selection of recipe:
00: Keep current recipe
10: Select recipe 1
01: Select recipe 2
11: Select recipe 3

Issue 2006.12.04

58/63

Operating the Example Program


Automation by Means of SIMATIC Microbox 420-RTX

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Channel

LED
no.

Item-Number: 23942303

Symbol

Function

A 0.2

49

Out_OutValve

Open outlet valve

A 0.3

50

Out_Heater

Turn on heater

A 0.4

53

Out_Cooler

Turn on cooler

A 0.5

54

Out_Mixer

Turn on mixer

A 0.6

57

Out_DiagMonitor

Status of the Microbox 420-RTX

A 0.7

58

Out_Cycle

Continuous flashlight (flashes


every 10 cycles)

A 1.0

65

Out_Fillstate_25

Fill-level indication "25% reached"

A 1.1

66

Out_Tempstate_25

Temperature indication "25%


reached"

A 1.2

69

Out_Fillstate_50

Fill-level indication "50% reached"

A 1.3

70

Out_Tempstate_50

Temperature indication "50%


reached"

A 1.4

73

Out_Fillstate_75

Fill-level indication "75% reached"

A 1.5

74

Out_Tempstate_75

Temperature indication "75%


reached"

A 1.6

77

Out_Fillstate_100

Fill-level indication "100%


reached"

A 1.7

78

Out_Tempstate_100

Temperature indication "100%


reached"

Operating the program


To start and operate the mixing process, follow the instructions listed in the
following table.
Table 7-2

V 1.0

No.

Instructions

Requirements for starting the mixing process:


The WinAC RTX controller has to be configured correctly.
The configuration and the example program have to be loaded to WinAC
RTX.
WinAC RTX has to be in RUN or RUN-P mode.
The controller is ready to start the mixing process as soon as you see the
flashlight at output A 0.7.

Select a recipe via the digital inputs E 0.1 and E 0.2.

Start the mixing process with input E 0.0.


To do this, switch E 0.0 to 1.

Issue 2006.12.04

59/63

Operating the Example Program


Automation by Means of SIMATIC Microbox 420-RTX
Instructions

The status of the controller is indicated at the digital outputs or in the


variable table VAT_1.

The mixing process is stopped by setting E 0.0 to 0.


The current process will be completed.

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

No.

Item-Number: 23942303

V 1.0

Issue 2006.12.04

60/63

Restoring the System


Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

Restoring the System


A PC system which has been set up (e.g. Microbox 420-RTX) can be
backed up by means of a specific program (e.g. "Image&Partition Creator
V1.2"). In this case, the status of the system can be reset. This might be
helpful in the following cases:

Restoring the delivery state of the Microbox 420-RTX

System is no longer stable

Resetting modifications of the system since the last backup

After restoring the system, the delivery state of the operating


system of your Microbox 420-RTX and of the programs will be
restored. All modifications and settings made by you will get lost.

Attention

BIOS settings remain unchanged after restoring the system.

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

This chapter describes how to restore the delivery state of the Microbox
420-RTX by means of a restore CD. For further information, refer to the
following entry ID: 22329624

Restore CD
The Restore CD is available via Technical Support. The restore CD is
bootable. Also read the "readme.txt" file on the restore CD.

Booting up the Microbox 420-RTX from the restore CD

!
Attention

V 1.0

If you use the Microbox 420-RTX with a hard disk and a Flash Card,
the system is restored on the drive from where the system has been
started last.

No.

Instructions

Connect a monitor and a keyboard, optionally also a mouse, to the Microbox


420-RTX, if this is not yet the case.

Connect an external USB CD/DVD drive to a free USB port of the Microbox
420-RTX. Please ensure power supply of the external drive.

Switch on the Microbox 420-RTX. Press the "ESC" key only once during
BIOS initialization. A boot-up menu is displayed.

Issue 2006.12.04

61/63

Restoring the System


Automation by Means of SIMATIC Microbox 420-RTX

Note

Item-Number: 23942303

No.

Instructions

Insert the CD into the drive. Select the CD drive by means of the arrow keys
of the boot-up menu and press the "Return" key. The Microbox 420-RTX is
started from the restore CD. Follow the instructions of the restore program.

If you cancel the restore routine, you will go to the DOS environment. To
restart the restore routine, press the key combination "Ctrl" + "ALT" +
"Del". The Microbox 420-RTX is restarted and the restore routine can be
started again.

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

Please observe that the system might be inoperable.

V 1.0

Issue 2006.12.04

62/63

Bibliographic References
Automation by Means of SIMATIC Microbox 420-RTX

Item-Number: 23942303

Bibliographic References
If you have installed the corresponding product, you can find most manuals
under:
Start Simatic Documentation [Language]
For product support, refer to the Internet at:
http://support.automation.siemens.com

23942303

Copyright Siemens AG 2006 All rights reserved


23942303_WinAC_SE_DOKU_v10_e.doc

There you will find manuals, FAQs and a series of further application
examples regarding this subject.

V 1.0

Issue 2006.12.04

63/63

Vous aimerez peut-être aussi