2010 Ing. Punzenberger COPA-DATA GmbH All rights reserved. Distribution and/or reproduction of this document or parts thereof in any form are permitted solely with the written permission of the company COPA-DATA. The technical data contained herein has been provided solely for informational purposes and is not legally binding. Subject to change, technical or otherwise.
1. Welcome to COPA-DATA help... 1 2. Monitor administration... 2 3. New project... 3 4. Existing project... 4 5. Engineering in the Editor... 5 5.1 General settings... 5 5.2 Individual settings... 7 5.2.1 Defining monitors... 9 5.2.2 Defining virtual monitors... 9 6. Requirements for the Runtime... 11 7. Functions calls for screen selection... 12 iii
If you miss any information in this help chapter or have any suggestions for additions, please feel free to contact us via e-mail: documentation@copadata.com (mailto:documentation@copadata.com). If you have concrete questions relating to your project, please feel free to contact the support team via e-mail: support@copadata.com (mailto:support@copadata.com) If you realize that you need additional licenses or modules, please feel free to contact the sales team via e-mail: sales@copadata.com (mailto:sales@copadata.com) 1
The tasks of the monitor administration are: Output Free output of a screen on any monitor and changing of the assignment of a screen -> monitor in the Runtime. All screen types (e.g. alarms list, menus,...) and functions (e.g. Close screen), related to the screen or frame, must automatically be taken over. Integration Integration of stations with different resolutions into one project (e.g. in network) Operation Mixed operation of 1 and 2 monitor systems The monitor administration in zenon affects frames and screens. Dialog boxes - even the ones in zenon - are subject to the Windows settings. Attention If more than one project is held in the memory, the active project determines the monitor settings for all loaded projects. If the active project is a single monitor project, no target monitor can by chosen in a multi monitor project. The settings of the integration project are always true in the Runtime. Please see also tutorial Monitor administration (Monitoradministration.chm::/Monitoradministration.htm). 2
When a new project is created, the screen resolution for the monitor configuration is automatically adjusted to the current screen resolution. The following procedure is recommended with new projects: Before the start of the project parametrization, the screen resolution must be set. This resolution should be set before the start of the project parametrization and not be changed afterwards, as this can lead to stretching of the screens, if the relation width/height of the resolutions is not the same! Attention For new projects the resolution of the current station is entered here as a default. If the project (Runtime) should run on a station with a different resolution, this setting has to be changed before the start of the project parametrization. Define the appropriate number of virtual (technical) monitors (e.g. for overview and detail screens, lists, trends, protocols, etc.). So it is possible to generate different combinations for the monitor selection via the function Monitor assign. For the change of the monitor selection you should use predefined scripts with the required Monitor assign functions. The online monitor selection in the Runtime only makes sense if all the screens that are switched in one step should be opened on the same monitor. Frames have to be related to the left monitor. 3
In existing projects the handling of different monitors can offer the following advantages: Surpressing of double screens for different resolutions Integration of computers with different numbers of monitors in one network project In large projects the change of all Screen switch functions requires a great amount of work in projecting and testing. So we recommend the following procedure: When integrating computers with a small number of monitors (e.g. home control) the overview window should be used. So all monitors can be accessed quickly and the only change in the project is the integration of the function Overview Window. Frames have to be related to the left monitor. 4
In this way the monitor administration is set. In the Project Manager navigate to Project -> Properties -> Graphical design -> Runtime general and open property Monitor administration with a click on... The dialog for configuring the monitor properties opens: Physical monitors Defines the number of the physical monitors by means of the Change button. Virtual monitors Defines the number of the virtual monitors by means of the Change button. These are displayed as V_00 to V_nn in the list. With the help of button Rename, you then can change the names of virtual monitors. Monitor profiles Defines central monitor profiles. They are only valid in the Runtime. Each monitor profile has its own tab for individual configuration (on page 7). 5
Copy... Creates a new profile based on the selected profile and opens the dialog for entering a name. Rename... Opens the dialog for renaming a profile. Delete... Deletes the selected profile without confirmation. Monitor profile which is loaded by the Runtime on this computer. Opens the drop-down list for selecting the profiles which should be used in the Runtime. Note: On a remote computer, you may have to enter the profile in the file zenon6.ini manually: navigate to the [DEFAULT] area add the following entry: ScreenProfile=name of the monitor profile Screen resolution Resolution in which the project is carried out in the Runtime. Hint: Define these settings before you start engineering the project. Changes later on can cause distortion in the display if the relation width/height does not fit the resolution! Default: Resolution of the current computer. Apply from current monitor Applies the resolution of the currently active monitor as resolution for the monitor profile. Info If you have only the Runtime and not the Editor installed on a computer, you can define the desired monitor profile as follows: Open the file zenon6.ini with a text editor. navigate to the [DEFAULT] area add the following entry: ScreenProfile=name of the monitor profile Save the file and close the text editor 6
Attention The first virtual monitor is the default monitor. In the properties of the project in the Project manager the selective settings for the single monitor configuration are made under Monitor administration. Online menu Behavior of the online menu in the Runtime. Show online menu Active:The menu is displayed at a screen switch in the Runtime and offers the monitors for which the property Online menu was activated. Display time Time in seconds for which the online menu is kept open. Change label for button "Cancel" Label for the button with which the online menu can be closed in the Runtime: % shows the remaining seconds until the automatic cancel. Esc closes the online menu Active: The online menu can also be closed by pressing Esc. 7
Appearance of the Runtime Defines display options in the Runtime Adjust display to monitor resolution Active: the project resolution is adjusted to the monitor resolution of the current computer. Inactive: here you can fix the resolution of the project, i.e. the resolution of the project is not adjusted to the current resolution. Consider header for the adjustment Active: The title height is considered in the frame editor and in the runtime. This property exists out of compatibility reasons and is usually not needed. Consider main menu for the adjustment Active: The menu height is considered in the frame editor and in the runtime. This property exists out of compatibility reasons and is usually not needed. Show scroll bar Active: Scroll bars are displayed in the Runtime. With this you can use screens whose display area is larger than the available monitor area. Physical monitors List with all physical monitors and the properties allocated to them. Change Opens the dialog for defining the individual properties of the selected monitor. Virtual monitors List with all virtual monitors and the properties allocated to them. Change Opens the dialog for defining the individual properties of the selected monitor. 8
5.2.1 Defining monitors Name Name of the monitor Position Describes the position and resolution of the monitor. e.g.: Monitor left: 0/0/1680/1050 Monitor right: 1680/0/3360/1050 Monitor does not exist, thus allocate to Active: Makes it possible to select another physical monitor from a drop-down list which is allocated to it, e.g. it is currently not connected to the computer. Show in online menu Active: in the Runtime at every call up of a screen which is allocated to this monitor the online menu for selecting monitors is displayed. 5.2.2 Defining virtual monitors 9
Name Name of the virtual monitor. Set allocation Settings for the allocation of the monitors. Show in online menu Active: in the Runtime at every call up of a screen which is allocated to this monitor the online menu for selecting monitors is displayed. Map to Allocated the virtual monitor to a physical monitor. In the Runtime you can change this allocation with the help of function Monitor assign. 10
In the zenon6.ini the real monitor resolution has to be entered, so that the monitor administration works correctly in a multi-monitor system. zenon web client is an exception. There these settings are not necessary. The following ini entries are necessary here: [DEFAULT] RT_CXMAINFRAME=2559 Width of the main window in pixels RT_CYMAINFRAME=1023 Height of the main window in pixels Please be aware, that the entries have to be one pixel less than the real monitor size, as counting here starts with 0. The numbers of the example above are the settings of a double-monitor system, where both monitors have a resolution of 1280x1024 pixels (width 2x1280-1=2559, height 1024-1=1023). Info If the values are higher than the really available area, it can happen, that nothing is displayed! Attention If the Windows taskbar is fixed, nothing is displayed on the second monitor. This problem can be solved by automatically hiding the Windows taskbar or setting RT_CYMAINFRAME to values, that the taskbar is excluded, e.g. RT_CYMAINFRAME=1023. 11
The function Screen switch now has additional parameters, where you can define the target monitor. Attention Monitor: Here you define the virtual monitor, where the screen should appear. With the selection Current monitor the screen is displayed on the virtual monitor from which it was opened. This selection is e.g. appropriate for menu screens that are called from a screen script. The option Select means that the menu for the monitor selection is opened before each screen switch. Similar options to those in the function Screen switch now are also available in the function Change the screen with selection. If in the Runtime screens with option Online select are selected, before the screen is opened a menu appears that allows you to select a real monitor for the screen. 12