You are on page 1of 36

Micro Application Example

Quality assurance by means of weighing, control


and logging
Micro Automation Set 6

Note
Micro Automation Set 6

Entry-ID 22354065

Note
The Micro Automation Sets are not binding and do not claim to be complete
regarding their configuration, equipment and any eventuality. The Micro
Automation Sets 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 Micro
Automation Sets do not relieve you of the responsibility of safely and
professionally using, installing, operating and servicing equipment. When using
these Micro Automation Sets, 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 Micro Automation Sets at any time without
prior notice. If there are any deviations between the recommendations provided
in these Micro Automation Sets and other Siemens publications e.g. Catalogs
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.
Copyright Siemens AG 2008 All rights reserved
Set6_DocTech_v2d0_en.doc

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 Micro Automation Set 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.
Copyright 2008 Siemens IA and DT. It is not permissible to transfer or
copy these Micro Automation Sets or excerpts of them without first
having prior authorization from Siemens A&D in writing.

V2.0

31.07.2008

2/36

Preface
Micro Automation Set 6

Entry-ID 22354065

Preface
Micro Automation Sets are fully functional and tested automation
configurations based on IA / DT standard products for simple, fast and
inexpensive implementation of automation tasks for small-scale
automation. Each of the available Micro Automatic Sets covers a frequently
occurring subtask of a typical customer problem in the low-end
performance level.
The sets help you to obtain answers with regard to required products and
the question of how they function when combined.
However, depending on the system requirements, a variety of other
components (e.g. other CPUs, power supplies, etc.) can be used to
implement the functionality on which this set is based. Please refer to the
respective SIEMENS IA and DT catalogs for these components.
The Micro Automation Sets are also available by clicking the following link:

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

http://www.automation.siemens.com/microset

V2.0

31.07.2008

3/36

Table of Contents
Micro Automation Set 6

Entry-ID 22354065

Table of Contents

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

Table of Contents ......................................................................................................... 4


1

Application Areas and Usage ........................................................................ 5

Setup................................................................................................................ 8

Hardware and Software Components ........................................................... 9

4
4.1
4.2
4.3
4.4
4.5

Function Principle ........................................................................................ 10


Capturing weight as measured variable and providing as value .................... 10
Identifying product and assessing quality by weight comparison ................... 11
Logging the quality inspection ........................................................................ 12
Automated archiving of the log data ............................................................... 13
Recipe Management....................................................................................... 14

5
5.1
5.2
5.3
5.3.1
5.3.2
5.3.3
5.3.4
5.3.5

Configuring the Startup Software ............................................................... 15


Preliminary Remarks ...................................................................................... 15
Download of the startup code ......................................................................... 15
Configuring Components ................................................................................ 15
Installing and wiring components.................................................................... 16
Configuring SIMATIC TP 177micro panel with WinCC flexible....................... 16
Configuring S7-200 controller with STEP 7-Micro/WIN project ...................... 18
Preparing S7-200 controller and Windows standard PC for archiving function19
SIWAREX MS weighing module..................................................................... 20

6
6.1
6.2
6.3
6.4
6.5
6.6

Live Demo...................................................................................................... 28
Process........................................................................................................... 28
Screen 1: Micro Automation Set 6 Weighing process (start screen) ........... 29
Screen 2: Micro Automation Set 6 Recipe ................................................... 30
Screen 3: Micro Automation Set 6 Maintenance SIWAREX MS.................. 31
Screen 4: Micro Automation Set 6 TP 177micro maintenance .................... 32
Reading out log data and opening with MS Excel .......................................... 33

Technical Data .............................................................................................. 35

V2.0

31.07.2008

4/36

Application Areas and Usage


Micro Automation Set 6

Entry-ID 22354065

Application Areas and Usage

Automation Task
To provide good comprehensibility, the features of the Micro Automation
Set are explained using the example of an automation task.
In a packaging system, a check for completeness of the packaged goods is
required before delivery. In the course of this quality assurance measure
the goods are to be uniquely identified and all relevant data including time
stamp are to be logged.
It is to be possible to import the log data to Office Excel. The automation of
the logging process and the integration of the required components into the
existing infrastructure of the packaging system are to be possible.
It must be possible to apply the check for completeness of the packaged
goods also to other products with different content without extra work.

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

The packaging system is to be operated and maintained exclusively via an


HMI device. Operation is to be possible in German and in English.
Figure 1-1

V2.0

31.07.2008

5/36

Application Areas and Usage


Micro Automation Set 6

Entry-ID 22354065

Automation Solution Set 6


The automation solution uses an S7-200 controller and the SIWAREX MS
weighing module with single point load cell. The weight value of the
packaged goods is captured and compared to a reference value. This
enables to check whether all components are complete. The packages of
goods can be uniquely identified via a batch number.
The integrated time of day function and the memory module of the S7-200
controller enable a logging of the currently measured weight values with
time stamp.
Interfacing the S7-200 controller to a Windows PC using the PPI cable
enables an automatic readout of the log data. Alternatively to the PPI
connection data can be transferred via Ethernet, PROFIBUS or the
telephone network.
The recipe function of the S7-200 controller is used to manage the
reference weight of different production series.

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

Using a TP 177micro touch panel the currently running packaging process


can be monitored by screens providing German-English change language.
Figure 1-2

PC/PG Station

TP 177micro

LOGO!
Power

