Cover. Printing with SIMATIC HMI Control Panels. WinCC V11. Application Description March Applications & Tools. Answers for industry

Cover Printing with SIMATIC HMI Control Panels WinCC V11 Application Description  March 2012 Applications & Tools Answers for industry. Industry ...
Author: Aubrey Chambers
24 downloads 0 Views 990KB Size
Cover

Printing with SIMATIC HMI Control Panels WinCC V11 Application Description  March 2012

Applications & Tools Answers for industry.

Industry Automation and Drive Technologies Service & Support Portal This document is an article from the Siemens Industry Online Support. The following link takes you directly to the download page of this document: http://support.automation.siemens.com/WW/view/de/58205602 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 company’s 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.

Copyright  Siemens AG 2012 All rights reserved

If you have any questions about this document, please contact us at the following e-mail address: mailto:[email protected]

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

2

Printing with SIMATIC HMI Control Panels V1.2 Entry ID: 58205602

s

Copyright  Siemens AG 2012 All rights reserved

SIMATIC Printing with SIMATIC HMI Control Panels

Printing with SIMATIC HMI Control Panels V1.2 Entry ID: 58205602

Task

1

Solution

2

Installation

3

Starting up the Application

4

Configuration of the Pinter Drivers

5

Operation of the Application

6

Further Notes, Tips and Tricks

7

Links & Literature

8

History

9

3

Warranty and Liability

Warranty and Liability Note

The application examples are not binding and do not claim to be complete regarding configuration, equipment and any eventuality. The application examples 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. The application examples do not relieve you of the responsibility to use sound practices in application, installation, operation and maintenance. When using these application examples, you recognize that we will not be liable for any damage/claims beyond the liability clause described. We reserve the right to make changes to these application examples at any time without prior notice. If there are any deviations between the recommendation provided in this application example and other Siemens publications (e.g. catalogs), the contents of the other documentation shall have priority.

We accept no liability for information contained in this document.

Copyright  Siemens AG 2012 All rights reserved

Any claim against us – based on whatever legal reason - resulting from the use of the examples, information, programs, engineering and performance data etc., described in this application example 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 cases of intent, gross negligence, or injury of life, body or health, guarantee for the quality of a product, fraudulent concealment of a deficiency or violation of fundamental contractual obligations (“wesentliche Vertragspflichten”). The damages for a breach of fundamental contractual obligations are, however, limited to the foreseeable damage, typical for the type of contract, except in the event of intent or gross negligence or injury to life, body or health. The above provisions do not imply a change in the burden of proof to your detriment. Any form of duplication or distribution of these application examples or excerpts hereof is prohibited without the express consent of Siemens Industry Sector.

4

Printing with SIMATIC HMI Control Panels V1.2 Entry ID: 58205602

Preface

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. Core topics of this application The following main points are covered in this application: •

installation of optional printer drivers



description of the printer parameters



application of the printer drivers

Copyright  Siemens AG 2012 All rights reserved 58205602_Printer_Options_Package_DOKU_v12_en.doc

When the application uses the term “optional package printer driver”, this always refers to the “SIMATIC HMI panel optional package printer driver”. Applicability The following descriptions apply to the printer driver V1.3. Furthermore, it is possible to use the printer driver for the “Brother QL-650TD” for HMI control panels under WinCC flexible 2008, for example. This application describes and refers to the version WinCC Comfort V11. A Comfort Panel is required as a control panel.

Printing with SIMATIC HMI Control Panels V1.2 Entry ID: 58205602

5

Table of Contents

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 Installation.......................................................................................................... 15 3.1 Requirement....................................................................................... 15 3.2 Optional package printer driver .......................................................... 15 3.3 Transferring the printer drivers to the control panel ........................... 17 Starting up the Application................................................................................. 20 4.1 Preparation......................................................................................... 20 4.2 Commissioning................................................................................... 20 Configuration of the Printer Drivers ................................................................... 21 5.1 Calling the printer drivers ................................................................... 21 5.2 Parameters of the PDF printer driver ................................................. 22 5.3 Parameters of the HTML printer driver............................................... 27 5.3.1 Adapt HTML table heading ................................................................ 35 5.3.2 HTML Options, view of a sample printout .......................................... 37 5.3.3 HTML options, sample application ..................................................... 38 5.4 Description of the postscript printer driver.......................................... 42 5.5 Description of the Brother QL-650TD printer driver ........................... 43 Operation of the Application .............................................................................. 45

3

Copyright  Siemens AG 2012 All rights reserved

4

5

6

8

Further notes, tips and tricks ............................................................................. 48 7.1 Open PDF file via the Comfort Panel ................................................. 48 7.2 Open HTML file via the Comfort Panel .............................................. 48 Links & Literature............................................................................................... 49

