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 do you configure a screen change via the controller in WinCC flexible?Go to beginning
Part number:

Description
You would like to configure a screen change controlled by a process via the controller. Various options are available to you.

  • Using the "Controller Job" area pointer.
  • Using a trigger tag.

Using the "Controller Job" area pointer
You enable the "Controller Job" area pointer in the connection settings. Controller job 51 performs a screen change. The area pointers are available for HMI Panels and WinCC flexible Runtime Advanced.
For further details about this topic, go to Entry ID: 24372078 and to WinCC flexible 2008 Communication Manual (Entry ID: 18797552) under "Communication Part 1 > Communication with SIMATIC S7 Controllers > User Data Areas > Area Pointer > "PLC job" Area Pointer".

Using a trigger tag
Alternatively you can configure screen change via a tag in the controller. Proceed as follows:

  1. Create a "PicNo" tag with the data type "Int" in the controller.
  2. Insert this tag as an HMI tag in the operator panel. Set the acquisition mode of the tag to "Cyclic continuous".


    Fig. 01
     
  3. Configure the "Activate Screen By Number" function for the "Value change" event of the tag.
     
  4. Select the "PicNo" tag for the "Screen number" field.


    Fig. 02

Each time there is a value change of "PicNo" there is a change to the screen whose screen number is the new value of "PicNo".

How do you make printouts on different printers in WinCC flexible PC Runtime?Go to beginning
Part number:

Instructions
In WinCC flexible PC Runtime you cannot explicitly specify printers for printouts. All printouts from the WinCC flexible PC Runtime are always output on the default printer set in Windows.

To have printouts from WinCC flexible PC Runtime output on different printers, the printers concerned must be installed as default printers in Windows. You can do this manually before each printout using the Printer dialog in Windows (Start > Settings > Printers and Faxes > Define as default), but this is inconvenient. Alternatively the default printer can be changed with a VB script while WinCC flexible Runtime is running. You can link this script to a button, for example, which sets a specific printer as default printer in Windows and then starts the printout. The script is structured so that you can use it repeatedly and the printer to be activated is transferred to the script as a parameter.

Procedure
Please proceed as follows to create the script.
 
No. Description
1

Create a new script
Navigate in the project tree to the "Scripts" area and create a new script with "Add Script". The new script is opened automatically in the working area.


Fig. 01

2

Make the basic settings of the script
After the empty script has been opened, you can make the basic settings in the inspector window. Here you specify a unique name for the script, for example "fSet_DefaultPrinter" and select "Function" as type. Create a new parameter, for example "sPrinterName", and add this to the interface of the script using "Add".


Fig. 02

3

Create a new tag
In WinCC flexible you create a new tag of the "Bool" type, for example "RETVAL_fSet_PrinterDefault". This tag later contains the return value of the "fSet_DefaultPrinter" function; if the function is executed without an error, the value is "1", otherwise "0". Configure the tag as below.


Fig. 03

4

Program the script
Now program the script for changing the default printer in Windows. The complete script is given at the end of this entry or as a text file in the download of the FAQ entry.


Fig. 04

5 Buttons for printer change
Configure a separate button in a picture for each of the printers to be used. The figure shows a switch between the two printers "MA11193D" and "Adobe PDF".
The return value "RETVAL" of the "fSet_DefaultPrinter" function is shown in an IO field. Link the "RETVAL_fSet_DefaultPrinter" tag to the IO field.


Fig. 05

6

Determine the printer name in Windows
Proceed as follows to determine the printer name for the script in WinCC flexible.

Open this path in Windows: "Start" > "Settings" > "Printers and Faxes".
There you will find a list of all the printers available and their names. Use a unique (sub)string from a name in the list as the "sPrinterName" parameter of the script. For example "Adobe PDF" and "MA11193D" as in the screenshot shown.


Fig. 06

7

Script call with the buttons
Open the Properties of one of the two buttons and configure a call of the "fSet_DefaultPrinter" script in the function list under "Events > Click".
Assign the call as shown. Provide the return value with the "RETVAL_fSet_DefaultPrinter" tag created in Step 3. Use the printer name as created in Windows as parameter for the printer name "sPrinterName". Repeat this step for each printer and each button you have created in your picture. You can use the same tag each time as return value, because it is always the same script that is executed. However, the printer name must be changed for each separate call.


Fig. 07

Complete VB script
The complete script is in the PDF file below.

WinCC_flexible_RT_changing_printer_Skript_e.pdf ( 9 KB )

Keywords
Output device, Switch, Redirect, Change, Default printer, DefaultPrinter

How can you import/export configuration data (discrete and analog alarm messages, tags and connections) from/to a CSV file in WinCC flexible 2008?Go to beginning
Part number:

Description:
In WinCC flexible 2008 you can import and export connections, tags and analog and discrete alarm messages from/to a CSV file. You can changed exported CSV files individually by adding tags, for example. You can then import these CSV files again into an existing project.

Contents:
1. Export messages, connections and tags
2.Open and edit CSV file
    2.1 Edit CSV file with Excel
    2.2 Edit CSV file with Notepad
3. Import messages, connections and tags
4.Information on errors and error messages
    4.1 Information on error messages in the output window during importing
    4.2 Information on errors after importing

Note:
In older versions of WinCC flexible, you can only import/export messages via mass data that is already in WinCC flexible. More information is available in Entry ID: 21976672.

1. Export messages, connections and tags
The table below explains how to export in a CSV file.
 
No. Procedure
1 Open WinCC flexible project  
  • Start WinCC flexible.
  • Create a new project or open an existing project.
2 Optional: create connection
If you have already created a connection, you can skip this point and go directly to Point 3.
  • Click on "Communication > Connections".
  • Specify the relevant connection parameters.


Fig. 01

3 Create discrete or analog alarm messages
If you have already created discrete or analog alarm messages, you can skip this point and go directly to Point 4.
  • Open the editor for discrete and analog alarm messages by clicking in the project tree on "Alarm Management > Discrete Alarms" or "Alarm Management > Analog Alarms" (1).
  • Create discrete or analog alarm messages (2).
  • Link the trigger tags (2) to the relevant messages.

    Note:
    You can also configure multilingual discrete and analog alarm messages. For this, multiple languages must be selected in the project tree under "Language Settings > Project Languages" (3). You select the project's editing language in the "Language settings" selection list in the toolbar (4).

Fig. 02
4 Open CSV export dialog
  • In the menu you click on "Project > Import / Export... > CSV Export...".

    => The CSV export dialog opens - see Fig. 04.


Fig. 03