V2.0

SIMATIC S7-200

31.07.2008

SIWAREX MS

SIWAREX R
gezelle
WLog
Cell

6/36

Application Areas and Usage


Micro Automation Set 6

Entry-ID 22354065

Fields of application
The Micro Automation Set is suitable for many industrial applications in
which cost-effective weight measurements have to be performed with little
engineering overhead. This set is particularly suitable if additionally
automated logging functions are required in the framework of the
measurement.

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

The Micro Automation Set is particularly suitable for the following sectors
and fields of application:

Foodstuff industry

Packaging industry

Basic industry

Engineering industry

Level monitoring of silos and bunkers

Measurement of crane and rope loads

Load measurement in industrial elevators and rolling mills

Monitoring of belt tension

Force measurement

Container scales, platform weighing machines and crane scales

e.g.

The integration of the SIWAREX MS module into the S7-200 ensures


that the technological functions of the weighing module are combined
with all advantages of the PLC world (expansion capability, flexibility,
software, HMI, drives, communication interfaces, etc.)

Configuration of SIWAREX MS alternatively via

SIWATOOL MS or

the SIMATIC S7-200 controller

High accuracy of SIWAREX MS of 0.05 percent with a 16-bit resolution

Economic combination of S7-200 und TP 177micro with software


packages specially adapted to the requirements of micro automation

Quick and easy configuration via WinCC flexible und Micro/WIN

The user interface of TP 177micro can be configured in up to 32


languages

Benefits

V2.0

31.07.2008

7/36

Setup
Micro Automation Set 6

Entry-ID 22354065

Setup

Layout diagram for Micro Automation Set 6


Figure 2-1

Weighing and Logging Station

Projecting Station

TP 177micro

Standard PC
5

PROFIBUS-Cable

EXC+
EXCSIG+
SIGSEN+
SEN-

24V
+ -

230V~

Red
Black
Green
White
Blue
Brown

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

SIWAREX R

LOGO!
Power

256

4
2

S7 PLC 224 XP

SIWAREX MS

Micro Automation Set 6 consists of an S7-224 XP CPU (2) with integrated


time of day function and additional 256 KB memory module.
The SIWAREX MS weighing module (3) is used as expansion module.
The associated SIWAREX R single point load cell (4) is connected to
SIWAREX MS t via a 6-wire cable (plus shielding).
TP 177micro (5) uses a PPI connection via a PROFIBUS cable for the data
exchange with the S7-224 XP CPU.
The 24V power supply of the devices is provided by a LOGO! Power 1.3A
(1).
A Windows PC with STEP 7-Micro/WIN and WinCC flexible is used for the
configuration of the S7-200 controller and TP 177micro. The SIWAREX
MS weighing module can be configured via the SIWATOOL MS software
or via data exchange with the S7-200 controller.

V2.0

31.07.2008

8/36

Hardware and Software Components


Micro Automation Set 6

Entry-ID 22354065

Hardware and Software Components

Products
Table 3-1

Component

Qty.

MLFB / Order number

LOGO! Power 24V/1.3A

6EP1 331-1SH02

S7-200 CPU 224 XP

6ES7 214-2AD23-0XB0

SIWAREX Micro Scale

7MH4 930-0AA01

SIWAREX R load cell

7MH4 107-1LC01

Touch Panel TP 177micro

6AV6640-0CA11-0AX0

Note
DC
Product version 3
supports data and
parameter
exchange with the
PLC 1
Rated load 6 kg

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

Accessories
Table 3-2

Component

Qty.

MLFB / Order number

Note

256 KB memory module

6ES7 291-8GH23-0XA0

PROFIBUS cable 830-IT

6XV1 830-1CH30

3 meters

Standard 35mm DIN rail

6ES5 710-8MA11

483 mm

Configuration software/tools
Table 3-3

Component

Qty.

MLFB / Order number

PC/PPI cable

6ES7 901-3CB30-0XA0

SIWATOOL connecting
cable

7MH4 702-8CA

SIMATIC STEP 7Micro/WIN

6ES7810-2CC03-0YX0

SIMATIC WinCC flexible


2005 micro

6AV6610-0AA01-1CA8

SIWAREX MS
configuration package

7MH4 930-0AK01

Note
COM

The product version is given at the casing of the SIWAREX MS module next to the MLFB
number. For product version 3 the scale can be completely configured via the Micro/WIN user
program without using the SIWATOOL MS configuration tool..

V2.0

31.07.2008

9/36

Function Principle
Micro Automation Set 6

Entry-ID 22354065

Function Principle

4.1

Capturing weight as measured variable and providing as value

Table 4-1

No.
1.

Function

Comment

The SIWAREX R load cell SB series is


used to convert a mechanical force into
an electrical signal.
Four expansion measuring strips (EMS)
interconnected to a Wheatstone bridge
are attached to the spring rod of the load
cell.

DMS (gestreckt)
(elongated)

DMS (compressed)
(gestaucht)

Principle
display
Prinzipdarstellung
einer
of
a
Wheatstone-Bridge

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

DMS
(gestaucht)
(compressed)

2.

3.

If a force acts upon the spring rod and


compresses or stretches the expansion
measuring strips attached to it, an overall
misalignment of the spring rod can be
determined from the positive and negative
changes in resistance. (Measurement
voltage proportional to change in
resistance)

DMS
(gestreckt)
(elongated)