9

History................................................................................................................ 49

7

6

Printing with SIMATIC HMI Control Panels V1.2 Entry ID: 58205602

1 Task

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. Overview of the automation task The figure below provides an overview of the automation task. Figure 1-1 Fault mes sag e reports

Control panel

Shift reports

Copyright  Siemens AG 2012 All rights reserved

Screenshots

Output: printer, or an a lternative solution

Description of the automation problem By means of a control panel, it should be possible to output data such as … •

a screenshot



a shift report



a fault messages report

… via a printer or an alternative. It should be possible to print, independent from the manufacturer and type of the printer.

Printing with SIMATIC HMI Control Panels V1.2 Entry ID: 58205602

7

2 Solution

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: Copyright  Siemens AG 2012 All rights reserved

Figure 2-1

Operating System Runtime

Print Job

Optional package printer driver t Prin

PDF on SD-Card, USB-Stick or Network share

Job

Print Job

t Job Postscript

Print Job

Pr i n

Brother QL-650TD

HTML on SD-Card, USB-Stick or Network share

First, the “optional package printer driver” is installed on the configuration computer. By means of the software ProSave the drivers can then be transferred to the Comfort Panel. In the Comfort Panel the respective printer driver can be selected individually.

8

Printing with SIMATIC HMI Control Panels V1.2 Entry ID: 58205602

2 Solution

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

Copyright  Siemens AG 2012 All rights reserved

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



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.

Printing with SIMATIC HMI Control Panels V1.2 Entry ID: 58205602

9

2 Solution

2.2

Description of the core functionality This application describes: •

the steps for the installation of the printer drivers.



the functions of the printer drivers.



all the necessary settings at the control panel.

Moreover, an example shows the effects of the settings in the printout. 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.

Copyright  Siemens AG 2012 All rights reserved

Instead of the enclosed sample configuration, you can also use your own configuration. You will need a Comfort Panel as a control panel. 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.

10

Printing with SIMATIC HMI Control Panels V1.2 Entry ID: 58205602

2 Solution

Overview and description of the surface As an example, the following figure shows the desktop of a TP1200 Comfort with the links to the installed printer drivers. Later on, the individual printer drivers and their user surfaces will be described in more detail.

Copyright  Siemens AG 2012 All rights reserved

Figure 2-2

2.2.1

Notes concerning the PDF print The output via the PDF printer driver is in a PDF format. The printout of fault messages is line per line. That means that the fault messages are printed on one PDF page. If the page is full with fault messages, a new page is automatically added to the PDF file.

2.2.2

Notes concerning the HTML printout The output via the HTML printer driver is in a HTML format. The printout of fault messages is line per line. That means that the fault messages are printed on one HTML page. If the page is full with fault messages, a new page is automatically added to the HTML file.

Printing with SIMATIC HMI Control Panels V1.2 Entry ID: 58205602

11

2 Solution

2.2.3

Notes concerning the postscript print Postscript printing is done with a postscript-compatible printer. The printout of fault messages is line per line. This means that the page with fault messages is only printed when the page is full with fault messages. If another printing order is initiated while the fault messages are buffered in the printer, the fault messages accumulated before will be printed first.

2.2.4

Notes on Brother QL-650TD The Brother QL-650TD serves for issuing reports, the reports being in the shape and size of “labels”.

2.3

Hardware and software components used

Copyright  Siemens AG 2012 All rights reserved

The application was generated using the following components: Hardware components Table 2-1

12

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 manufacturer’s page on the Internet

Printing with SIMATIC HMI Control Panels V1.2 Entry ID: 58205602

2 Solution

Standard software components

Copyright  Siemens AG 2012 All rights reserved

Table 2-2 Component

No.

MLFB/Order number

Note

WinCC Comfort V11 SP2

1

6AV2101-0AA01-0AA5

Optional: For the sample configuration. Alternative: WinCC Advanced V11 SP2 or higher. WinCC Professional V11 SP2 or higher.

STEP 7 Professional V11 SP2

1

6ES7822-1AA01-0YA7

Optional: For the sample configuration. Alternative: Or higher version.

Optional package printer driver

1

Download in the Online Support see chapter 8

ProSave V9.0.3.0

1

WinCC (TIA Portal) installation CD

Or higher version.

Example files and projects The following list includes all files and projects used in this example. Table 2-3 Component 58205602_Printer_Options_Package _CODE_v10.zip

Note The zip-file contains the WinCC Comfort and STEP 7 project.

58205602_Printer_Options_Package_DOKU_v12_d.pdf

This document.