5 Export CSV files
  • Select the appropriate operator panel (1) if there are multiple operator panels in the WinCC flexible project.
  • Select the output folder of the CSV file (2).
  • Enable the desired selection boxes (3) if not already done.
  • Click on "Export" (4).

    => All the selected "types" are exported separately to a CSV file.


Fig. 04

2. Open and edit CSV file
Since the CSV file might contain multilingual analog and discrete alarm messages in Unicode format, you need a Unicode-compatible editor to edit the CSV file. You can use "Excel" or "Notepad", for example, for editing.

Note:
The editor used must not replace the tab character with a space, because the tab character is used as a separator. You can use other separators for import (tab, comma, period, semicolon and user-defined separators).

2.1 Edit CSV file with Excel
Excel is convenient for editing the CSV file.
 
No. Procedure
1 Open CSV file with Excel
  • For example, open the CSV file "Alarm.csv" with Excel.

    Note:
    Since the CSV file has no layout data, the width of the columns is not optimum.

    Remedy:
    Select all the cells or use the key combination "Ctrl + A". In the menu you click on "Format > Column > Autofit Selection".


Fig. 05

2 Add discrete alarm message 
  • Add a discrete alarm message including all the necessary attributes.
     
    Attributes Example
    Alarm type D
    Alarm number 9
    Alarm class Alarms
    Trigger tag Discret Alarms
    Trigger bit number 8
    Acknowledgment HMI tag --
    Acknowledgment HMI tag bit number --
    Acknowledgment PLC tag --
    Acknowledgment PLC tag bit number --
    Alarm group --
    Reported 0
    Text[de-DE] de-DE=Bitmeldung Meldetext 09
    Text[en-US] en-US=Discrete Alarms Message 09
    Field info[01] --
    Infotext[de-DE] de-DE=
    Infotext[en-EN] en-US=
    Table 01 - Discrete alarm message attributes

    Note:
    If you want to add another language, then you should add to language beforehand in the WinCC flexible project and then export the CSV file. You can also add more languages to the CSV file manually.

3 Optional: add country code automatically
If you want to add multiple message texts to the CSV file, then in Excel, you can also have the language-specific country codes added automatically (e.g. "de-DE=").
  • Mark the relevant columns in the Excel table.
  • In the menu you then click on "Format > Cells...".
  • In the "Number" tab you select "Customer" under "Category:".
  • Under "Type:" you enter the relevant country code with the @ character as suffix.
  • Click on "OK".
  • Enter a text without country code prefix in the relevant column.

    => The country code is now entered automatically.


Fig. 06

4 Save CSV file
  • Save the changed CSV file in Unicode format.

    Note:
    If you use "File > Save As...", then you must select the file type "Unicode Text (*.txt)" - even for a CSV file. The extension ".csv" must be contained in the file name.
     
  • In the dialog that opens - see Fig. 07 - you click on "Yes" to retain the Unicode features of the CSV file.


Fig. 07

2.2 Edit CSV file with Notepad
If Excel is not available, then you can use the Windows Notepad editor as an alternative.
 
No. Procedure
1 Open CSV file with Notepad
  • For example, open the CSV file "Tag.csv" with Notepad.
  • Add a new tag - see Table 02 - including all the necessary attributes.

    Note:
    Use the tab character set by the tab key as separator between the individual attributes.
     
    Column Attributes

    Example

    A Name Folder\New/Tag
    B Connection Connection_1
    C Address DB 10 DBW 0
    D Data type Int
    E Length --
    F Array element 1
    G Acquisition type 3
    H Acquisition cycle 1s
    I Upper limit --
    J Additional upper limit --
    K Additional lower limit --
    L Lower limit --
    M Linear scaling 0
    N Controller end value scaling 10
    O Controller initial value scaling 0
    P Operator panel end value scaling 100
    Q Operator panel initial value scaling 0
    R Starting value 0
    S Update identifier --
    T Comment (max. 500 characters) --
    Table 02 - Tag attributes

    Note:
    The slashes "\" and "/" are usually used as folder separators for fully qualified names. However, the slashes "\" and "/" can also be valid characters within a name. If folder or slashes are used in tags, then the separator must be specified explicitly upon import.

    Example:
     

    Separator

    Folder Tag
    "/" Folder\New Day
    "\" Folder New/Tag
    "." -- Folder\New/Tag
    Table 03 - Examples of separators


Fig. 08

Remark:
Each line that starts with a double slash "//" or hash mark "#" is a comment line and is not taken into account upon import.

2 Save CSV file
  • Save the CSV file.

    Note:
    If you use "Save As...", then you must select "Unicode" as the coding. The extension ".csv" must be contained in the file name.
     
  • Then close Notepad.


Fig. 09

3. Import messages, connections and tags
The table below explains how to import from a CSV file.
 
No. Procedure
1 Open WinCC flexible project  
  • Start WinCC flexible.
  • Create a new project or open an existing project.
2 Open CSV import dialog
  • In the menu you click on "Project > Import / Export... > CSV Import...".

    => The CSV import dialog opens - see Fig. 11 - in a CSV file.


Fig. 10

3 Add CSV files
  • Select the appropriate operator panel (1) if there are multiple operator panels in the WinCC flexible project.
  • Enable all the relevant types (2) that you would like to import.
  • Add the storage path including the CSV file by clicking on the relevant field (3) and then clicking on the button that is displayed.

    Note:
    You have the option of overwriting existing tags and connections; otherwise only new connections and tags are added.
     
  • In the case of tags, you click on the button (4) for options.


Fig. 11

4 Define import options
You can define special import options for connections and tags.
  • Select the slash "\" as folder delimiter.
  • Click "OK" to close the dialog. 
  • Finally, you click on "Import" (5) - see Fig. 11.


Fig. 12

5

Optional: verify tags and connections

  • You verify the import of connections by clicking on "Communication > Connections".
  • You verify the import of tags by clicking on "Communication > Tags".

    Note:
    Where applicable, also check the subfolders of the imported tags.


Fig. 13

6 Optional: verify discrete and analog alarm messages
  • You verify the import of analog alarm messages by clicking on "Alarm Management > Analog Alarms".
  • You verify the import of discrete alarm messages by clicking on "Alarm Management > Discrete Alarms".


Fig. 14

4. Information on errors and error messages
Below we briefly describe the information provided on possible errors after importing CSV files and error messages displayed in the output window of WinCC flexible.

4.1 Information on error messages in the output window during importing
The error messages in the output window provide information on error location (coordinates) in the CSV file.

<Prefix>: error in line 9 starting at character 12: <error text>