belasteter Biegestab
Burdoned
bending rod
elongeated
gestreckter
DMS

compressed
gestauchter
DMS

elongeated
gestreckter
DMS

With the aid of the analog-digital


converter integrated in the SIWAREX MS
weighing module, a weight value is
continuously calculated from the
measurement voltage.

compressed
gestauchter
DMS

Measuring signal

F
Weight value
Gewichtswert

2,3 kg
2.3
20 ms

4.

V2.0

This weight value is provided to the S7200 controller in the variable memory.
The transferred value is a 16-bit integer
value.

31.07.2008

DB1, VW25
Wert: 230

Gewichtswer
Weight
value

10/36

Function Principle
Micro Automation Set 6

4.2

Entry-ID 22354065

Identifying product and assessing quality by weight comparison

Table 4-2

No.
5.

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

6.

Function

Comment

For each product a unique identification


number is read in e.g. by a bar code
scanner. This product ID will later be used
for tracking in the log data. After the
product identification a subprogram for
the quality assessment is started.

2,3 kg
2.3

ID: 2904

In this set, the product ID is generated in


a subprogram.

The subprogram checks the weight value


by comparison with two reference values:
Weight reference value (optimum
product weight)
Tolerance reference value (maximum
permissible deviation from the weight
reference value expressed as a
percentage)
If the real weight value of the product is in
the tolerance range of the requirements,
the quality of the current product is
assessed as good.

(a) Reference
Referenzgewicht:
weight: e.g . 2.2
2,2 kg
(b) Tolerance:
e.g . 10%
(c) Real weight:
e.g . 2,3
2.3 kg
c

a
b

2,2
2.2

2,3
2.3

kg

2,0

2,1
2.1

2,2

2,3

2,4

Tolleranzbereich
Tolerance
range (quality
(Qualit good)
t gut)

7.

V2.0

After completing the quality inspection the


result of the quality inspection is assigned
to the product ID.

31.07.2008

Quality status:

0 (poor)
1 (good)

11/36

Function Principle
Micro Automation Set 6

4.3

Entry-ID 22354065

Logging the quality inspection

Table 4-3

No.
1.

2.

Function

Comment

In the framework of the configuration, the


logging is prepared using the Data-Log
wizard.
The structure of the data to be logged
is configured: A data record includes
6 values (a total of 13 bytes)
A standard block for starting the
logging with specified data structure is
generated

1: Product ID (4 bytes)
2: Recipe ID (2 bytes)
3: Weight (2 bytes)
4: Tolerance expressed as a percentage (2 bytes)
5: Reference weight (2 bytes)
6: Product quality (1 byte)

The Data-Log standard block is called


after completion of the quality inspection.
ID: 2904

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

2,3 kg
2.3
3.

V2.0

If the logging process is started, the


Data-Log standard block writes the
current values of the data block into the
256 KB module. During each call a new
data record is added to the already
existing log data. Up to 1000 data records
can be stored before the oldest record is
overwritten. (Ring buffer)

31.07.2008

The maximum number of data


records to be stored on the memory
module can be set using the DataLog wizard
In addition, a date and time stamp are
stored for each data record

12/36

Function Principle
Micro Automation Set 6

4.4

Entry-ID 22354065

Automated archiving of the log data

Archiving the log data


Table 4-4

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

No.

Function

Comment

1.

Via the S7-200 Explorer integrated in


STEP 7-Micro/WIN the protocol data can
be exported to the local hard disc of a
Windows PC from the 256 Kbyte memory
module and be saved as CSV file 2. Each
archiving process generates a new file
with the new current log data since the
last archiving.

A data connection between S7-200


controller and a Windows PC is required.

2.

The Scheduled Tasks standard function


in MS Windows enables to automate the
archiving of the log data via S7-200
Explorer at freely definable intervals.

Record1
Record2
Record3
Record4

Possible data connections between S7-200 and Windows PC


Aside from the option of loading data from the S7-200 controller to a
Windows PC via a PPI connection for archiving purposes described in this
set, the following alternatives exist additionally:
Table 4-5

No.

Communication

S7-200 expansion module

Comment

1.

Ethernet

6GK7 243-1GX00-0XE0

The PC requires an
Ethernet interface.
Installation note under
Entry ID:
18975343

2.

Profibus

6ES7 277-0AA22-0XA0

The PC requires a
PROFIBUS interface.
Installation note under
Entry ID: 1109582 from
chapter 7

3.

Modem

6ES7 241-1AA22-0XA0

Installation note under


Entry ID: 1109582 from
chapter 10

A CSV file is an ASCII file for saving or exchanging simply structured data. The abbreviation
CSV stands for Character Separated Values, since the individual values are separated by a
special separator. A general standard for the file format does not exist. In the application on
hand the line end is respectively characterized by CR, LF and the individual data separated by
semicolon.

V2.0

31.07.2008

13/36

Function Principle
Micro Automation Set 6

4.5

Entry-ID 22354065

Recipe Management

Table 4-6

No.
1.

2.

Function

Comment

In the framework of the configuration, the


recipe management is prepared using the
Recipe wizard.
The recipe structure is generated: A
recipe contains two ingredients
Two standard blocks for reading and
writing the recipes are generated

Number of ingredients for


one recipe

Names of recipe 0 to 4

Five recipes are predefined and stored in


the 256 KB memory module of the S7200. They can be selected via two buttons
on TP 177micro.

