Keyboards
Keyboards
Keyboards
v.8.20
© 2020 Ing. Punzenberger COPA-DATA GmbH
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. Technical data is only used for product
description and are not guaranteed properties in the legal sense. Subject to change, technical or
otherwise.
Contents
2 Keyboards .................................................................................................................................................... 4
GENERAL HELP
If you cannot find any information you require in this help chapter or can think of anything that you
would like added, please send an email to [email protected].
PROJECT SUPPORT
You can receive support for any real project you may have from our customer service team, which
you can contact via email at [email protected].
2 Keyboards
Keyboards serve as virtual keyboards in zenon. Entries are possible in the Runtime using a
touchscreen with a virtual keyboard.
Note: Avoid the use of keyboard and the hardware key in mixed operation.
Two different types of keyboards can be configured in zenon Editor:
Automatic keyboard (on page 6).
Configurable keyboard (on page 8).
4 | 16
Keyboards
You can find further information in the RGM manual in the Keyboard chapter.
SPECIAL CASES
RECIPEGROUP MANAGER
A string keyboard is called up for the action type user status in the Recipegroup Manager.
If, in the Recipegroup Manager, a bool or numeric recipe parameter has the action type changed to
user status, the general string keyboard configured in the RGM is called up. If no keyboard screen is
linked there, direct editing mode is activated in the recipe value table.
If a dynamic text element is linked to a function that allows entries, the following is applicable:
The Write set value property is automatically activated and locked for further editing.
The Write set value via property only allows the selection of the following elements:
Standard dialog box:
Entry depending on configuration
Element:
Entry in the element directly
5 | 16
Automatic keyboard
3 Automatic keyboard
To use the automatic keyboard, proceed as follows:
1. Open the zenon Editor
2. Click on the project with which you would like to work.
3. Click on Interaction in the properties.
4. Activate the Automatic keyboard setting there under the Keyboard heading.
This setting is not activated by default. When activating, the automatic keyboard is created by the
system and is automatically called up in Runtime relatively close to the element. It appears where a
set value is to be entered. You can configure your own properties such as size or position by means
of the properties in the Editor.
Note: There are no automatic keyboards available for the profile control elements. In this case, it is
recommended that you create your own keyboard and call it up using a button. A profile name can
thus be entered on a touchscreen using a separate keyboard that is called up manually.
You can find further information in relation to this in the Runtime profiles chapter in the Runtime
manual.
To do this:
1. Open the zenon Editor
2. Click on the project with which you would like to work.
3. Click on Interaction in the properties.
4. Activate the Automatic keyboard setting under the Keyboard heading.
5. Enter the desired size in percent in the Keyboard size [%] field.
6 | 16
Automatic keyboard
Information
The height of the title bar is obtained from the display settings. The following
can be changed using the setting via Control Panel -> Appearance ->
Display -> Advanced -> Element: Palette title.
Horizontal Left (default) positions the left corner of the keyboard in relation
to the top or bottom left corner of the element.
Right positions the right corner of the keyboard in relation to
the top or bottom right corner of the element.
Horizontal offset [pixel] Horizontal space (in pixels) to the selected element for the
preferred position of the automatic keyboard. Positive values
move the keyboard to the right, negative values move it to the
left.
Default: 2.
Vertical With top (default) or bottom you position the keyboard above
or below the element.
Vertical offset [pixel] Vertical space (in pixels) to the selected element for the
preferred position of the automatic keyboard. Positive values
move the keyboard upwards, negative values move it
downwards.
Default: 2.
7 | 16
Configurable keyboard
4 Configurable keyboard
The keyboard can be configured or defined by the user. To do this, proceed as follows:
1. Open the zenon Editor
2. Click on the project with which you would like to work.
3. Create a new frame under Screen ->Templates.
Note: Keyboards always need their own frame that should only be used for keyboards.
4. Configure Positioning and size of the template in the Position template properties group.
The size and position of the keyboard in Runtime are also defined as a result.
5. Under Screens, create a new keyboard screen (on page 9).
6. Configure the content of the screen:
a) select menu item Control elements from the menu bar
b) Select Insert template in the drop-down list.
The dialog to select pre-defined layouts is opened. Certain control elements are inserted
into the screen at predefined positions.
c) Remove elements that are not required from the screen.
d) If necessary, select additional elements in the Elements drop-down list. Place these at the
desired position in the screen.
Configurations of the keyboard keys (such as color or shape) can also be changed in the properties of
the control elements. In doing so, note that, depending on the control element, not all properties can
be changed. For example, the Text line 1 property of a control element, which represents a key,
cannot be changed. The property is grayed out in this example.
Information
Use of the Standard template is recommended.
8 | 16
Configurable keyboard
ENGINEERING
Steps to create the screen using the properties if the screen creation dialog has been deactivated in
the menu bar under Tools, Settings and Use assistant:
1. Create a new screen.
To do this, select the New screen command in the tool bar or in the context menu of the
Screens node.
9 | 16
Configurable keyboard
Toolbar
1. Click on Screens in the Project Manager.
2. In the detail view of the Project Manager, click on New screen in the toolbar.
You have several possibilities for determining the screen type of the new screen:
Properties:
1. Click on General in the properties.
2. Click on the arrow on the right under screen type and select the keyboard screen type in the
drop-down list.
3. In the properties of the General group, select a pre-defined keyboard as a name or give it a
freely-definable name.
Attention: Keyboard screens with reserved names have priority in the Runtime over other keyboard
screens, including the screen Automatic keyboard for touch operation.
If a keyboard screen is called up over the whole screen, instead of just a dialog, it can be the case that
menus are hidden.
Hint: In that case, engineer a Close frame function which allows you to close the open
keyboard-frame.
In the screen properties, under General, there are several key words under Name. You can read what
these are for in the following:
RESERVED NAMES
For screen type keyboard, the following names have been reserved:
Name Description
DIALOGKBD if a screen with this name exists, it will be opened in the Runtime every time
a dialog is loaded, e.g. for entering a new recipe name in the RGM.
10 | 16
Configurable keyboard
Name Description
element Set value input element and not suitable for it. The use of this
combination can cause errors in the Runtime.
SETBOOLKBD If a screen with this name exists, it will be opened in the Runtime every time
an input for binary variables is required.
SETSTRINGKBD If a screen with this name exists, it will be used in Runtime instead of the
standard dialog box for string variables.
SETVALUEKBD If a screen with this name exists, it will be used in Runtime instead of the
standard dialog box for numeric variables. The control element set value
input must be inserted in the keyboard.
Note: Use the control element Set value input only for keyboards which are created for the input
of input set value (SETVALUEKBD, SETSTRINGKBD). It is automatically connected to the variable of
the dynamic element that is to receive the set value. When using a normal Keyboard, unwanted
results may occur.
It is imperative for Keyboards that are used for setpoint input to have the control element Setpoint
input projected in the screen. If not, it is impossible to enter values or to send set values.
the screens must not be based on the same frame. In this case, the DIALOGKBD would be used
automatically.
A keyboard button has more properties than a normal button in zenon Editor. This can be seen and
defined under Display. Special characters can be defined this way.
11 | 16
Configurable keyboard
Insert template Opens the dialog for selecting a template for the
screen type.
12 | 16
Configurable keyboard
Set value input Allows the input a set value. Must be configured in
the screen for SETBOOLKBD, SETSTRINGKBD and
SETVALUEKBD.
13 | 16
Configurable keyboard
Send value The set value is written to the variable, updated in the
recipe and the keyboard is closed.
Send value and save recipe The set value is written to the variable, updated in the
recipe, the recipe is saved and the keyboard is closed.
Value displays as Text 1 Keys can be linked with limit values from a reaction matrix.
to To do this, the variable of the recipe parameter
Value displays as Text 32
must be linked with Numeric reaction matrix or
String reaction matrix and
The functionality of the virtual keyboard keys corresponds to the hardware keyboard. This depends
on the keyboard set on the executing computer in the system settings. The configured labeling is
ignored in this case. The keyboard set on the computer (via the system setting) always takes priority
for display in zenon Runtime over the labellings displayed in the zenon Editor.
14 | 16
Hardware keyboards and virtual keyboards used together
If keys have been labeled differently, the original labeling will still be used in the Runtime.
Function keys such as Tab or Shift can still be labeled differently.
The keypad of the keyboard is not automatically labeled and the label can be adapted in the Runtime
at any time independent of the setting of property Automatic labeling.
1. Inactive:
All keys can be labeled individually and are displayed in the Runtime correspondingly.
The labeling of the keys can be amended in the Editor in the properties, under
Representation.
The configured label is displayed in the Runtime.
Attention
Individually adapted screens of type Keyboard may under certain circumstances
not work properly with the Mozilla Firefox browser.
Reason: Mozilla Firefox loads new windows in the background without putting
the focus on them. Depending on the project configuration,
individually-adapted keyboard screens are closed as soon as they are no longer
in focus.
15 | 16
Hardware keyboards and virtual keyboards used together
EXAMPLES:
If CAPS lock is pressed on the hardware keyboard for the Shift key, this also applies to the
virtual keyboard. In this case you cannot enter numbers via the automatic keyboard.
If you press key Num on the hardware keyboard in order to switch off the number pad, the
number pad on the virtual keyboard is also turned off.
Note: Use of the virtual keyboard and the hardware keyboard in combined operation is not
recommended.
16 | 16