Documente Academic
Documente Profesional
Documente Cultură
Printing with
SIMATIC HMI Control Panels
WinCC V11
Caution:
The functions and solutions described in this entry are mainly limited to the
realization of the automation task. In addition, please note that suitable security
measures in compliance with the applicable Industrial Security standards must be
taken, if your system is interconnected with other parts of the plant, the companys
network or the Internet. For further information on this issue, please refer to Entry
ID 50203404.
http://support.automation.siemens.com/WW/view/de/50203404.
If you have any questions about this document, please contact us at the following
e-mail address:
Copyright Siemens AG 2012 All rights reserved
mailto:online-support.industry@siemens.com
For further information on this topic, you may also actively use our Technical
Forum in the Service & Support Portal. Add your questions, suggestions and
problems and discuss them in our large forum community:
http://www.siemens.com/forum-applications
Solution 2
Installation 3
Starting up the
Application 4
Configuration of the
SIMATIC Pinter Drivers 5
Printing with SIMATIC HMI Control
Operation of the
Panels Application 6
Further Notes, Tips and
Tricks 7
Copyright Siemens AG 2012 All rights reserved
History 9
Preface
Objective of this application
The objective of this application is to show you the ways of printing
Fault messages
screenshots
reports
via the SIMATIC HMI Comfort Panels.
Applicability
58205602_Printer_Options_Package_DOKU_v12_en.doc
Copyright Siemens AG 2012 All rights reserved
Table of Contents
Warranty and Liability .................................................................................................... 4
Preface........................................................................................................................... 5
1 Task ..................................................................................................................... 7
2 Solution ................................................................................................................ 8
2.1 Overview of the overall solution ........................................................... 8
2.2 Description of the core functionality ................................................... 10
2.2.1 Notes concerning the PDF print ......................................................... 11
2.2.2 Notes concerning the HTML printout ................................................. 11
2.2.3 Notes concerning the postscript print................................................. 12
2.2.4 Notes on Brother QL-650TD .............................................................. 12
2.3 Hardware and software components used......................................... 12
2.4 Supported control panels ................................................................... 14
3 Installation.......................................................................................................... 15
3.1 Requirement....................................................................................... 15
3.2 Optional package printer driver .......................................................... 15
3.3 Transferring the printer drivers to the control panel ........................... 17
4 Starting up the Application................................................................................. 20
4.1 Preparation......................................................................................... 20
4.2 Commissioning................................................................................... 20
Copyright Siemens AG 2012 All rights reserved
1 Task
Introduction
For Windows CE-based control panels, specific printers are usually required. Due
to the high innovation cycles of printers, the user might get problems with respect
to the availability of the approved printers.
Approved printers are hardly available in the market, since more often than not the
successors of the tested printer types are already being sold.
Shift reports
Control panel
Screenshots
Copyright Siemens AG 2012 All rights reserved
2 Solution
2.1 Overview of the overall solution
Schematic layout
To offer a solution as generally applicable as possible for printing data, new printer
drivers were developed for SIMATIC HMI Panels.
The optional package printer driver contains the following printer drivers
PDF print (print as a PDF file)
HTML print (print as an HTML file)
PostScript print (print via any postscript-compatible printer)
Brother QL-650TD (thermo printer).
The following figure gives a schematic overview of the most important components
of the solution:
Figure 2-1
Copyright Siemens AG 2012 All rights reserved
Operating System
Runtime
Print Job
Print Job
Print Job
Prin
t Job
t
Job
Advantages
The optional package printer driver offers the following advantages for you:
You can print either in PDF or HTML file format.
By means of an integrated PDF viewer or the Internet Explorer, the printouts
can be displayed directly at the control panel.
The storage path for the PDF and HTML printer driver can be changed over
the desktop from the Comfort Panel.
Printing the PDF or HTML file via any printer you like.
Thanks to the postscript driver you are independent from the type of printer
and from the manufacturer of the printer.
Restriction
This application does not include a description of
the Comfort Panel you use. This document describes only the steps that are
necessary for this application.
the enclosed WinCC V11 configuration. The configuration only serves to show
the functionality. You can also use your own application
Copyright Siemens AG 2012 All rights reserved
how, for instance, a network connection between a control panel and the
configuration computer is to be created.
the installation of the SIMATIC software WinCC Comfort and of STEP 7 V11.
Required knowledge
Basic knowledge how to work with and how to operate a Comfort Panel is
expected.
Various options can be selected via the printer driver for the layout of the created
HTML files. For further processing these HTML pages, basic knowledge in HTML
programming is required.
Sample configuration
For testing the application you can use any configuration you like. The project
contains a PLC program and an HMI configuration.
The PLC program is for simulating fault messages. When a fault message occurs,
it is printed in a PDF file, for example by means of the optional package printer
driver (if it is activated in the control panel).
In the HMI sample project, a report and the screenshot can also be printed.
Instead of the enclosed sample configuration, you can also use your own
configuration. You will need a Comfort Panel as a control panel.
Copyright Siemens AG 2012 All rights reserved
PDF files
Two sample PDF files are enclosed to the application. They are an example of
what a printout of fault messages and a screenshot could look like in the PDF
format.
HTML files
Sample HTML files are enclosed to the application. They are an example of what a
printout of fault messages and a screenshot could look like in the HTML format.
Moreover, a Default.css file is stored, which influences the layout of the enclosed
HTML files.
The Brother QL-650TD serves for issuing reports, the reports being in the shape
and size of labels.
Hardware components
Copyright Siemens AG 2012 All rights reserved
Table 2-1
Component No. MLFB/Order number Note
CPU 315-2 DP 1 6ES7315-2AG10-0AB0 Optional: The PLC is
for simulating fault
messages.
CP 343-1 Lean_1 1 6GK7343-1CX10-0XE0 Optional: The CP is for
the communication to
the Panel via Ethernet.
Alternative:
MPI/PROFIBUS
TP1200 1 6AV2124-0MC01-0AX0 See chapter 2.4
Brother QL-650TD 1 See manufacturers page
on the Internet
USB: The printer is directly connected to the control panel via the USB interface.
1)
Only report printing is supported.
3 Installation
3.1 Requirement
For transferring the installed printer driver to the Comfort Panel, the software
ProSave must be on the computer.
ProSave is installed by default with the installation of WinCC (TIA portal).
As an alternative, you can install only ProSave from the WinCC (TIA portal)
installation DVD. Please find the installation files for ProSave in the Support
folder.
3.
Select the language for the installation
menu in the drop-down list.
Click on OK to confirm.
4.
Please read the warning in the dialog
and confirm by clicking on Next.
5.
Please read the license agreement.
Confirm the license agreement by
activating the option box.
Confirm by clicking on Next.
Copyright Siemens AG 2012 All rights reserved
6.
Click on Install to start the
installation.
7.
Complete the installation by clicking on
Finish.
Requirement
The optional package printer driver V1.3 has to be installed on your PC (see
chapter 3.2).
Table 3-2
No. Action Screens
1. Open ProSave
(description under Windows XP)
Open ProSave:
Start > SIMATIC > ProSave > SIMATIC
ProSave.
2. Select control panels
3. Transfer options
Note:
If no printer drivers are displayed in the
"Available options" window, check the
storage path (3). The files are stored in the
AddOn directory of Prosave.
Example: C:\Program Files\Common
Files\Siemens\PTProsave\AddOn.
Copyright Siemens AG 2012 All rights reserved
Note:
Before each transfer, the control panel must
be in transfer mode.
4. View of the available options
If you want to use only the optional package printer driver, at least
ProSave V9.0.3.0 and
the optional package printer driver V1.3
must be installed on your computer.
Copyright Siemens AG 2012 All rights reserved
Hardware
You will need one of the control panels listed under Comfort Panels in chapter 2.4.
In chapter 2.3 you will find the hardware used, if you want to use the application
example.
For filing the HTML or PDF files, you need an SD/MMC memory card or an USB
stick. Alternatively, you can save the data on the PC via a network.
4.2 Commissioning
Table 4-1
No. Action Note
1. Unpack the enclosed application You can also use your own
example into a folder and open the configuration.
configuration.
If you use a different hardware than the
one used in the application example,
you will need to adapt it first.
2. Transfer the configuration to the control
panel and to the controller.
3. Transfer the printer drivers to the control For details, please see chapter 3.3 .
panel by means of ProSave.
4. If necessary, connect the printer Instead of printers, use the electronic
Brother QL-650TD or a postscript- output in a PDF or HTML file.
compatible printer to the control panel.
The configuration of the postscript printer driver is carried out in the control panel
with the Printer Properties.
Note:
A storage medium must be available at
the selected folder.
When you select the storage location
<<Other>>, you can enter a
network path as the storage location,
for example. Example:
\\ComputerName\ApprovedName\Folder\
(1)
Select Format:
With the drop-down list, you can assign
different time formats or enter a string for
the file name.
Copyright Siemens AG 2012 All rights reserved
Buttons:
Apply button:
With this button, a setting is applied to
the name.
Clear button:
If you want to enter a new name, clear
the old name here.
Default button:
With this button, a standard name is set
(see screenshot).
Note:
The composed name (1) is displayed on top
of the buttons.
Example:
The file name under Screenshots and
Reports is to have the following format.
Screen_year_month_day.pdf
Select Format
In the drop-down list, select the format
<<String>>.
Enter String
Write the name Screens_ in the input
field.
Select Format:
In the drop-down list, select the format
YYYY_MM_DD (year_month_day).
Note:
For the wildcard YYYY_MM_DD, the
system automatically enters the current
year etc. in the printout.
Orientation:
Portrait
The printout will be in portrait
Copyright Siemens AG 2012 All rights reserved
format.
Landscape
The printout will be in landscape
format (only for screenshots).
Option box:
Draft Mode
By activating this option, the
printing of the file can be
accelerated.
Color
Here, you can set whether you
wish to print a color copy.
CMY
When you choose the option
Color, you can additionally select
the option CMY to reduce the
color range.
Note:
A storage medium must be available at
the selected folder.
When you select the storage location
<<Other>>, you can enter a
network path as the storage location,
for example. Example:
\\ComputerName\ApprovedName\Folder\
(1)
Select Format:
With the drop-down list, you can assign
different time formats or enter a string for
the file name.
Copyright Siemens AG 2012 All rights reserved
Buttons:
Apply button:
With this button, a setting is applied to
the name.
Clear button:
If you want to enter a new name, clear
the old name here.
Default button:
With this button, a standard name is set
(see screenshot).
Note:
The composed name (1) is displayed on top
of the buttons.
Example:
The file name under Screenshots and
Reports is to have the following format.
Screen_year_month_day.html
Select Format:
In the drop-down list, select the format
<<String>>.
Enter String
Write the name Screens_ in the input
field.
Select Format:
In the drop-down list, select the format
YYYY_MM_DD (year_month_day).
Note:
For the wildcard YYYY_MM_DD, the
system automatically enters the current
year etc. in the printout.
Available Columns:
This section lists the headings that are not
Copyright Siemens AG 2012 All rights reserved
Selected Columns:
This section lists the headings that are to be
displayed in the table later on.
Buttons:
With the buttons >> and << you can
remove or add headings from/to a list. With
the buttons MoveUp and MoveDown you
can influence the order of the headings. An
example is available in chapter 5.3.1.
Option boxes:
With the option boxes you can assign an
option to each heading.
An example is available in chapter 5.3.3.
Configure:/ Default:
This button has two positions:
Click on Configure to edit the
properties of a table.
Click on Default if you want to change
back to the default settings.
Advanced Options
For the layout of the printed HTML pages, you can optionally make different
settings.
Table 5-7
No. Action Screens
Notes:
If an HTML file is stored in the same
directory as the directories/files listed
here, it is not necessary to create any
sub-directories.
The file and the directories must exist
on the storage medium.
Note Normally, the files defined in Advanced Options are on a PC, where the
HTML files can be viewed and printed. But they can also be on an SD/MMC
memory card or a USB stick.
You only need the settings under the menu Advanced Options if you have
selected an option in the menu Columns Attributes under Select Row Class
Attribute or if you have assigned the option Image or Hyperlink to a heading in
the option box.
Figure 5-3
In chapter 5.3.2 the differences between a standard printout and a printout with the
options used are demonstrated in an example.
Table 5-8
No. Action Screens
2. Printer Language
Select the printer HTML V1.3 in the drop-
down list.
Copyright Siemens AG 2012 All rights reserved
Option box
Draft Mode
By activating this option, the
printing of the file can be
accelerated.
Color
Here, you can set whether you
wish to print a color copy.
CMY
When you chose the option
Color, you can additionally select
the option CMY to reduce the
color range.
In the following an example shows how to adapt the order and the number of
column headings for an alarm message report.
Table 5-9
No. Action Screens
1. Example:
HTML Alarm message report
In the HTML menu Columns Attributes, you can assign various options to the
columns headings. Moreover, you can influence the layout of the HTML page in the
Advanced options menu. The following two screens show effects of these options
in an example.
The following example shows how you can influence the layout of the printed
HTML table with the options (see HTML menu Columns Attributes and Advanced
Options).
Note For editing the HTML file and/or for creating the *.css-file, basic knowledge in
HTML programming is required.
HTML documents can be created and edited with any type of text processing
program. However, we recommend the use of a configuration tool such as
FrontPage (a part of MS Office).
In addition, you can find numerous configuration tools, free of charge, on the
Internet.
Setting
The HTML files created with the control panel are saved on a PC via a network in
Copyright Siemens AG 2012 All rights reserved
Figure 5-6
When the HTML setting Status was selected under Select Row Class Attribute,
the HTML-Element class= was put in front of the status output of the fault
message. The HTML element class= indicates that the HTML element belongs to
a certain Style Sheet. This Style Sheet is stored in the *.css file.
The option Hyperlink was assigned to the column heading Message ID under
the HTML setting Columns Attributes.
This puts the HTML element href= including the link to a HTML page - in front
of the message number. The name of the link corresponds to the configured
message number.
According to the message number, the user must have stored a HTML page in the
Links directory. This page can contain further information concerning the fault
message and the like.
Default.css file
Note With the *.css file you can define the layout of the HTML file. For example, you
can set the layout of the table and paragraphs in the text.
Please read the detailed information on this topic CSS in the Internet. The
explanations would be beyond the scope of this application.
The screen below shows a section of the Default.css. file. The user creates this
file individually for his configuration.
Figure 5-10
Copyright Siemens AG 2012 All rights reserved
1. Printer Properties
2. PostScript Parameter
Printer Language:
Select the printer PostScript V1.3 in the
drop-down list.
Port:
Copyright Siemens AG 2012 All rights reserved
Network or IP:Port:
Depending on the settings made under
Port:, enter the network address here, or
enter the IP Port of the print server needed
to reach the printer.
Paper Size:
Select the paper size from the drop-down
list.
Orientation:
In the option box you can select whether the
printout is to be in portrait or landscape
format.
Further option boxes:
Draft Mode
The printing of the file can be
accelerated.
Color
Here, you can set whether you
wish to print a color copy.
CMY
When you chose the option
Color, you can additionally select
the option CMY to reduce the
color range.
1. DK Rolls
Select the type of labels in the drop-down
list.
dispatch labels 62 x 100 mm
address labels 29 x 90 mm
endless labels
Label Height
If you set Endless labels in the parameter
DK Rolls, you can set the height of the
labels that are to be printed automatically.
The height usually depends on the length of
the page stored for the configured protocol.
Copyright Siemens AG 2012 All rights reserved
AutoCut
Activate this box if you wish the label paper
to be cut automatically after printing.
Buttons
Save your settings with the Save" button.
If you make a setting and confirm it with
Exit, a window with a confirmation prompt
will pop up asking whether you really wish
to save the settings.
Table 5-12
No. Action Screens
2. Printer Language:
Select the printer Brother QL-650TD V1.3
in the drop-down list.
Port:
Select USB1 in the drop-down list. The
Copyright Siemens AG 2012 All rights reserved
Paper Size:
The settings have no influence on the
printout.
Orientation:
Select Portrait here
The Landscape setting has no influence
on the printout.
Option boxes:
The option boxes Draft Mode, Color and
CMY have no influence on the printout.
Note You can also use your own application instead of the sample application.
Table 6-1
No. Action Screens
1. Printer driver
Copyright Siemens AG 2012 All rights reserved
4. Overview screen
5. Theme A screen
Note:
The output of the files depends on the
settings you made in the Printer
Properties.
Copyright Siemens AG 2012 All rights reserved
http://support.automation.siemens.com/WW/view/de/53385672
SIMATIC HMI control panels Comfort Panels
\4\ Manual
http://support.automation.siemens.com/WW/view/de/49313233
Printers for SIMATIC Panels and Multi Panels
\5\ Printer driver
Copyright Siemens AG 2012 All rights reserved
http://support.automation.siemens.com/WW/view/de/11376409
How do you integrate a HMI operator panel into a local network?
\6\ FAQ
http://support.automation.siemens.com/WW/view/de/13336639
How can you output a variable text input as a barcode to a printer on
\7\ FAQ
a control panel?
http://support.automation.siemens.com/WW/view/de/22395414
\8\ FAQ How can a Word, Excel or PDF file be opened via a Comfort
Panel?
http://support.automation.siemens.com/WW/view/de/51723931
\9\ FAQ How can a Word document be opened via a control panel?
http://support.automation.siemens.com/WW/view/de/28733200
9 History
Table 9-1
Version Date Change
V1.0 03/2012 First issue
V1.1 07/2012 Page 9/48 revised
V1.2 07/2012 Page 18/49 note added