Number of ingredients for one


recipe

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

3.

The recipes include the weight reference


value of the product and the maximum
deviation expressed as a percentage
(tolerance).

Default values of the


ingredients for recipe 0 to 3

(a) Reference weighte.g.


e.g. 2,2 kg
(b) Tolerance
e.g. 10%
a
b

2,2
2.2
kg

2,0

2,1

2,2

2,3

2,4

Tolerance range (quality good)


4.

Using TP 177micro the values of the


predefined recipes can be edited.
The recipe ID with the value 1 stands
behind the selectable Recipe 1.

5.

The two standard blocks RCP0_READ


and RCP0_WRITE for reading and
writing the recipes in the 256 KB memory
module always determine the recipe to be
edited via the recipe ID.

V2.0

31.07.2008

14/36

Configuring the Startup Software


Micro Automation Set 6

Entry-ID 22354065

Configuring the Startup Software

5.1

Preliminary Remarks
For the startup we offer you software examples with test code and test
parameters as a download. The software examples support you during the
first steps and tests with your Micro Automation Sets. They enable quick
testing of hardware and software interfaces between the products
described in the Micro Automation Sets.
The software examples are always assigned to the components used in the
set and show their basic interaction. However, they are not real applications
in the sense of technological problem solving with definable properties.

5.2

Download of the startup code


The software examples are available on the HTML page from which you
downloaded this document.

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

Table 5-1

No.

5.3

File name

Contents

Set06_S7-200_v2d0_en.zip

STEP 7-Micro/WIN configuration for


the S7-200 CPU 224 XP.

Set06_WinCC_flex_V2d0_en.zip

Archived WinCC flexible configuration


for TP 177micro.

Configuring Components
Note

At this point, it is assumed that the necessary software has been installed
on your computer and that you are familiar with handling the software.

Note

Regarding the configuration of the SIWAREX MS load cell only the


settings required for this micro set are displayed via the SIWATOOL MS,
or have been realized in the Micro/WIN user program. If further
parameter changes are to be performed, the device manual with Entry ID:
22600601 must be used.

Note

If the S7-200 controller used is not an S7-224 XP (with integrated analog


inputs and outputs), then the addressing of the SIWAREX MS expansion
module must be adjusted accordingly in the STEP 7-Micro/WIN project.
(network 1 in OB1)
The actual addressing can be read via PLC / Information in
STEP7 Micro/WIN.

V2.0

31.07.2008

15/36

Configuring the Startup Software


Micro Automation Set 6

5.3.1

Entry-ID 22354065

Installing and wiring components

Table 5-2

No.

Instruction

Comment

LOGO! Power, S7-200 CPU and the


SIWAREX MS weighing module to the
DIN rail and attach the plug for the
expansion module to SIWAREX MS.
Do not yet switch on the power supply for
LOGO! Power.

See chapter 2 Layout diagram of Micro


Automation Set 6

2.

Connect the S7-200 CPU and the


SIWAREX MS weighing module to the DC
24V supply voltage of LOGO! Power.

See chapter 2 Layout diagram of Micro


Automation Set 6

3.

A base and top plate has to be attached


to the SIWAREX R load cell. The drawing
in the Note column is to be used for
base plate and top plate. M6 x 20 with
washers are required
as screws.

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

1.

Kopfplatte
Faceplate

W Weighing

module

Grundplatte
Base
plate

4.

Connect SIWAREX R load cell to the


SIWAREX MS weighing module.

5.

Connect all ground connections to earth.

6.

Switch on the power supply for LOGO!


Power.

5.3.2

See chapter 2 Layout diagram of Micro


Automation Set 6

Configuring SIMATIC TP 177micro panel with WinCC flexible

Table 5-3

No.

Instruction

Comment

1.

Switch off the power supply for LOGO!


Power.

2.

Connect TP 177micro to the DC 24V


power supply LOGO! Power

V2.0

31.07.2008

See chapter 2 Layout diagram of Micro


Automation Set 6

16/36

Configuring the Startup Software


Micro Automation Set 6

No.
3.

Instruction

Comment

Use an RS232/PPI cable to connect the


COM 1 port of the PC to the RS485
interface of TP177micro.The DIP switches
of the RS232/PPI-cable have to be set as
follows:
1

4.

Extract the WinCC flexible project to the


hard disk. (Table 5-1)

5.

Open the WinCC flexible project


Set06_WinCC_flex_Vxdy_en.hmi.
Switch on the power supply for LOGO!
Power and select the Transfer button on
TP 177micro after the bootloader
sequence. 3
The download of the WinCC flexible
project can start if a dialog box called
Transfer. is displayed on the panel.

6.

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

Entry-ID 22354065

7.

In WinCC flexible, now start the transfer


of the project to TP 177micro by selecting
Project/Transfer/Transfer Settings.

8.

Close the WinCC flexible project.

9.

Use the PROFIBUS cable to connect the


RS485 interface of TP 177micro to port 0
of the S7-200 CPU.

Standard PC

TP 177micro

PPI-Kabel
PPI
cable

Loader

Transfer
Transfer

Start
Start

Control
Control Panel
Panel

S7-224 XP CPU

TP 177micro

PROFIBUS--Kabel
cable

10.

Switch off the power supply of LOGO!


Power.

