Siemens Industry Online Support
Siemens AG
Entry type: Application example Entry ID: 82454336, Entry date: 09/28/2018

Quality Assurance by means of Weighing, Controlling and Logging with the SIMATIC S7-1200 (Set 6)

  • Entry
  • Associated product(s)
This filling plant offers you the selection of the product via recipes, weight control via SIWAREX and logging via data logging with access via the integrated web server of the S7-1200.

In the packaging industry, containers are to be filled with a specified number of a product (e.g. of wall anchors), calculated by weight control. 


The automation task is to include the following requirements:

  • Calibrating by means of a reference weight before the beginning of the process
  • Determining the filling weight of a package for quality control in a filling plant
  • Measuring the average specific weight of new articles by means of the teach function and capturing it in a recipe management
  • Automatic taring of the scale before each filling process
  • Filling and packaging on the basis of the measured overall weight, compared to a set target number of pieces from a recipe management
  • Documenting the weight with time stamp and ID number by means of the data log function
  • Operator control and monitoring via HMI touch panel

The SIMATIC S7-1200 controller family offers the optimum combination for automatic filling using the SIWAREX WP231 weighing module.

With the help of the high-resolution SIWAREX WL260 load cell, weights up to 3kg can be acquired. Easy commissioning of the SIWAREX WP231 weighing module is performed by means of the writing of data records via the S7-1200 CPU as of firmware V1.1.
The application example has been realized using the TIA Portal and can be operated either via the SIMATIC HMI TP700 Comfort or its simulation.
The recipe management from which the data for the product to be filled is carried out in the CPU. The recipes are exported in the load memory.

The control of this filling process is simulated with the help of the digital on-board outputs of the controller. The production data is exported in CSV format (CommaSeparatedValues) into the flash memory of the CPU via the integrated DataLogging function. You can conveniently access this data via the integrated PLC web server and evaluate it, for example, in Microsoft Excel.
As of CPU firmware V4 the recipe data can also be exported, edited and imported back to the filling process.
In addition, the Comfort Panel TP700 provides the option to save the csv file on a USB stick on site for later evaluation via the integrated USB ports with the help of Internet Explorer in Windows CE.

Current version 4.0 as of TIA Portal V15.1 (STEP 7 V15.1, WinCC Comfort V15.1)
  Flyer V3.0 (277,6 KB)
  Documentation (2,9 MB)
 Registrierung notwendig  Project V4.0 for TIA Portal V15.1 and S7-1200 CPU FW V4.2 (2,7 MB)

Additional information
Manual “SIMATIC S7-1200 automation system”
Manual “SIWAREX WP231 electronic weighing system”
TIA Portal program "Ready for use" for SIWAREX WP231
Function extension of set 6: "Logging user data by means of RFID using the SIMATIC S7-1200 (Set 13)"
Application example “Using recipes with SIMATIC S7-1200”
Sales and delivery release SIMATIC Automation Tool V3.0 

Last Changes
Update to TIA Portal V15.1

Additional Keywords
Quality management, filling

Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit
Rate entry
Requests and feedback
What do you want to do?
Note: The feedback always relates to the current entry / product. Your message will be forwarded to our technical editors working in the Online Support. In a few days, you will receive a response if your feedback requires one. If we have no further questions, you will not hear from us.