show the entry list
WinCC flexible ES -- Creating HMI configurations -- Outputting protocols, screens, messages and documents
How do you configure a screen change via the controller in WinCC flexible?
How do you make printouts on different printers in WinCC flexible PC Runtime?
How can you import/export configuration data (discrete and analog alarm messages, tags and connections) from/to a CSV file in WinCC flexible 2008?
How can you have hardware diagnostics data of SIMATIC IPCs displayed in WinCC flexible?
How can you do a report logging, a hard copy or report printing on a printer with Windows-based panel via HyperTerminal?
How is the diagnostic data of the DP diagnostics block FB125 in WinCC flexible visualized?
What settings do you have to make to be able to print on a network printer with a Windows-based panel (except the 170 series)?
How can you switch off the "Sleep" function on Brother printers?
How do you open a WORD document via an operator panel?
How can you use an operator panel to output a variable text input as barcode on a printer?
How can you do a report logging, a hard copy or report printing on a printer with Windows-based panel via HyperTerminal?
Part number:

Description:
The HyperTerminal from Microsoft can only be used via the serial connection with a Windows-based panel for report logging, hard copy or report printing.

IMPORTANT!
Every user is free to use and forward this configuration. The authors of this description take no responsibility whatsoever for the functionality and compatibility. Use of the software is at the user's own risk. Since this software is not system tested, there is no warranty, no claim for error correction, and no hotline support.

Contents:

  1. General description
  2. Installing the printer on the PC
  3. Installing the printer on the Windows-based panel
  4. Creating a serial connection with the HyperTerminal
  5. Restrictions on printing via HyperTerminal

Requirements:

  • PC with serial interface and Windows operating system
  • Serial transfer cable for Windows-based panels (see Entry ID: 21401061)
  • Windows-based panel (operating system: WinCE) with serial interface
  • Printer with driver data and connection cable (USB, parallel)
  • WinCC flexible compact, standard, advanced

1. General description
This entry contains a description of how to print from a Windows-based panel via a "HyperTerminal" on the default printer of the PC. "HyperTeminal" is a Windows program with which you can directly access the serial interface of the PC. For this application, the Windows-based panel must be linked to the COM interface of the PC via the serial transfer cable (0 modem cable) on the IF 2 interface. If a print job is triggered on the Windows-based panel (report logging, hard copy or report printout), the sent data can be captured in a text file via the program "HyperTerminal" on the PC and output directly on the connected printer.


Fig. 01 - Setup for printing via HyperTerminal

2. Installing the printer on the PC

  • Connect the printer to the PC via a standard connection cable (USB, parallel, ...).
  • Through automatic hardware detection of the OS, the printer will be recognized as new hardware on the PC.
  • If the driver of the printers is supplied with Windows OS, the installation of the printer is executed automatically.
  • Otherwise, the wizard for updating hardware will be launched in order to install the printer.
  • Put the driver disk or the driver CD into the correct drive of the PC.
  • If you are installing the printer with the hardware update wizard, refer to the supplied driver information.
  • After the printer is installed successfully, it must be changed to standard printer.
  • For this, you open the printer dialog via "Start > Settings > Printer".
  • Select the printer and choose "Define as default" in the dialog. If the printer was already set as default printer, this menu item can no longer be selected.
  • Print a test page on the printer to check that the printer is working.

3. Installing the printer on the Windows-based panel

  • The entire configuration of the printer is done in "Control Panel" on the Windows-based panel.
  • Open the "Printer" dialog.
  • Set the printer language of the printer in "Printer Language". In this example a "Brother HL1250 Laser Printer" was used, so the printer language "PCL Laser" was set.
  • Usually the "port" specifies the interface to which the printer is connected to the Windows-based panel. With this application, the printer is not directly linked to the panel but to the PC. Thus in "port" the serial connection between the panel and the PC must be configured. Choose, for example, the setting "IF2: 57600".
  • You can also set the paper size, orientation, quality and color of the printout.
  • Acknowledge the settings with OK.

Warning:
In order to use the serial interface on panel (IF 2) for communication, deactivate the "Remote Control" for the serial interface in "Transfer" of "Control Panel" (see Entry ID: 14668901) 14668901)