Proceed as follows to locate the error.

  1. Open the defective CSV file with Notepad.
  2. Ensure that automatic line break has been disabled in the menu item "Format > Line break".
  3. Ensure that the status bar has been enabled in the menu item "View > Status bar".
  4. Navigate the cursor to the designated location. You have reached the location when the status bar of Notepad displays exactly the coordinates from the error message. Therefore, in the example described above, line 8, column 12 must be displayed in the right corner of the status bar of Notepad.

Note:
If you want to use a different editor to locate errors, then you must ensure that the tab character is interpreted as a single character (and not as a number of spaces) - if no other separator is used.

4.2 Information on errors after importing
Possible errors after importing:

Error:
After importing CSV files, invalid cells (marked "red") are present - for example, in the trigger tag in the editor for discrete alarm messages.

Cause:
In WinCC flexible, names are used as references to other objects. If a name is not found when importing into WinCC flexible, an open reference is generated and the place where it is used is marked "red". This object is unknown in the WinCC flexible project.

Remedy:
You have two options:

  1. Always import tags and alarm messages together. Here, you must must ensure that the trigger tags used for the discrete and analog alarm messages are contained in the CSV file for tags.
  2. The objects used must be created manually before or after importing (e.g. the trigger tag must be in the tag editor).

Keywords:
CSV export, CSV import, Import text file, Export

How can you have hardware diagnostics data of SIMATIC IPCs displayed in WinCC flexible?Go to beginning
Part number:

Description
In SIMATIC WinCC flexible, you can have the following PC diagnostics data displayed via internal tags:

  • Temperature display of the CPU or mainboard
  • Display of operating and error status of available fans
  • Display of operating or error status of any available UPS (uninterruptible power supply)
  • Display of operating and error status of any available PLC software (WinAC RTX)

There are different procedures for displaying the diagnostics data in WinCC flexible for SIMATIC IPCs of the B and C generations.

Function of SIMATIC IPCs of the C generation

The SIMATIC IPC DiagMonitor with order number "6ES7648-6CA04-2YX0" is available for evaluating the diagnostics data with SIMATIC IPCs of the C generation.

If the SIMATIC IPC DiagMonitor is installed on the SIMATIC IPC, the a sample WinCC flexible project is installed during the Setup routine.
The sample project is located in the installation path. If the default path is used for the installation, the "DMV4OPCWinCCFlex2008.zip" file is in the following path: "C:\Program Files\Siemens\DiagnosticsManagement\OPC Samples".

Furthermore, a text file is also stored in this path. This text file describes how you can parameterize the DiagMonitor in conjunction with the sample project.
The text file is "readmeWinCCflexible.txt".

Function of SIMATIC IPCs of the B generation

  1. Requirements and function
    1.1 Hardware Requirements
    1.2 Software Requirements
    1.3 Compatibility
    1.4 Function
  2. Configuration in WinCC flexibleand OCX registration
    2.1 Content of pictures in the WinCC flexible sample project
    2.2 Content of the scripts in the WinCC flexible sample project
    2.3 Notes on integrating the sample project in an existing project
  3. Verification of the sample project
  4. Download

1. Requirements and function
Specific hardware and software requirements must be met for evaluating the PC diagnostics data.

1.1 Hardware requirements

  • SIMATIC Microbox 427B, Panel PC 477B
  • SIMATIC Box PC 627B, SIMATIC Panel PC 677B
  • SIMATIC Box PC 827B
  • SIMATIC Panel PC 577B
  • SIMATIC Rack PC 847B

1.2 Software requirements

  • SIMATIC PC DiagBase
    SIMATIC PC DiagBase is freeware that accesses the PC's hardware and provides data like the temperature of the CPU or mainboard in a Windows application. SIMATIC PC DiagBase is the successor to the previous PC diagnostics software "SOM". SIMATIC PC DiagBase is available for downloading in Entry ID 29316343.
  • PC DiagBridge (PCDiagBridge.exe)
    The freeware PC DiagBridge is an ActiveX application that provides a programming interface. You can install the software on the SIMATIC Industrial PCs listed above. The diagnostics data is provided via a COM interface. You can download the software at the end of this entry under Download.
  • WinCCTrigger.ocx
    The "WinCCTrigger.ocx" is an ActiveX control needed to call the WinCC flexible script cyclically every 2 seconds. The ActiveX control is included in the Download and must be registered on both the configuration PC and the SIMATIC PC.
  • WinCC flexible Runtime
    WinCC flexible Runtime must be installed in order to be able to start the WinCC flexible project. WinCC flexible Runtime is subject to license.
  • BIOS version
    The hardware diagnostics data depends on the BIOS version, because the "DiagBase API" accesses the BIOS. A BIOS update might be required to be able to evaluate the diagnostics data completely. The "Readme" file of the PC DiagBase gives you the BIOS version required.

1.3 Compatibility
The following table shows the compatibility between PCDiag and PCDiagBase.
 
Software PCDiag V1.0 PCDiag V1.1.1 Object 1)
PCDiagBase V1.0 x - PCDiag.cPCDiag
PCDiagBase V1.1 - x
PCDiagBase V1.2 - x PCDiagBridge.cPCDiag
1) In the "PCDiagBridge" script, you need the relevant object designation in line 19 for "CreateObject".

Example
Set PCDiag = CreateObject(PCDiag.cPCDiag)

1.4 Function
Both software components, PC DiagBase and PC DiagBridge, must be installed on the PC system in order to be able read out the diagnostics data. PC DiagBridge (PCDiagBridge.exe) cannot run without PC DiagBase. In principle, from the user side, WinCC flexible cannot access DLLs (Dynamic Link Library), which is why you need the PC DiagBridge (PCDiagBridge.exe) software. This software serves as a bridge between the system information and WinCC flexible. The ActiveX control "WinCC.Trigger.ocx" starts the "PCDiag Bridge" script cyclically. Data exchange is via the script with PC DiagBridge (PCDiagBridge.exe) and writes the data directly to the internal tag of WinCC flexible. Communication via the script is bidirectional. The PC DiagBridge (PCDiagBridge.exe) software component handles the complete data exchange with the other software and hardware components.


Fig. 01- Technologieschema

Notes

  1. In addition to the information from SIMATIC PC DiagBase, PC DiagBridge also provides information on the status of any SITOP UPS connected and any WinAC RTX installed.
  2. Detailed information on PC DiagBridge is available in the associated "Readme" file.
  3. It is only possible to provide data in PC DiagBridge if SIMATIC PC DiagBase is installed on the system.

2. Configuration in WinCC flexible and OCX registration
 
