Siemens Industry Online Support
Siemens AG
Entry type: Application example, Entry ID: 27058037, Entry date: 02/07/2008

Micro Automation: Flexible Decoding and Processing of Data Matrix Codes (MAS 27)

  • Entry
  • Associated product(s)

The SIMATIC S7-200 components used in this application example are currently phased out.
This application can be realized even more effective and easier with the new SIMATIC S7-1200.
The respective application example with SIMATIC S7-1200 is available under entry-ID: 40603943 
Furthermore, many useful applications with SIMATIC S7-1200 are available under entry-ID: 35923253

Automation problem

The flow of goods in a middle-class company is to be monitored. The goods are to be captured at different points by means of a Data Matrix code scanner. The flow of goods in the company is as shown below.

To be able to trace the flow of goods, the goods are captured at the interfaces of the different departments with a Data Matrix code scanner. The flow of goods is recorded in a database. To keep the complexity of the Micro Automation Set low, only the incoming goods department is considered.

Automation solution
A HawkEye HE40 handheld code reader is connected to port 1 of the SIMATIC CPU 224XP via the RS232/PPI cable. The TD 400C text display is connected to port 0 of the CPU 224XP. The communication with the database is performed via Industrial Ethernet and is realized via the CP 243-1 communications processor and the “PC-Access” OPC server.

Startup Code
For the startup we offer you software examples with test code and test parameters as download. The software examples support you during the first steps and tests with your Micro Automation Sets. They enable quick testing of the hardware and software interfaces between the products described in the Micro Automation Sets.


Content Download
Micro Application Example Set27_DocTech_V1D0_en.pdf ( 1206 KB )
Library Description Set27_DocLibrary_V1D0_en.pdf ( 395 KB )
Startup Code (STEP 7-Micro/WIN Project) Set27_S7-200_V1D0_en.zip ( 21 KB )
Startup Code (S7-200 PC-Access Project) Set27_PC-Access_V1D0_en.zip ( 9 KB )
Startup Code (Microsoft Access data base) Set27_MS-Access_V1D0_en.zip ( 630 KB )
Library (STEP 7-Micro/WIN Library) set27_s7-200-library.zip ( 2 KB )




S7-200 System manual 1109582
HawkEye 40T User guide 24676594
HawkEye 45T User guide 24676193

First edition

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, solutions, machines, equipment and/or networks. They are important components in a holistic industrial security concept. With this in mind, Siemens’ products and solutions undergo continuous development. Siemens recommends strongly that you regularly check for product updates.

For the secure operation of Siemens products and solutions, it is necessary to take suitable preventive action (e.g. cell protection concept) and integrate each component into a holistic, state-of-the-art industrial security concept. Third-party products that may be in use should also be considered. For more information about industrial security, visit

To stay informed about product updates as they occur, sign up for a product-specific newsletter. For more information, visit

Security information
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art industrial security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about industrial security, please visit