The "bootloader" sequence is followed by a startup delay interval after which an already loaded
application starts. This means you must select the transfer within the startup delay time.

V2.0

31.07.2008

17/36

Configuring the Startup Software


Micro Automation Set 6

5.3.3

Entry-ID 22354065

Configuring S7-200 controller with STEP 7-Micro/WIN project

Table 5-4

No.
1.

Instruction

Comment

Connect COM 1 of the PC using an


RS232/PPI-cable with port 1 of the S7200 CPU. The DIP switches of the
RS232/PPI-cable have to be set as
follows:
1

Select Start/Settings/Control Panel and


open the Set PG/PC Interface menu.
Select PC/PPI cable(PPI) as
Interface Parameter Assignment
Used
Set the access point to Micro/WIN
PC/PPI cable(PPI).
Open the Properties window and in
the PPI tab, set the Transmission
Rate to 187.5 kbps.
In the Local Connection tab, set the
serial PC interface COM1.
Click OK to confirm the Properties
window.
Confirm the Set PG/PC Interface
window with OK.

3.

Plug the 256 KB memory module into the


S7-200 CPU.

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

2.

4.

Switch on the power supply for LOGO!


Power.

5.

Extract the STEP 7-Micro/WIN project to


the hard disk. (Table 5-1)

6.

Open the project


Set06_weighing_Vxdy_en.mwp using
STEP 7-Micro/WIN.

7.

Load the program to the S7-200 CPU.

V2.0

31.07.2008

Standard PC

PPI

S7-224 XP CPU

PROFIBUS -cable
-Kabel

S7-224 XP CPU
Memory
Speichermodul
module
Speichermodul

18/36

Configuring the Startup Software


Micro Automation Set 6
8.

Entry-ID 22354065

Restart the S7-200 CPU.

5.3.4

Preparing S7-200 controller and Windows standard PC for archiving


function
This step is only required if the functionality of the automated archiving
function is later to be used by the MS Windows standard tool Scheduled
Tasks.

Table 5-5

No.

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

1.

Instruction

Comment

Connect COM 1 of the PC using an


RS232/PPI-cable with port 1 of the S7200 CPU. The DIP switches of the
RS232/PPI-cable have to be set as
follows:
1

2.

Start S7-200 Explorer in Windows by


selecting Start/SIMATIC/S7-200
Explorer.

3.

Click the S7-200 CPU and select the 256


KB memory module. In the right window,
right-click DAT Configuration 0(DAT0)
and select Create Shortcut.
(The Open File on Upload option has to
be deactivated)

4.

A shortcut to the Data-Log file in the 256


KB memory module is now created on the
desktop.

5.

Select Start/Settings/Control Panel and


start the Windows program Scheduled
Tasks.
Add a new task and in the wizard, click
Browse to select the DAT
configuration shortcut on the desktop.

V2.0

31.07.2008

Standard PC

PPI

S7-224 XP CPU

PROFIBUS -Kabel
cable

19/36

Configuring the Startup Software


Micro Automation Set 6

No.

Entry-ID 22354065
Instruction

Comment

6.

After selecting the program to be


executed, the time interval with which the
program is to be executed is set.

For the test in chapter 6 Live Demo a


time in the near future should be used for
the next execution of the archiving.

7.

Follow the instructions of the wizard and


then exit the wizard.

5.3.5

SIWAREX MS weighing module

What has to be configured?


Adapting the weighing module to the specific user case requires setting
over 20 parameters in the SIWAREX MS module. The delivery of a new
module comes with a factory setting, which meets the majority of the
applications. Using a command, these factory settings can also be restored
in retrospect. Adaptation to the application on hand requires performing the
following configuration steps:
Copyright Siemens AG 2008 All rights reserved
Set6_DocTech_v2d0_en.doc

1. Restoring the factory settings


The factory settings are available in the SIWAREX MS manual.
2. Define calibration parameters deviating from the factory settings.
The individual elements are:

V2.0

Characteristic value range


The characteristic value range depends on the connected load cell.
For a 6kg load cell a value of 4mV/V must be parameterized.

Calibration weight 1
Calibration weight, added to the scale during calibration. The
calibration weight must be at least 5% of the rated load of all
connected load cells. As a calibration weight you use an object
familiar to you, whose exact weight you know.

Weighing range
Each maximum weight which is generally not exceeded during
regular weighing operation. Limit value signaling and the permissive
limit of the tare input depend on the weighing range.

Decimal point for the remote display


It is decisive for the interpretation of integer inputs of weight
parameters. If 2 is specified (default value), then a calibration
weight 1 of 2 kg must be input as value 200 for a value 2.00 (kg)
to appear in SIWATOOLS MS or in a connected remote display, if
the scale is loaded with 2 kg (correct zero point calibration
assumed). The weight value transmitted to the PLC is 200 here
and is independent of the configured decimal point.

Weight unit
The (up to four) ASCII characters (e.g. g or kg ) are only used
for the interpretation of the weight display in SIWATOOL MS or the
remote display.

31.07.2008

20/36

Configuring the Startup Software


Micro Automation Set 6

Entry-ID 22354065

The application requires the following values which deviate from the
factory settings:
Table 5-6: Values deviating from the factory settings.

Parameter

Default

Application

Characteristic value
range

2mV/V

4mV/V

Calibration weight 1

2000

200020000 [ 2000g 20000g]


Known calibration weight which is
available to the user

Weighing range