No. Procedure
1 Download the sample project
  • Download the file "WinCC_flexible_Projects_PC_Diagnostic.zip" under Download at the end of this entry.

    Note:
    The download contains sample projects for PC 427B, PC 627B and PC 847B.
2 Open the sample project
  • Unpack the compressed files.
  • Open the relevant project for the system concerned.

    Note:
    The three sample projects differ in the configuration only through the different hardware of the PC systems concerned.
3 Register OCX Trigger
You must register the ActiveX control "WinCCTrigger.ocx" on the configuration PC and on the SIMATIC PC.
  • Copy the "WinCCTrigger.ocx" file (contained in the Download) into the folder "C:\Windows\system32" or "C:\WINNT\system32" (in the Windows installations directory) on your hard disk.
  • In the Windows Start menu you click on "Run..." and enter the command line "regsvr32 WinCCTrigger.ocx".


Fig. 02 - Ausführen

You get the following message after successful registration:


Fig. 03 - Registrierungs-Meldung

Background
OCX Trigger is an ActiveX control that is needed to call the current data cyclically. ActiveX control is stored on the "Template" picture of WinCC flexible. Only pictures that use this picture template are updated cyclically.

5 Download and install PC DiagBase
  • Download the free software SIMATIC PC DiagBase from Entry ID 29316343.
  • Unpack the compressed ZIP file.
  • Install SIMATIC PC DiagBase on your SIMATIC PC by clicking on "Setup.exe".

2.1 Content of pictures in the WinCC flexible sample project

"Template" picture
OCX Trigger is stored on the template. Once the ActiveX control (OCX Trigger) has been enabled successfully, a stroke of lightning is displayed in a box. The OCX Trigger calls the PCDiagBase script cyclically every 2 seconds.


Fig. 04 - Vorlage

"Start" picture
In the Start picture you call the diagnostics picture via the "PC Diagnostic" button. In addition you can have system messages displayed and change the language.


Fig. 05

"PC Diagnostic" picture
The sample project contains a diagnostics picture with the following contents (depending on the sample project used):


Fig. 06 - Diagnosebild

  • Temperature monitoring
    If one or more temperature measurements are available for the system used, these are displayed as IO fields and as a bar chart. The dashed yellow line in the bar chart shows the lower limit value and the red dashed line the upper limit value.
  • Hard disks
    The static and dynamic (S.M.A.R.T.) tags are displayed.
  • Fans
    If fans are in the system, the speeds are displayed as IO fields with the associated limit values. In addition, each fan is shown with a status display.
  • Voltage monitoring
    With SIMATIC PCs the status of the CMOS backup battery is monitored and the number of operating hours displayed. If the CMOS voltage is correct, this is indicated by "OK" in a green box.
  • Monitoring of SITOP UPS
    If a SITOP UPS is connected, the LEDs on the front of the UPS light to indicate this.
  • Monitoring and controlling the WinAC RTX
    When using a WinAC RTX on the system, the status of the WinAC LEDs can be displayed. You use the "Run" and "Stop" buttons to put the WinAC into the respective modes.

2.2 Content of scripts in the WinCC flexible sample project

PC DiagBridge
This script is called cyclically by the OCX Trigger stored on the picture template. With each trigger the script fetches the current values of PC DiagBridge.

Celsius2Fahrenheit
The script converts the temperatures from °C to °F. The temperatures are displayed in degrees Celsius by default. This script must be called in the PC DiagBridge script in order to have the temperatures displayed in degrees Fahrenheit. This script must be called in lines 37, 38 and 39 (see example).

Example

SmartTags("VarPCDiag\LocalPCActTemperature")(i) = Celsius2Fahrenheit(PCDiag.TemperatureCurrent(CLng(i)))

2.3 Notes on integrating the sample project in an existing project
You should note the following when integrating the sample WinCC flexible project into an existing project:

  • The OCX Trigger must be stored on the template so that the diagnostics data can be called cyclically.
  • The PC DiagBridge script must be copied into the project.
  • The relevant tags must be copied or created.

3. Verification of the sample project
 
No. Procedure

1

Create WinCC flexible Runtime
  • Create the WinCC flexible Runtime by clicking on "Generate" icon in the toolbar.


Fig. 07 - Projekt generieren

2 Start WinCC flexible Runtime Loader (SIMATIC PC)
  • Start the "WinCC flexible Runtime Loader" on your SIMATIC PC.
  • Click the "Settings" button.


Fig. 08 - RT Loader

3 Configure WinCC flexible Runtime Loader (SIMATIC PC)
  • In the Settings dialog you configure the relevant connection for project transfer on your SIMATIC PC.
  • The click "OK" to close the dialog.
  • Finally, you click "Transfer" in the RT Loader (see Fig. 08).


Fig. 09 - Einstellungen im RT Loader

4 Start WinCC flexible Runtime
  • Click on "Transfer settings" (1) in the toolbar.
  • Configure your connection (2) for the project transfer.
  • Transfer the Runtime (3) to your SIMATIC PC.


Fig. 10 - Transfer-Einstellungen

5 Check the PC Diagnostics picture
  • Go to the "PC Diagnostic" picture and check for proper functioning.


Fig. 11 - WinCC flexible RT-Projekt

  • If a WinAC RTX is installed on the system, you can check the correct function by pressing the "Run" or "Stop" button.
  • You can open PC DiagBridge and SIMATIC PC DiagBase to compare the diagnostic values.


Fig. 12 - PC DiagBase

4. Download
Attachment 1 contains three sample projects for the PC system concerned and the ActiveX object "WinCCTrigger.ocx".

 Attachment 1: WinCC_flexible_Projects_PC_Diagnostic.zip ( 6788 KB )

Entry ID: 29316343 you can download the "SIMATIC PC DiagBase" software free of charge.

In Entry ID: 42674746 you can download the "SIMATIC PC DiagBridge" software free of charge.

Note
The "Readme" file contains more information on installing and on the hardware and software requirements.

Runnability and test environment
The following table lists the components that have been used to create this entry and verify the functions described.
 
Components Product and version designation
PC operating system Microsoft Windows XP SP2
Standard tools PCDiag V0.1 with DiagBase V1.0
PCDiagBridge V1.1.1 with DiagBase V1.1
Engineering tool STEP 7 V5.4 SP3
HMI software WinCC flexible 2007 HF4
HMI system Microbox 427B
Box PC 627

Keywords
System evaluation, System information, OCX control = ActiveX control, SMART or S.M.A.R.T.= Self Monitoring Analysis and Reporting Technology