4. Creating a serial connection with the HyperTerminal
 
No. Procedure
1 "HyperTerminal" Opening
  • Start the "HyperTerminal" via "Start > Programs > Accessories > Communication" or by entering "hyperterm" via "Start > Run".

Note:
If you cannot find an entry with the name "HyperTerminal" in the start menu, the program must be reinstalled via Windows setup ("System settings > Software > Add/ remove Windows components").

2 Assigning the name of the connection
  • The wizard for the creation of a new connection is displayed.
  • Enter a name for new connection, highlight a symbol and confirm with "OK".


Fig. 02

3 Choosing an interface
  • Under "Connect using", select the COM interface with which the PC is connected with the panel, for example COM1.
  • Acknowledge the settings with "OK".


Fig. 03

4 Specifying port settings of the COM interface
  • The properties of the COM interface open.
  • The data rate in the connection settings must match the data rate on the panel, in this case: 576000 bits per second.

For the terminal program to interpret the printing protocol correctly, the following settings must be made:

Data bits: 8
Parity: No
Stop bits: 1
Flow control: Hardware

  • Acknowledge the settings with OK.


Fig. 04

5 Capturing text
  • The HyperTerminal automatically sets up a serial connection with the settings made.
  • In the program window, you can choose "Transmission > Capture text" in order to save the received data in a text file. Furthermore, you can send the received data directly to the printer, if you select the menu item "Capture to printer". The printing is done page by page; the printer only starts printing if a page is filled.


Fig. 05

6 Optional - Changing connection settings
  • You can make expanded connection settings via "File > Properties > Settings". The following figure shows default settings for a terminal connection. With the emulation "Auto detection" the program attempts to detect the correct emulation using the received data. However, automatic detection cannot assign every data stream correctly. You can find information on emulations that are suitable for printing on the Web-based panel in "Restrictions on printing via HyperTerminal"..


Fig. 06

7 Printing report logging
  • If you trigger a printing job in the WinCC flexible Runtime, the data will be sent to the HyperTerminal and displayed in the program window. Report logging (text printout) means, for example, that the text of the report is shown in the HyperTerminal. With a graphics printout (hard copy, printout logging) you can only see control characters.


Fig. 07

8 Optional - Type of printout
  • Please note that the type of printout (graphics or text) must be taken into account with respect to connection settings in the HyperTerminal You can find further information in "Restrictions on printing via HyperTerminal".


Fig. 08

5. Restrictions on printing via HyperTerminal
The Windows-based panels support different print functions: Hard copy, report logging and protocol printout.

Warning:

  • If you want to use printer functions hardcopy or report printout you must first save the data into a text file ("Capture to text"). After termination of the data transmission from the panel, you can forward the text file to the printer by executing the command "copy C:\hardcopy.txt \\ComputerName\Release name of printer" at the MSDOS prompt. A direct transmission to the printer with the function "Capture to Printer" cannot be used.
  • In the case of report logging, you should use the option "Capture to printer". You can also save reports in a text file. This text file should not, however, be forwarded to the printer, since not all special characters are displayed correctly. To display the special characters correctly, you can open the text file with MS Excel (conversion: MSDOS PC-8) and then print from Excel.

The following table shows which terminal settings are suitable for the printer functions of Windows-based panels:
 
Emulation Hard copy Report logging Report printout
ANSI - x -
ANSIW - x -
Minitel - - -
TTY - x -
View data x - x
VT100 - x -
VT100J - x -
VT52 - - -
Table 01 - Supported emulations

Key:
x: Function is supported
-: Function is supported partially, incorrectly or not at all

Note:
A serial project transfer to the panel can only be carried out if the HyperTerminal connection is cancelled. Otherwise, the COM interface is reserved by the HyperTerminal connection.

Keywords:
Printer, TP170, OP170, Mobile Panel 170, OP270, TP270, MP270, MP370

 Entry ID:30839063   Date:2008-08-15 
I regard this article....as helpfulas not helpful                                 
mySupport
My Documentation Manager 
Newsletter 
CAx-Download-Manager 
Support Request
To this entry
Print
Create PDF 
Send to a friend
QuickLinks
Compatibility tool 
Topics
Help
Online Help
Guided Tour