58205602_Printer_Options_Package _SampleFiles_v10.zip

The zip-file contains the PDF/HTML sample data.

Printing with SIMATIC HMI Control Panels V1.2 Entry ID: 58205602

13

2 Solution

2.4

Supported control panels The following table lists all the Comfort Panels that support the “optional package printer driver V1.3”.

Table 2-4

Copyright  Siemens AG 2012 All rights reserved

No.

Control panel

Brother QL-650TD

1)

PDF

HTML

1.

KP400 Comfort

USB

SD / MMC / USB/ network

SD / MMC / USB/ network

2.

KTP400 Comfort

USB

SD / MMC / USB/ network

SD / MMC / USB/ network

3.

KP700 Comfort

USB

SD / MMC / USB/ network

SD / MMC / USB/ network

4.

TP700 Comfort

USB

SD / MMC / USB/ network

SD / MMC / USB/ network

5.

KP900 Comfort

USB

SD / MMC / USB/ network

SD / MMC / USB/ network

6.

TP900 Comfort

USB

SD / MMC / USB/ network

SD / MMC / USB/ network

7.

KP1200 Comfort

USB

SD / MMC / USB/ network

SD / MMC / USB/ network

8.

TP1200 Comfort

USB

SD / MMC / USB/ network

SD / MMC / USB/ network

9.

KP1500 Comfort

USB

SD / MMC / USB/ network

SD / MMC / USB/ network

10.

TP1500 Comfort

USB

SD / MMC / USB/ network

SD / MMC / USB/ network

11.

TP1900 Comfort

USB

SD / MMC / USB/ network

SD / MMC / USB/ network

12.

TP2200 Comfort

USB

SD / MMC / USB/ network

SD / MMC / USB/ network

USB: The printer is directly connected to the control panel via the USB interface. 1)

14

Only report printing is supported.

Printing with SIMATIC HMI Control Panels V1.2 Entry ID: 58205602

3 Installation

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.

Note

In order to use the enclosed application configuration, at least STEP 7 professional V11 SP2 and WinCC Comfort V11 SP2 must be installed on the computer.

Copyright  Siemens AG 2012 All rights reserved

You can also use your own configuration.

3.2

Optional package printer driver In the following, the individual steps for the installation of the “optional package printer driver” are explained. Please find the link for downloading the printer driver in chapter 8.

Table 3-1 No. 1.

Action

Screens

Save printer file Save the file “ProSave-Opt_1_3_0_0.exe” on your computer and open the file with a double-click. The window “WinZip Self-Extractor” opens up.

2.

3.

Extract printer file. •

In the dialog “WinZip Self-Extractor“, select the option “Setup“.



Select the language for the installation menu in the drop-down list. Click on “OK” to confirm.



Printing with SIMATIC HMI Control Panels V1.2 Entry ID: 58205602

15

3 Installation

No. 4.

5.

Action •

Please read the warning in the dialog and confirm by clicking on “Next”.

• •

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



Screens

6. •

16

Click on “Install” to start the installation.

Printing with SIMATIC HMI Control Panels V1.2 Entry ID: 58205602

3 Installation

No.

Action

Screens

7.

Copyright  Siemens AG 2012 All rights reserved



3.3

Complete the installation by clicking on “Finish”.

Transferring the printer drivers to the control panel

Requirement The “optional package printer driver V1.3” has to be installed on your PC (see chapter 3.2). Table 3-2 No. 1.

Action

Screens

Open ProSave (description under Windows XP) Open ProSave: “Start > SIMATIC > ProSave > SIMATIC ProSave”.

2.

Select control panels In the menu bar, select the tab “General”. Here, please enter • the device type (in this case “TP1200 Comfort”) • the connection (in this case „Ethernet“) • the IP address (in this case “172.16.34.200”).

Printing with SIMATIC HMI Control Panels V1.2 Entry ID: 58205602

17

3 Installation

No. 3.

Action

Screens

Transfer options In the menu bar, select the tab “Options”. After the installation of the “optional package printer driver V1.3”, the “Available options” (1) will list the available printer drivers. • Printer Driver PTouch-QL650TD V1.3 • Printer Driver HTML V1.3 • Printer Driver PDF V1.3 • Printer Driver PostScript V1.3

(3) (2) (1)

Copyright  Siemens AG 2012 All rights reserved

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”. Select one printer driver and transfer the option to the control panel with the “>>” button (2). Repeat these steps for all the printer drivers you need at the control panel. Note: Before each transfer, the control panel must be in “transfer mode”. 4.

View of the available options In the window “Installed options” (1), all the options installed on the control panel are listed. If necessary, the options can be removed from the control panel with the “” and “

Suggest Documents