How can you do a report logging, a hard copy or report printing on a printer with Windows-based panel via HyperTerminal?Go to beginning
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

How is the diagnostic data of the DP diagnostics block FB125 in WinCC flexible visualized?Go to beginning
Part number:

Instructions:
Using the diagnostics block FB125 from the S7 project "DP_DIAxx" the individual Profibus users can be diagnosed in a Profibus subnet. You can download the diagnostics block or the S7 project under the following Entry ID 387257.


Fig. 01

You find the diagnostics screens adapted to the appropriate operator panels for ProTool and for WinCC flexible under the following Entry ID 5362473. If the operator panel is not in the download, use the download of the previous version of the operator panel.

Alternatively you can use the WinCC flexible Library that can be loaded at the end of the entry.

The following description explains how you incorporate the FB125 and the diagnostics screens for WinCC from the loadable library into your project:
 
No. Procedure
1 STEP 7 Open Manager
  • Create a new project in STEP 7 and add all hardware components.
  • Open the S7 project "DP_DIAxx".
  • Copy the FB125 and DB125 or alternatively the FC125 into your project.
  • Likewise add the OB82 and the OB86.


Fig. 02

2

Call function block FB125 in OB1

  • Call the FB125 including the DB125 in the cyclical program (for example OB1).
  • Save and close the appropriate block - in the example OB1.


Fig. 03

3 Creating WinCC flexible project
  • Select the project folder in the project path (1).
  • Add a new WinCC flexible station via the menu "Insert > Station > SIMATIC HMI Station" (2).


Fig. 04

Note:
For the Profibus diagnostics the WinCC flexible project must not necessarily be integrated in STEP 7. The requirement in the WinCC flexible project is the correctly configured connection to the controller in which the diagnostics block FB125 is called.

4 Opening WinCC flexible project  
  • Select the newly-created SIMATIC HMI station in the STEP 7 project.
  • Open the context menu with a right-click and click on "Open Project".
  • Select an operator panel (for example MP377).
  • In WinCC flexible configure the Profibus connection between controller and operator panel under "Communication > Connections".

    Note:
    Assign a clear user address.


Fig. 05

5 Open WinCC library  
  • Click on the toolbar (1) on "Library".
  • Open the context menu of the library with a right-click (2).
  • Under "Library..." choose "Open" (3).


Fig. 06

6 Adding WinCC flexible library  
  • Add by "Drag & Drop" the diagnostics screens of the opened library to the folder "Screens" in the project window.
  • Add three buttons with the following designations:
    - "Diagnostic Overview"
    - "Detail Diagnostic"
    - "Cable Diagnostic"
  • In the properties of each button configure under the event "Print" the system function "ActivateScreen" with the appropriate diagnostics screen.
  • Add another button in the diagnostics screens, to change to the Start picture.


Fig. 07

7 Transferring project
  • Connect the controller physically with operator panel.
  • Load the STEP 7 project into the appropriate controller.

    Note:
    You can also use the option package "PLCSIM" to verify the diagnostics block.

a) Verifying a real system

  • Transfer the WinCC flexible project into the operator panel or use the WinCC flexible PC-Runtime.
  • Switch the controller into the "RUN"-mode.

b) Simulation with PLCSIM

  • Open the option package "PLCSIM".
  • Load the STEP 7 configuration including STEP 7 program into the PLCSIM Station.
  • Switch the controller into the "RUN"-mode.
  • In the "PLCSIM" menu via "Execute > Trigger Error OB" click on "Rack Failure (OB86)...".
  • Switch to the "DP Failure" tab.
  • Select a configured DP Slave and then select "Station fault".
  • Then click on the "Apply" button.


Fig. 08

Note:
For the simulation with PLCSIM further illustrations are avoided, because the subsequent instructions are almost identical.

8 Verifying diagnostics blocks
  • Start the WinCC flexible Runtime.
  • Click on the button "Diagnostics overview".
  • With the real system cause a disturbance (for example separate a configured DP slave from the Profibus network).


Fig. 09

  • Click on the button with the "magnifying glass", to change the screen to "Diagnostics details".


Fig. 10

  • Change to the screen "Cabling diagnostics", by clicking on the second button below see Fig. 09.
  • Close PLCSIM as well as the WinCC flexible PC Runtime.


Fig. 11

Download:
In the attachment 1 you will find the library described above, available from WinCC flexible 2007.

Attachment 1: WinCC_flexible_Library_FB125.zip ( 10197 KB )

In Attachment 2 you will find the sample project described above. The current FB125 is available for downloading under the Entry ID 387257.

Attachment 2: Example_FB125.zip ( 3123 KB )

Runnability and test environment:
The following table lists the components that have been used to create this entry and verify the functions described.
 
Components Product and version designation
PC operating system Microsoft Windows XP SP2
Standard tools -
Engineering tool STEP 7 V5.4 SP3
HMI software WinCC flexible 2007 HF 4
HMI system MP377

Keywords:
Profibus diagnostics, DP Slave diagnostics

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)?Go to beginning
Part number:

Requirements

  • Windows-based panel with Ethernet interface
  • Crossover network cable or hub and standard network cable
  • PC with Ethernet interface
  • Printer with drive floppy disk or CD and connecting cable
  • ProTool V6.0 SP2 or WinCC flexible

Warning
Direct message logging via a network printer is not possible with Windows-based panels. All other print functions (hard copy, layer log) are possible via the network without any restrictions.

Configuration steps

  1. Installing the printer on the PC
  2. Setting up the network connection on the Windows-based panel
  3. Installing the printer on the Windows-based panel
  4. Printing with the Windows-based panel via the network

 

  1. Installing the printer on the PC
  • Connect the printer to the PC via a standard connection cable (USB, serial, parallel).
  • The operating system's automatic hardware detection recognizes the printer as new hardware on the PC.
  • If the printer's driver is supplied with the Windows operating system, the printer is installed automatically.
  • Otherwise the Hardware Update Wizard opens for installing the printer driver.
  • Insert the driver floppy disk or CD into the appropriate drive of the PC.
  • When installing the printer with the Hardware Update Wizard refer to the driver information provided.
  • Once the printer has been installed successfully it has to be enabled for access via the network.
  • For this, you open the printer dialog via "Start > Settings > Printer".
  • Mark the printer and open the Properties of the printer via "Right-click > Properties".
  • Switch to the Sharing tab and select the option Share this printer.
  • The share name of the printer must be specified in the printer settings on the Windows-based panel.


Fig. 1: Enabling printer sharing

  • Close the Properties dialog with Apply and OK.
  • Print a test page on the printer to check that the printer is working.
  1. Setting up the network connection on the Windows-based panel

