How can you do a report logging, a hard copy or report printing on a printer with Windows-based panel via HyperTerminal?
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.
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.
- General description
- Installing the printer on the PC
- Installing the printer on the Windows-based panel
- Creating a serial connection with the HyperTerminal
- Restrictions on printing via HyperTerminal
- 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
- 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.
- 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.
4. Creating a serial connection with the HyperTerminal
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)
|2||Assigning the name of the connection
|3||Choosing an interface
|4||Specifying port settings of the COM interface
|6||Optional - Changing connection settings
|7||Printing report logging
|8||Optional - Type of printout
- 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|
x: Function is supported
-: Function is supported partially, incorrectly or not at all
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.
Printer, TP170, OP170, Mobile Panel 170, OP270, TP270, MP270, MP370