2000

20000 [ 20000g]

Decimal point for the


remote display

Weighing unit

kg

Configuration types
Copyright Siemens AG 2008 All rights reserved
Set6_DocTech_v2d0_en.doc

The SIWAREX MS weighing module can be configured in two ways:

Configuration via the Step 7 user program using Micro/WIN

Configuration via the SIWATOOL MS tool

Configuration via Micro/WIN is only possible from product version 3 of the


SIWAREX MS module. The product version: 03 is written on the right side
of the module cover. Whether the configuration is possible via the Step 7
user program using parameter transfer can also be read out from the
weighing module via the software.
The application on hand supports the configuration of the weighing module
via the Micro/WIN user program and indicates at the TP 177micro whether
the product version of the weighing module permits this.
As soon as all of the above configuration steps have been performed, and
the Micro Automation Set is supplied with voltage and ready to operate, you
select the Maintenance SIWAREX MS screen at the TP 177micro.

V2.0

31.07.2008

21/36

Configuring the Startup Software


Micro Automation Set 6

Entry-ID 22354065

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

Figure 5-1: SIWAREX MS Firmware supports data record transfer to the PLC

As soon as the checkbox DS has been activated (black), your weighing


module supports a mutual transfer of the parameter data records between
the SIWAREX MS module and the S7-200 controller. In this case you do
not require the SIWATOOL MS tool for the application. The scale
configuration occurs controls at the TP 177micro.
Configuration via the Step 7 user program using Micro/WIN
Prerequisite:
The configuration steps up to those including chapter 5.3.3 were
performed;

SIWAREX MS product version 3;

The Micro Automation Set is supplied with voltage.

Table 5-7: Configuration via the Step 7 user program using Micro/WIN

No.
1.

V2.0

Instruction

Comment

In the Maintenance SIWAREX MS


screen you press the Configurate scale
button.

31.07.2008

22/36

Configuring the Startup Software


Micro Automation Set 6

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

No.

Entry-ID 22354065
Instruction

Comment

2.

This takes you to the screen on the right.


Here you press the Configurate scale
button again. After a successful
configuration process the Configuration
successfully completed! text appears.
The >> button takes you back to the
Maintanance SIWAREX MS screen.

3.

Press the Adjustment button.

4.

Entering the password 100 and


pressing the Calibrate button again
takes you to the Calibration wizard. Here
you check or change the value of the
calibration weight.
(As a calibration weight you use an object
familiar to you, whose exact weight you
know).

5.

Continue the configuration process with


the >> button and set the zero point of
the scale in the next screen. Wait until the
scale is in standstill (>< - checkbox black
and button not gray) and then press the
J0 button. This takes you to the next
screen.

V2.0

31.07.2008

23/36

Configuring the Startup Software


Micro Automation Set 6

No.

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

6.

Entry-ID 22354065
Instruction

Comment

Place the calibration weight, which you


have entered in step 4, on the scale and
after the scale is in standstill (>< checkbox black and button not gray) you
press button J1. This takes you back to
the Maintanance SIWAREX MS screen.
Here the calibration weight is now
displayed as current weight.

The scale calibration is now completed.

Configuration via the SIWATOOL MS tool


Prerequisite:
The configuration steps up to those including chapter 5.3.3 were
performed;

SIWAREX MS product version < 3;

The Micro Automation Set is supplied with voltage.

Table 5-8

No.
7.

V2.0

Instruction

Comment

In the Maintenance SIWAREX MS screen


you press the Configurate scale button.

31.07.2008

24/36

Configuring the Startup Software


Micro Automation Set 6

No.

Entry-ID 22354065
Instruction

Comment

8.

This takes you to the screen on the right.


Here you press the Load factory setting
button. After successful loading the Factory
settings loaded! text appears. The >>
button takes you back to the Maintanance
SIWAREX MS screen.

9.

Use COM 1 to connect the PC to the


SIWAREX MS module at the RS 232
interface with the SIWATOOL connecting
cable.

SIWAREX MS

Standard PC

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

SIWATOOL -Verbindungskabel
Connection cable

10.

Install the SIWATOOL MS software included


in the delivery of the SIWAREX
configuration package and start by selecting
Start/Programs/SIWATOOL MS.

11.

In the program, click


Communication/Choose interface, select
serial port COM 1 and confirm by clicking
OK.

12.

Select Communication/Online to establish


the connection to the SIWAREX MS
weighing module.

13.

In data record DR3, select the Calibration


tab to make input specified in Table 5-6:

V2.0

31.07.2008

25/36

Configuring the Startup Software


Micro Automation Set 6

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

No.

Entry-ID 22354065
Instruction

Comment

14.

Select Communication/Send all data to


send all data records to the SIWAREX MS
weighing module

15.

Close SIWATOOL MS.

16.

Continue the configuration of the scale and


its calibration via the TP 177micro fort.

17.

Entering the password 100 and pressing


the Adjustment button again takes you to
the calibration wizard.
A text display informs you that before continuing the
calibration, you need to have entered the Calibration
weight 1 into the SIWAREX MS module with
SIWATOOL MS, since its product version does not
permit this via the controller.

Set the set the zero point of the scale. Wait


until the scale is in standstill (>< - checkbox
black and button not gray) and then press
the J0 button. This takes you to the next
screen.

V2.0

31.07.2008

26/36

Configuring the Startup Software