Instructions for setting up a network connection on the Windows-based panel are available in Entry ID: 13336639 - "Setting up an Ethernet connection between a WinCE Panel (except the 170 series) and a PC".

  1. Installing the printer on the Windows-based panel
  • The entire configuration of the printer is done in the "Control Panel" on the Windows-based panel.
  • Open the "Printer" dialog.
  • Set the printer language of your printer in "Printer Language". This example uses a "Brother HL1250 Laser Printer" and so the printer language is set to "PCL Laser".
  • The "Port" specifies the interface via which the printer is connected to the Windows-based panel. Select "Network:", because the connection to the printer is set up via Ethernet.
  • In "Network" you specify the network path of the printer. The network path is made up of the computer name of the PC and the share name of the printer. For the computer name "hmi" and share name "BrotherH" (see Fig. 1) the path is: \\hmi\BrotherH.
  • You also have the option of using a print server. More information on the necessary requirements is available in the system manual of WinCC flexible 2008 SP1 in section 6.1. You can download the system manual in Entry ID: 34780187. The download is in chapter 3 Product Information.

Note
The printer can be addressed only via the computer name and not via the IP address of the PC.

  • You can also set the the paper size, portrait or landscape format, color or black-and-white print, and the quality of the printout.
  • Close the "Printer" dialog with OK.
  1. Printing with the Windows-based panel via the network
  • Finally you create a ProTool project for the Windows-based panel in which a print function like "Print_screen" is implemented.
  • Transfer the project to the panel.
  • Trigger the print function on the panel.
  • A system message is displayed on the panel when the print job has been completed successfully.

Notes

  • Enabled and tested printers for SIMATIC Panels and Multi Panels are given in Entry ID: 11376409.
    Info on link
    The printers released for ProTool V6.0 SP1a are located in the Excel table in the "Printer List Edition 01.01.2003" tab.
    All the "printers released" for ProTool V6.0 SP2 and higher are located in the Excel table in the Printer List Edition 12.08.2004 tab.
     
  • An example for checking the network connection between a WinCE panel and the PC is available in Entry ID: 13337379.

Keywords
ProTool, Print server, TCP/IP

How can you switch off the "Sleep" function on Brother printers?Go to beginning
Part number:

Sleep Mode with printers:
With some Brother printers the "Sleep Mode" makes it impossible for the operator panels to reach printer. Then an error message is displayed on the operator panel.

Below we show how to disable the "Sleep Mode".
 
No. Procedure
1

Using the "Remote Printer Console" tool you can disable the "Sleep" function that cannot be switched off otherwise. The printer then no longer goes into Sleep Mode.

At the following link you can download the tool from the printer manufacturer "Brother".
http://welcome.solutions.brother.com

Example for printer HL-5240:
Select the Region/Country > Regional Options > Select "Brother Series" > Select printer type > Downloads

Now select as follows:

  • Step 1: -> "Software Tools"
  • Step 2: -> "Your operating system, e.g. Windows XP"
  • Step 3: -> "The language, e.g. English"

Now click on "Find".
The following picture with the various software tools is displayed.

Select the "Remote Printer Console" tool.


Fig. 01

Note:
Note that the manufacturer site described and the procedure for finding the download might differ.
Furthermore, the "Remote Printer Console" tool is not available for each printer. (as at 19.03.2008)

2

Disabling the Sleep Mode:

  1. First install the "Remote Printer Console" tool.
  2. Start the tool.
  3. Switch to the "Custom" folder.
  4. There you change the "Sleep" parameter from "(not send)" to "off".
  5. Then click on "Send".

The Sleep Mode is now disabled for the printer.


Fig. 02

Printer list:
Released Printers for SIMATIC Panels and Multi Panels, see Entry ID 11376409.

How do you open a WORD document via an operator panel?Go to beginning
Part number:

Instructions:
In order to open a Word document via an operator panel, you need an operator panel on which a Microsoft Word Viewer is installed.
You can install such a viewer as an option on an MP 377.

Alternatively you can convert a Word document into an *.htm / *.html file.
You can output *.htm / *.html-Files over Internet Explorer with WinCC flexible operator panels from the 270 series.
Using the ProSave software you can re-install the "Pocket Internet Explorer" under the "Options" item.

Furthermore, there is also the option of configuring a direct access (remote access) to a PC and opening the Word documents there via the operator panel.

The following explains the different options in detail.
At the end of this entry there is a sample program in which the functions described are implemented.

  1. Display Word document with the integrated MP377 Word Viewer
  2. Open htm files stored on an MMC card via an operator panel
  3. Open htm files stored on a PC via an operator panel
  4. Remote access to a PC using Sm@rtAccess
  1. Display Word document with the integrated MP377 Word Viewer:
No. Procedure
1 Overview:
With the MP 377, you have the option to display Word, Excel and PDF documents via a Microsoft Viewer.
The appropriate Microsoft Viewer is transferred onto the MP 377 with ProSave.


Fig. 01

Fig. 01 gives an overview of the separate hardware components.

Point 1:
MMC card with stored Word, Excel and PDF document.

Point 2:
Operator panel MP 377 Touch with installed Word, Excel and PDF-Viewer.

Note:
Refer also to the following Entry ID 28879408 on this topic.

2 Function description:
You find a Word, an Excel and a PDF document for this application on the MMC card.
You can call up and view each of these files via the appropriate Microsoft Viewer by clicking on buttons on the operator panel.
3 MMC card:
  1. Copy the Word, Excel and PDF files straight onto the MMC card.
    (Files are attached to the sample project) 

You don't need to change any other settings.

4 Transferring the Microsoft Viewer with ProSave.
Open the "ProSave" software, make the required settings in the "General" folder and change to the "Options" folder. All available options are displayed.

Select the required Microsoft Viewer and transfer the option via the button ">>" onto the operator panel.
Once you have transferred the option, you have to restart/reboot the panel.

After restarting the panel, you now have the appropriate Microsoft Viewer symbols on the desktop and in the Start menu under "Start > Programs".

5 Operator panel:
The following describes an option for e.g. opening a Word document via the Microsoft Word Viewer.
Alternatively, you could open a Word document "by hand" by starting the Word Viewer directly via "Start > Programs > WORD VIEWER" and opening the Word document by selecting the appropriate storage location.

Calling the Word Viewer via a button and opening the Word document directly from the MMC card:
Three buttons are configured in the plant picture.
You use these buttons to call the Word, Excel and PDF documents stored on the MMC card separately.


Fig. 02

