Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Note The Micro Automation Sets are not binding and do not claim to be
complete regarding the circuits shown, equipping 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 correctly
used. 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.
For questions about this document please use the following e-mail address:
mailto:csweb@ad.siemens.de
Foreword
Micro Automation Sets are functional and tested automation configurations
based on A&D standard products for easy, 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 application in the lower performance range.
The sets help you obtain answers with regard to required products and the
question 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. For these
components, please refer to the corresponding SIEMENS A&D catalogs.
Table of Contents
Table of Contents ......................................................................................................... 4
1 Fields of Application and Benefits ................................................................ 5
2 Configuration ................................................................................................ 10
3 Hardware and Software Components ......................................................... 11
3.1 Hardware ........................................................................................................ 11
3.2 Software.......................................................................................................... 11
3.3 Accessories .................................................................................................... 11
4 Principle of Operation .................................................................................. 12
4.1 Single Scanning.............................................................................................. 12
4.1.1 Scanning the Data Matrix code....................................................................... 13
4.1.2 Decoding and output of the Data Matrix code ................................................ 13
4.1.3 Receiving and processing information............................................................ 13
Copyright Siemens AG 2007 All rights reserved
PC database
(Set 27: MS Access as an ex.)
Warehouse
Incoming goods
Outgoing goods
department;
department
goods inspection
Production
Copyright Siemens AG 2007 All rights reserved
To be able to trace the flow of goods, the goods are captured at the
Set27_DocTech_V1D0_en.doc
Figure 1-2
PC database
(Set 27: MS Access as an ex.)
Warehouse
Incoming goods
Outgoing goods
department;
department
goods inspection
Production
PC database
(Set 27: MS Access as an ex.)
Management
TD 400C
Set27_DocTech_V1D0_en.doc
M
Conveyor
Fields of application
This configuration is particularly suitable for:
The use of code readers in harsh industrial environments
In classic track & trace applications
In fields of applications in which, compared to a classic PC, costs can
be saved by using S7-200 and text display
Applications requiring the local automation of additional tasks (e.g.,
conveyor belt)
Applications with central data management and distributed scanner
stations
Benefits
Cost savings by using existing automation equipment or equipment that
is necessary anyway to additionally apply the code reading applications.
Option of data preprocessing in the controller, which enables the user to
reduce the communication load to the database.
The controller can be the access point to the automation network of the
production. This allows, for instance, for the code reader to be
integrated into the production network (for example, Profibus or
AS-Interface).
Compared to classical PC solutions, the S7-200 automation controller has
the following remarkable features:
For low requirements, the classic PC for code reading applications can
be replaced by a more cost-effective S7-200.
Higher fault tolerance of the automation controller.
Automatic restart and secure data management of the automation
controllers in the event of a power failure.
Copyright Siemens AG 2007 All rights reserved
The S7-200 does not require maintenance with regard to virus scanners
and firewall.
Set27_DocTech_V1D0_en.doc
2 Configuration
Figure 2-1 -- Wiring
PC database
PC Access
Ethernet network
230V
PE
TD 400C
PPI cable
Copyright Siemens AG 2007 All rights reserved
RS485
RS232 24V DC
Set27_DocTech_V1D0_en.doc
230V
Plug-in power supply
MS Access database
PC database
Ethernet network
3.2 Software
Copyright Siemens AG 2007 All rights reserved
Table 3-2
Set27_DocTech_V1D0_en.doc
3.3 Accessories
Table 3-3
Product No. Order number Remark
1950 mAH Li-ion battery 1 6GF3020-0AC40-0AB2 For wireless
module scanning
for SIMATIC HE40(T) /
HE45(T)
Battery charger (2-bay) 1 6GF3020-0AC40-0AA3
with EU power supply for
SIMATIC HE40/HE45
Gender changer 1
4 Principle of Operation
This chapter conveys the basic principle of operation of the Micro
Automation Set.
Micro Automation Set 27 offers two different modes:
Single Scanning (with cable connection)
Buffered Scanning, wireless scanning
PC database
5 PC Access
Copyright Siemens AG 2007 All rights reserved
Set27_DocTech_V1D0_en.doc
1
6
2 TD 400C
4
HawkEye HE40
CPU 224XP CP 243-1
Table 4-1
No. Function
1. The Data Matrix code is scanned.
2. The code reader captures the image and decodes the information and
outputs this information at the serial interface of the reader.
3. The S7-200 collects the information and buffers/processes it.
4. Using the CP 243-1, the S7-200 provides the information to the PC
database via Industrial Ethernet and PC-Access, the OPC server.
5. The PC searches the database for scanned information and returns the
product designation to the controller as plain text. In addition, the flow of
goods is archived.
6. The text display reads the scanned product ID and the product
designation communicated by the database from the controller.
The optical detection of the Data Matrix code corresponds to the basic
method of functioning of a camera.
To enable scanning also for difficult lighting conditions, the Data Matrix
code is illuminated by means of LEDs.
Scanning the Data Matrix code requires that the laser beam of the decoder
be aligned to the center of the Data Matrix code. The laser beam appears
when pressing the button on the HawkEye.
The reader analyzes the matrix by means of the specification for Data
Matrix codes and converts the information to an ASCII string.
Figure 4-2
12345678
Copyright Siemens AG 2007 All rights reserved
The start of the ASCII string with the data is delimited with a comma and
Set27_DocTech_V1D0_en.doc
the end of the string is delimited with a <CR><LF> (carriage return and line
feed).
Figure 4-3
12345678 ,12345678<CR><LF>
By the sample program, the S7-200 is configured in such a way that all
data (located between a comma and a <CR>) is received.
The actual string is extracted, stored in the memory area and thus provided
to the database.
Figure 4-4
The S7-200 now waits for the database to assign the string and to provide it
to the S7-200 as plain text.
The TD 400C is used for displaying selected S7-200 data. In this mode
(Single Scanning), the last string sent to the database and the received
associated plain text are displayed.
Aside from the controller, two products are involved in the data exchange
between PC world and automation world:
CP 243-1 communications processor for the connection to Industrial
Ethernet
PC-Access OPC server for S7-200
Ethernet CP
The CP 243-1 is used to connect the S7-200 to Industrial Ethernet. The
CP 243-1 supports TCP/IP and enables communication with the PC.
The OPC server uses the Ethernet connection and can access the data of
the automation controller. The data in turn is forwarded to an OPC client
Set27_DocTech_V1D0_en.doc
Database PC
MS Access database
PC database
VB300 12345678
Ethernet CP 243-1
Database PC
MS Access database
PC database
VB500 Cup
Copyright Siemens AG 2007 All rights reserved
Ethernet CP 243-1
Set27_DocTech_V1D0_en.doc
12345678
CUP
TD 400C
VB300 12345678
=
VB500 CUP
PC database
6 PC Access
1
4
Copyright Siemens AG 2007 All rights reserved
2 TD 400C
Set27_DocTech_V1D0_en.doc
5
HawkEye HE40
CPU 224XP CP 243-1
Table 4-2
No. Function
1. The Data Matrix code is scanned. (The cable is removed)
2. The code reader captures the image and decodes the information and
stores the data in the internal buffer.
3. When connecting the code reader to the CPU 224XP, all data is read
from the internal buffer and output via the serial interface.
4. The S7-200 collects the information and buffers/processes it.
5. The text display displays information such as the last scanned product ID
and the number of received IDs.
6. Using the CP 243-1, the S7-200 provides the scanned information to the
PC database via Industrial Ethernet and PC-Access (OPC server).
7. The product ID is archived in the database.
The TD 400C is used for displaying selected S7-200 data. In this mode
Copyright Siemens AG 2007 All rights reserved
The data in the database is only archived. In this mode, it is not necessary
to display the product designation on the display as plain text.
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 the 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
The software examples are available on the HTML page from which you
downloaded this document.
Table 5-1
No. File name Content
Copyright Siemens AG 2007 All rights reserved
Table 5-2
No. Step Figure/short note
1. Mount the CPU 224XP on the
top-hat rail.
2. Mount the Ethernet CP 243-1 on the
top-hat rail.
3. Connect the bus connector of the
Ethernet CP 243-1 to the
CPU 224XP bus interface.
4. Use the cross-over cable to connect Make sure that the IP addresses
the Ethernet interface of the are correctly assigned.
CP 243-1 to the PC on which PC: 192.168.2.88
MS ACCESS is installed. CP: 192.168.2.131
Subnet mask: 255.255.255.0
Copyright Siemens AG 2007 All rights reserved
1 2 3 4 5 6 7 8
8. Connect the gender changer to the Jack of the serial HawkEye cable
open end of the RS232/PPI cable Gender changer
and connect the RS232/PPI cable Jack of the RS232/PPI cable
to the serial cable of the HawkEye
scanner. Connect this cable also to
the plug-in power supply included in
the delivery.
3 4
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.
cable.
4. Set the PG/PC interface (PC/PPI
cable) to the used COM interface
and set the transmission rate of
your CPU. (default selection:
9600BAUD)
5. Download the project to the CPU
and set the CPU to RUN.
6. If you have used the serial PPI
cable between scanner and CPU, On
Off
reset the DIP switches to their
initial positions 1 2 3 4 5 6 7 8
Initializing and configuring the HawkEye scanner with Data Matrix codes
The scanner has to be set up before using it for the first time. The scanner
is set up by scanning special codes and the setup comprises two steps.
Scan the following codes successively. After each Data Matrix code wait for
the scanner feedback.
Initializing
Table 5-4 Initializing the code scanner
No DMC Instruction
1.
Reset to RS232 factory defaults
8 data bits
1 stop bit
Baud rate: 57600
No Parity
Copyright Siemens AG 2007 All rights reserved
2.
Set27_DocTech_V1D0_en.doc
3.
Save settings
Configuring
Table 5-5
No. DMC Explanation
1.
Prefix comma
Attention: Scan only once!
2.
Save settings
Copyright Siemens AG 2007 All rights reserved
3.
Set27_DocTech_V1D0_en.doc
Suffix CR and LF
Attention: Scan only once!
4.
Save settings
5.
6.
Save settings
2
Copyright Siemens AG 2007 All rights reserved
3
Set27_DocTech_V1D0_en.doc
Scanner ID
Copyright Siemens AG 2007 All rights reserved
Designation
German
Set27_DocTech_V1D0_en.doc
6 Live Demo
Note In all cases, the languages (German/English) are changed directly via the
TD400C. To set the desired language, navigate via ESC/OPERATOR
MENU/SELECT LANGUAGE.
This scenario describes how individual Data Matrix codes are scanned and
how the product name is displayed on the display as plain text.
Table 6-1
No. Step Figure/short note
1. Go to the Single Scanning
screen and mode. To do this, press
the F1 button.
In the second line, you can check
the mode.
Copyright Siemens AG 2007 All rights reserved
Set27_DocTech_V1D0_en.doc
Note For this scenario, you require the accumulator listed in chapter 3.3
Accessories. It must be charged and located in the device.
Table 6-4
No. Step Figure/short note
1. Go to the Buffered Scanning
screen and mode. To do this, press
the F2 button.
In the second line, you can check
the mode.
Note The sample codes have to be aligned with the Access database. You can
use your own terms/products or use the terms in brackets.
7 Performance Data
HawkEye HE40
Table 7-1
Interfaces 2x RS 485
communication interface,
expansion bus for modules
Inputs/outputs 14DI/10DO and 2AI/1AO
Degree of protection IP 20 according to IEC 529
SIMATIC CP241-1
Table 7-4