Micro Automation Set 6

No.

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

18.

Entry-ID 22354065
Instruction

Comment

Place the calibration weight, which you have


entered in step 7 with SIWATOOL MS , on
the scale and after the scale is in standstill
(>< - checkbox black and button not gray)
you press button J1. This takes you back to
the Maintanance SIWAREX MS screen.
Here the calibration weight is now displayed
as current weight.

The scale calibration is now completed.

V2.0

31.07.2008

27/36

Live Demo
Micro Automation Set 6

Entry-ID 22354065

Live Demo
The functionalities and features of program codes and hardware can be
tested as follows if the components specified in Chapter 5.3 have been
configured correctly.

6.1

Process
Figure 6-1
Start
Amthe
TPTP
177micro
in die
Masketo3mask
(Kap. 3
6.4)
wechseln
At
177micro
change
(chapt.
6.4)

Calibrate
and
tare
SIWAREX
MS
Wgezelle
SIWAREX MS load cell
justieren und tarieren.

Start
the Adjustment
wizard
Den Wizard
Justage starten
Start
Den Wizard
the Taring
Tarieren
wizard
starten

Dieser
Durchlauf
beliebig
wiederholt werden.
This run
can bekann
repeated
anyofttimes.
Ein
erzeugt
Protokolldatensatz.
OneDurchlauf
run creates
oneeinen
protocol
data record

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

Create
recipe
Rezeptur
mit with
Referenzwerten
reference values
generieren

At
177micro
change
(chapt.
6.3)
Amthe
TPTP
177micro
in die
Masketo2mask
(Kap. 2
6.3)
wechseln
Start
the wizard
for recipesstarten
or select
Den Wizard
fr Rezepturen
oderan
eine
already
existing recipe
bereits existierende
Rezeptur auswhlen

At
177micro
change
(chapt.
6.2)
Amthe
TPTP
177micro
in die
Masketo1mask
(Kap. 1
6.2)
wechseln

Identify product
and und
Produkt
identifizieren
confirm product
ID
Produkt
ID besttigen

Wait
forsimulierte
the simulated
delivery
ofProdukts
the product
Auf die
Anlieferung
des
warten
Confirm
the automatically
ID)
Die automatisch
generiertegenerated
Produkt IDproduct
besttigen

Place product
on thestellen
scale and
Produkt
auf Waage
und
start quality controlstarten
Qualittskontrolle

Ein Objekt
auf die
stellen.
entscheiden
Place
an object
onWaage
the scale.
YouSie
decide
by
Durch diethe
Wahl
des Objekts,
Produkt
selecting
object
whetherob
thedas
product
is gut
good
(Gewichtwithin
innerhalb
des Toleranzbereichs)
oder
(weight
the tolerance
range) or bad
schlecht
(Gewicht
(weight
outside
the auerhalb
tolarance des
range
Toleranzbereichs) ist

Initiate
the quality check
with Start
Die Qualittskontrolle
mit Start
initiieren

Start logging starten


Protokollierung

Archive and display


Protokolldaten
archivieren
log data
und
anzeigen

Automatically
started
the quality control)
Wird automatisch
nachafter
Qualittskontrolle
gestartet

Perform
the steps
described inSchritte
chapterdurchfhren
6.6
Die in Kap.
6.6 beschriebenen

End
Ende

V2.0

31.07.2008

28/36

Live Demo
Micro Automation Set 6

6.2

Entry-ID 22354065

Screen 1: Micro Automation Set 6 Weighing process (start


screen)

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

Figure 6-2

What is displayed?
This screen displays the current process step (1) of the quality assurance of
the packaging system.
In the Delivery step, the product delivery is simulated and a product ID is
generated (2). After a restart of the CPU
the start is performed with product ID = 1.
In the Weighing process step, the weight of the product (3) is displayed.
In the Quality step, the weight value of the product is compared to the
currently selected recipe data (5). The quality status (4) is displayed. The
logging of the quality result is automatically started but not displayed here.
After the Quality step, a new product is automatically delivered, thus the
Delivery step is started again.
Selecting the screen (8)
Figure 6-3

Control function

V2.0

OK

With OK (6) the product ID in the Delivery step is


confirmed and the next process step is started.

START

If the delivery is confirmed and the load cell is at


standstill (9), Start (7) confirms that the product is on
the weigh machine. Now the weighing process is
performed automatically and subsequently the

31.07.2008

29/36

Live Demo
Micro Automation Set 6

Entry-ID 22354065
Quality step is started.

6.3

Screen 2: Micro Automation Set 6 Recipe

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

Figure 6-4

What is displayed?
This screen provides information (3) on the recipe used for the quality
assurance (2) for the evaluation of good and bad parts.
In addition, an already existing recipe can be selected and confirmed (4)
using the arrow keys (1).
Another option is to edit the existing recipes. The wizard to be called by
clicking this button (5) indicates step by step what has to be done.
Selecting the screen
Figure 6-5

Control function

V2.0

<
>

(1) Decreases or increases the recipe number.

Select Recipe

(4) Selects a recipe based on the selected recipe


number.

Start Wizard

(5) Starts the wizard for editing a recipe.

31.07.2008

30/36

Live Demo
Micro Automation Set 6

6.4

Entry-ID 22354065

Screen 3: Micro Automation Set 6 Maintenance SIWAREX MS

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

Figure 6-6