Function used:
"StartProgram" 

Parameters:
Program name:
"\flash\AddOn\MS_Word\docviewer.exe"
Program parameters:
"\Storage Card MMC\Word_01.doc" 

In the following table you find the storage location (program name) of each viewer.
 
Program name:
Word Viewer   \flash\AddOn\MS_Word\docviewer.exe
Excel Viewer   \flash\AddOn\MS_Excel\xls.exe
PDF Viewer   \flash\AddOn\MS_PDF\pdfviewer.exe

You don't need to apply any other settings on the operator panel.

Note:
You can also identify the storage location (program name) as follows:

  1. Open the Windows Explorer from the operator panel via "Taskbar > Programs > Windows Explorer.
  2. Open the "Windows" folder.
  3. Open the "Programs" folder.
    The "Shortcuts" for the separate applications are displayed.
  4. Select e.g. the shortcut "WORD VIEWER.LNK" and open the property via "File > Properties".
    The "WORD VIEWER" property window is opened.
  5. In the property window, change into the "Shortcuts" folder.
    The storage location (program name) to start the program is displayed.
  1. Open *.htm files stored on an MMC card via an operator panel:
No. Procedure
1 Overview:


Fig. 03

Fig. 03 gives an overview of the separate hardware components.

Point 1:
MMC card with stored *.htm files.

Point 2:
Operator panel MP 277 Touch with integrated Internet Explorer.

2 Function description:
There are Word documents converted to *.htm files on the MMC card.
Via buttons on the operator panel you can open these files via the integrated Internet Explorer of the MP 277 Touch operator panel and view operating instructions, for example.
3 MMC card:
  1. Convert a Word file into an *.htm file:
    Open a Word document and save the document with a new name. Under "File type": you select "Web page (*.htm; *.html)".
    Result: the document is converted into an *.htm file.
  2. Transfer the *.htm files to the MMC card.

You don't need to make any other settings.

4 Operator panel, plant picture "Screen 03":
There are three buttons configured in the "Screen 03" plant picture. You use these buttons to call up the *.htm files stored on the MMC card separately.


Fig. 04

Function used:
"OpenInternetExplorer",
Start page:  "\Storage Card MMC\Document\Manual_01.htm"

The name of the start page is composed as follows:
Storage path:       \Storage Card MMC
Folder name:      \Document
File name:         \Manual_01.htm

You don't need to make any other settings on the operator panel.

  1. Open *.htm files stored on a PC via an operator panel:
No. Procedure
1 Overview:


Fig. 05

Fig. 05 gives an overview of the separate hardware components.

Point 1:
PC, on which the converted .htm files are in a "released" folder.

Point 2:
Operator panel MP 277 Touch with integrated Internet Explorer.

Point 3:
Data exchange via an Ethernet connection.

2 Function description:
In a folder on the PC, there are Word files (operating instructions) that have been converted into htm files.
Via buttons on the operator panel you can open these separate files via the integrated Internet Explorer of the MP 277 Touch operator panel and view operating instructions, for example.
3 PC station:
  1. Convert a Word file into an *.htm file:
    Open a Word document and save the document with a new name. Under the "File type": item you select "Web page (*.htm; *.html)".
    Result: the document is converted into an *.htm file.

Note:
If the original document contains pictures, these are automatically stored in a separate folder.
Always save/backup this folder together with the associated *.htm file.


Fig. 06

  1. Release drive/folder:
    For the operator panel to be able to access the folder containing the *.htm files, the folder or drive must be "released".
    For this you open the Properties of the drive, for example.
    Under the item "Release" you can assign a new release name for the drive. You later access the files via this "release name".
    You can see whether a "release" is available from the hand icon under the drive.

You don't need to make any other settings on the PC.

4 Operator panel, plant picture "Screen 02":
There are three buttons configured in the "Screen 02" plant picture.
You use these buttons to call the *.htm files stored on the PC card separately.


Fig. 07

Function used:
"OpenInternetExplorer" ,
Start page: 
"\\ad110503nb\TEST\Document\Manual_01.htm"

The name of the start page is composed as follows:

  • Computer name:   
    \\ad110503nb   (Computer name)
    -> "Start > Settings > Control Panel > System"
  • Release name:
     \TEST
  • Folder name:
    \Document
  • File name:
    \Manual_01.htm

You don't need to make any other settings on the operator panel.

  1. Remote access to a PC using Sm@rtAccess:

No. Procedure
1 Overview:


Fig. 08

Fig. 08 gives an overview of the separate hardware components.

Point 1:
PC with installed WinCC flexible RT or WinCC flexible ES configuration software and enabled Sm@rtServer (enables remote access).

Point 2:
Operator panel MP 277 Touch with configured Sm@rtClient display.

Point 3:
Data exchange via an Ethernet connection.

2 Function description:
Via the configured Sm@rtClient display on the operator panel, a remote access is made to the PC connected via an Ethernet connection.
In order to be able to set up a remote connection to the PC, the Sm@rtServer must be started on the PC and the Runtime service "Start Sm@rtServer" enabled on the operator panel.

Via this remote access you can open files on the PC via the operator panel and view them (open WORD documents etc.).

3 PC station:
On the PC you need the "WinCC Internet Settings" function via which you can start the Sm@rtServer.


Fig. 09

If you have WinCC flexible RT or at least WinCC flexible Compact installed on your PC, then you have this service available.
You do not need a license for this service.

4 Operator panel, plant picture "Screen 01":
A Sm@rtClient display is configured in the "Screen 01" plant picture.
In the example attached you can enter the connection parameters via two IO fields directly on the operator panel.
Address:   ->  IP address of the PC. 
Password:  -> 100 (default setting, can be changed on the PC
                      under "WinCC Internet Settings"). 


Fig. 10

The connection parameters are permanently stored on the "On" and "Off" buttons.
Click on the appropriate button to set up or end the connection to the PC.

For this service you need the license
"WinCC flexible / Sm@rtAccess for Panel" for the operator panel.

Note:
You can use all the operator panels that support the Remote Server.

The attached download contains the archived WinCC flexible project with the functions described above.
Depending on the operator panel used, you can also use an SD card instead of the MMC card. See the operating instructions to find out which memory card your operator panel supports.

Attachment 1: Project_01.zip ( 3270 KB )

Runnability and test environment:
The following table lists the components that have been used to create this entry and verify the functions described.
 
Components Product and version designation
PC operating system Microsoft Windows XP SP2
Standard tools STEP 7 V5.4 SP3
Engineering tools --
HMI software WinCC flexible 2007
HMI devices MP 277 Touch; MP 377 Touch
Controllers --

Keywords:
PDF document; Word document,  Excel document

How can you use an operator panel to output a variable text input as barcode on a printer?Go to beginning
Part number:

Introduction:
In order to display a barcode via a PC-based or Windows CE-based operator panel or to output the barcode on a printer, you must first install a special character font on your configuration computer before configuring the operator panel.

One supplier of such fonts is Will Software, for example, at
http://www.will-software.com/infos/barsoft.htm.
There you can procure the barcode fonts you require and download barcode fonts for testing.

Program description:
The following program description was created for an MP270 Touch.

A faceplate with several input fields serves for entering data for a delivery note.
In addition, the faceplate includes output fields in which the text entered previously is displayed as barcode.
The data entered can be output later as barcode on a printer in the form of a "report output".

The barcode is created by direct input using a "TrueType" font.
Depending on the "barcode type", the Start and Stop characters are input with the "*" key.

Example: the character string "ABC1234" is to be coded.
Enter the text as follows: "*ABC1234*" and format it with one of the fonts, e.g. "Code 39". This generates a valid barcode.

Detailed information on the structure of various barcode fonts and the differences between them is available in the documentation of the barcode font provider and in the specialist literature.

Notes:

  • There can be no general guarantee that each barcode font offered is supported by each operator panel. If problems arise with the barcode font, please refer to the point entitled Assistance.
  • In this program description, we have taken the "Code-39-25 Plaintext" font.
    (Will Software).
  • The attached program download includes only a demo font ("Code-39-25").
    This demo font offers only restricted functionality.
No. Procedure
1 Installing the barcode font:

Once you have procured the required barcode font, e.g. "Code-39-25 Plaintext", you copy the font into the Windows directory C:\WINNT\Fonts\, for example.
There are usually other "TrueType" fonts already in the directory.
You recognize the fonts because they end in *.TTF.

Notes:

  • To a certain extent the fonts are also installed automatically by software provided by the provider.
  • If you have installed/copied the barcode font in the Windows directory, you must restart the computer.
2 Configuring WinCC flexible:

Note:
In order to print out a barcode, the operator panel must support the "Print report" function.
Create/open an MP 270 Touch project or create an operator panel that supports report printout.

3 Adding fonts:
Under Project > Device Settings > Languages and Fonts > "Configured font family 0" you select the barcode font you installed previously.
In this example we have chosen the "Code-39-25 Plaintext" font.

You must select the font for each Runtime language available.


Fig. 01

If you create a Panel PC / PC Runtime project, select the font under Project > Device Settings > Languages and Fonts > "Standard font".

4 Tag declaration:

Create a tag for an input field.
Furthermore you create a second tag for output of this text as barcode with the same properties. The tags do not need a controller connection.
Example:
Tag 1: "ArticleNo" of the String type.
Tag 2: "ArticleNoBarcode" of the String type.


Fig. 02

5 Script for creating the Start and Stop characters:

You can use a simple script to make entering the Start/Stop character easier.
The user then only has to enter the text later without the Start/Stop character.


Fig. 03

The script is executed each time the value of the "ArticleNo" tag changes.


Fig. 04

6 Creating input/output fields:
  • Create a faceplate.
  • Insert an input field into the faceplate with display as "character string".
    As tag, you use the string tag, Tag 1 => "ArticleNo".
  • Insert an output field into the faceplate with display as "character string".
    As tag, you use the string tag, Tag 2 => "ArticleNoBarcode".
  • Open the Properties of the output field for the Tag 2 (ArticleNoBarcode
    ). Properties > Text > Font and open the Properties of the font.
  • In the window that opens you select the barcode font you installed previously.
    In this case "Code 39-25 Plaintext".


Fig. 05

Note:
If you change the barcode font in an existing configuration, then you should check the settings made here afterwards.

7 Report printout:
  • Create a new report.
    Project tree > Reports > Add Report.
  • Insert your required tags into the report.
    In this case we use the same input/output fields that you configured previously under the
    item "Creating input/output fields:" .


Fig. 06

8 Printing out reports:

Configure a button in a faceplate and add the "PrintReport" function to it.


Fig. 07

9 Function description:

The operator can enter data for a delivery note via the input fields.
Accept the text with the "Enter" button and the text entered is automatically output as barcode in the corresponding output field. Press the "Delivery Note" button to output the data on a printer.


Fig. 08

Report printout:

  1. Report printout without demo font.

Attachment 1: Report-Original.pdf ( 12 KB )  

  1. Report printout with demo font.

Attachment 2: Report-Demo.pdf ( 11 KB )  

The attached download contains the archived WinCC flexible 2005 SP1 HF7 project with the functions described above.

Note:
The attached sample program includes only one demo font.
This means that there are the following restrictions.

  • Only uppercase letters are permitted.
  • No spaces are permitted.
  • No special characters are permitted.
  • No text output below the barcode.

  Attachment 3: Barcode_Demo.zip ( 2631 KB )  

Assistance:

What do you do if the barcode font is not displayed on the operator panel?

Some barcode fonts might not be able to be displayed on the operator panel.
The option described below is only a means of assistance. No general guarantee can be given that all barcode fonts can be used!
 
No. Procedure
1 Save barcode font directly on the operator panel:

If the barcode font is not displayed on the operator panel, save the font directly on the operator panel.
It is best to use a USB stick for temporary storage.
Notes on external storage media are available in
Entry ID: 21847868

2 Operator panel:
  1. Open the operator panel's explorer:
    Via the "Loader", you press the "Taskbar" button. You use this button to activate the taskbar with opened Windows CE Start menu.
  2. In the Windows CE Start menu, you select "Programs > Windows Explorer".
    The Windows Explorer opens.
  3. Open the "Storage Card USB" folder (if you have connect a USB stick to the USB interface) and mark your barcode font.
  4. Copy the file selected via the menu bar "Edit > Copy".
  5. Switch to the "Windows > Fonts" directory.
    Paste your barcode font in it (menu bar "Edit > Paste").
  6. Close the window via the menu bar "File > Close".
    The "Loader" menu is displayed again.
  7. Via the "Loader", you press the "Control Panel" button. The Control Panel opens.
  8. Open the OP's Properties by double-clicking on the "OP" icon.
    The "OP Properties" window opens.
  9. In the "OP Properties" you select the "Persistent Storage" folder and there you press the "Save Registry" and "Save File" buttons. This saves the barcode font in the internal memory of the operator panel.

The barcode font should now be displayed on the operator panel.

 Entry ID:22581736   Date:2014-07-16 
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