What is displayed?
the above buttons (1) (2) (3) (4) calls wizards which assist in the respective
configuration.
The Parameterizing buttons (1) (2) are protected by a password (7).
(Password: 100)
In addition, status information (5) of the SIWAREX MS module can be
viewed in this screen.
The help function (6) provides information on the displayed status
information.
Selecting the screen
Figure 6-7

Control function

V2.0

Zero
Definition

Starts the wizard for resetting SIWAREX MS

Adjustment

Starts the wizard for calibrating SIWAREX MS

Taring

Starts the wizard for taring SIWAREX MS

Configurate
scale

SIWAREX MS product version 3:


Here the factory settings are loaded first and then
those parameters are overwritten which deviate from

31.07.2008

31/36

Live Demo
Micro Automation Set 6

Entry-ID 22354065
the factory settings with regards to this application
(see Table 5-6). The calibration digits and the
calibration weight 1 are saved prior to the factory
setting so a recalibration is not necessary after the
configuration.
SIWAREX MS product version 3:
Only the factory setting is loaded.

6.5

Screen 4: Micro Automation Set 6 Maintenance TP 177micro

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

Figure 6-8

What is displayed?
This screen enables to change the language (1) between German and
English.
In addition, selected system functions (2) of TP 177micro can be called
Selecting the screen
Figure 6-9

Control function

V2.0

--> English
--> German

Changing between project language German and


English

Online
Offline
Transfer

Starts the wizard for calibrating SIWAREX MS

31.07.2008

32/36

Live Demo
Micro Automation Set 6

6.6

Entry-ID 22354065

Clear display

Deactivates all control elements and enables the


cleaning of the device. Input of the duration possible.

+
-

Increases or decreases the contrast of the display

Calibration

Starts the calibration wizard of the device

display
delete

Displays pending messages or deletes them.

Reading out log data and opening with MS Excel


Note

At this point, it is assumed that the shortcut of the Data-Log file in the 256
KB memory module exists on the desktop. (see Kapitel 5.3 Configuring
components)

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

Figure 6-10

Manually reading out log data from the memory module


Double-click the shortcut (1) to store the logged data as CSV file (3) in the
installation path of Micro/WIN (default: Drive:Program
Files\Siemens\MicroSystems\Data Logs) (2)

V2.0

31.07.2008

33/36

Live Demo
Micro Automation Set 6

Entry-ID 22354065

Automatically reading out log data from the memory module


If a task for the automatic readout of the logged data has been created as
described in chapter 5.3, the CSV file is stored in the installation path of
Micro/WIN depending on the defined time interval.
Evaluating the archived data

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

To evaluate the archived data, we recommend opening the CSV file with
Microsoft EXCEL (4) and saving it as XLS file. The weight details come in
grams, the tolerances as percentage values.

V2.0

31.07.2008

34/36

Technical Data
Micro Automation Set 6

Entry-ID 22354065

Technical Data

LOGO!Power 24 V/1.3 A
Table 7-1

Criterion

Technical data

Supply Voltage

AC 85 up to 264 V

Output voltage

DC 24 V (setting range DC
22.2 to 26.4 V)

Output current

1.3 A

Dimensions (W x H x D) in
mm

54 x 90 x 55

Additional note

S7-200 CPU 224 XP


Table 7-2

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

Criterion

Technical data

Input voltage

24 V DC

Current consumption

900 mA

Output current

280 mA

Interfaces

2x RS 485 interface
1x expansion bus for
modules

Inputs/outputs

EPROM user data

16 Kbytes

Dimensions (W x H x D) in
mm

140 x 80 x 62

Additional note
Direct line connection only as
AC/DC version
For expansion modules

14DI/10DO
2AI/

Expansion module SIWAREX MS weighing module


Table 7-3

Criterion

Technical data

Supply Voltage

24 V DC

Current consumption

< 140 mA

Interfaces

1x RS 232C interface
1x TTY interface

Interface load cells

4-wire or 6-wire DMS full


bridge

Updata rate

50 Hz or 30 Hz

Dimensions (W x H x D) in
mm

30 x 80 x 50

V2.0

31.07.2008

Additional note

35/36

Technical Data
Micro Automation Set 6

Entry-ID 22354065

SIWAREX R load cell stainless steel


Table 7-4

Criterion

Technical data

Rated load Emax.

6 kg

Accuracy class

C3

Degree of protection
according to EN 60 529

IP66/IP68

Nominal characteristic value


Cn

2 mV/V

Maximum used load Lu

150 % Emax

Breaking load Ld

300 % Emax

Platform size

max. 350 x 350 mm

Additional note

SIWAREX R load cell aluminum

Copyright Siemens AG 2008 All rights reserved


Set6_DocTech_v2d0_en.doc

Table 7-5

Criterion

Technical data

Rated load Emax.

6 kg

Accuracy class

C3

Degree of protection
according to EN 60 529

IP66/IP68

Nominal characteristic value


Cn

2 mV/V

Maximum used load Lu

150 % Emax

Additional note

TP 177micro touch panel


Table 7-6

Criterion

Technical data

Supply Voltage

DC 20.4 up to 28.8 V

Current consumption

100 mA

Memory for configuration

256 Kbytes flash

Dimensions (W x H x D) in
mm

196 x 142 x 42

V2.0

31.07.2008

Additional note

(typically 250 pictures)

36/36

You might also like