Manual Esa Polymath
Manual Esa Polymath
Manual Esa Polymath
UserManual
Manual
Rev.
Rev.2.0
2.2
TABLE OF CONTENTS
Introduction ........................................................................................1
What is Polymath? .........................................................................1
What does Polymath do? ................................................................1
Which POLYMATH version? .......................................................1
Main POLYMATH functions ........................................................ 2
The Manual 5
Conventions used in the Manual ....................................................5
ESA Elettronicas Customer Care service ..................................... 6
Installation ..........................................................................................7
Minimum requirements ..................................................................7
Recommended requirements .......................................................... 8
Installing POLYMATH ..................................................................9
Layout of menus ...............................................................................15
Main menu ....................................................................................16
The Toolbar .................................................................................. 83
Anchorable windows.................................................................... 84
Managing the project ......................................................................89
Choice of interface .......................................................................89
Double Click Interface .................................................................90
Extended Interface ........................................................................91
Changing the type of interface ......................................................92
Creating a project in Wizard mode ..............................................93
Changing elements within a project .............................................97
Opening a project ....................................................................... 103
Saving a project ..........................................................................104
Network project ..........................................................................104
Creation of a network project .....................................................104
ServerIT107 Project ...................................................................107
PC Client Project ........................................................................108
Network Project ..........................................................................108
Timers .........................................................................................274
Configuring the device ...............................................................278
Properties Editor ............................................................................281
Properties Editor .........................................................................281
Events Editor ..............................................................................288
Managing a page ........................................................................ 295
Predefined graphic elements ......................................................299
Simple Figures............................................................................ 300
Value fields ................................................................................ 325
Invert Function Option ...............................................................325
Invert Function option operation ................................................326
Thresholds option functioning ...................................................327
Objects to which the Thresholds functionality can be applied ...332
Simple Controls ..........................................................................373
Complex Controls ......................................................................400
Movement properties of the objects ...........................................462
Operations on graphic elements .................................................464
Other anchorable windows ........................................................... 479
POLYMATH Libraries ..............................................................479
Errors Viewer .............................................................................499
Warning Viewer .........................................................................500
Compiler Output .........................................................................500
Compiling, Downloading and Runtime ........................................503
Project simulation....................................................................... 505
Downloading a project ............................................................... 508
Change Password ....................................................................... 519
Download the IT OPERATING SYSTEM image ..................... 521
Set up an Ethernet connection ....................................................521
Downloading the image of the Operating System for VT CE ...523
Establishing an Ethernet connection ..........................................523
Online tools ................................................................................528
Backup / Restore ........................................................................536
Restore (Remote panel update) ..................................................539
Panel Reset .................................................................................549
Scripts 553
The object ESAUSERMGR .......................................................563
The object ESAALARMMGR ...................................................563
The object ESARECIPEMGR ................................................... 566
The object ESARECIPETYP .....................................................567
The object ESARECIPEARC ....................................................568
The object ESARECIPETRF .....................................................570
The object ESAPIPEMGR .........................................................572
The object ESATIMER ..............................................................574
The object ESATRENDMGR ....................................................575
The object ESAPAGEMGR....................................................... 580
The object ESAPAGE ................................................................584
The object ESACNTRL .............................................................585
The object ESAPRN ...................................................................639
Examples of Script use ............................................................... 642
Tutorial 651
Phase 1 - The Project and Hardware Configuration ...................651
Phase 2 - Software configuration ............................................... 653
Phase 3 - Configuration of variables and Memory areas ...........656
Phase 4 - General configuration of the VT ................................663
Phase 5 - Defining the alarms .................................................... 666
Phase 6 - Defining recipe types ..................................................668
Phase 7 - Loading Images .......................................................... 669
Phase 8 - Defining text and image lists ......................................671
Phase 9 - Setting Pipelines ......................................................... 673
Phase 10 - Defining a Trend Buffer ...........................................674
Phase 11 - Graphic setting, drawing a Frame............................. 675
Phase 12 - Creating pop-up pages .............................................. 685
Phase 13 - Drawing Full Screen pages....................................... 689
Phase 14 - Using complex controls ............................................ 699
Phase 15 - Defining the Trend graph .........................................704
Phase 16 - Compilation and Download...................................... 709
Available functions for Remote connection from the PC........... 713
Remote Desktop .........................................................................713
Installation and registration ........................................................713
Chapter 1
Introduction
1.
Introduction
What is
Polymath?
Polymath is the programming software of ESA elettronica, developed in .NET technology with latest generation features.
Equipped with a modern and complete interface, it offers a
wide functionality range in step with the new requirements on
the HMI market.
What does
Polymath do?
Which
POLYMATH
version?
POLYMATH HMI
POLYMATH HMI is the configuration software studied especially for the development of applications for ESA terminals in the
IT, SC and VT range.
Chapter 1
Introduction
POLYMATH Advanced
Polymath Advanced offers a system of integrated programming that allows development of applications for the entire
range of ESA products: from the VT textual terminals, on to
the high performance products of the IT family, to the advanced supervision projects on PC.
POLYMATH Premium
Polymath Premium is the Polymath license which allows Polymath HMI license holders to switch to the Advanced version.
The installation of the POLYMATH Premium package allows for
use of all the functions offered by the POLYMATH Advanced
platform.
Main
POLYMATH
functions
Chapter 1
Introduction
Chapter 1
Introduction
Chapter 1
Introduction
The Manual
This manual is designed to be a constant guide for ESAs customers, describing and explaining the different features that
the software offers. It is aimed at the average user of ESA
products, guiding both first-time users of ESA products and
those already familiar with previous versions of the configurator.
The principal concepts and the method of use related to each
topic and operative feature will be illustrated using appropriate examples and screenshots.
The information contained in this document is subject to
change without prior notice and do not represent any obligation on the part of ESA elettronica S.P.A.
All products are trade names registered by their respective
owners.
Conventions
used in the
Manual
Meaning
Indicates a navigational path; in this
case it means the user should click
consecutively on the File and then New
buttons
Indicates that there is a note; notes
are often inserted to provide suggestions or clarify common doubt
Indicates particularly important points
to be read with care to avoid falling into difficult situations
Indicates that there is a guide dedicated to explaining in detail how a particular operation should be carried out
Indicates that within the description
there are key ideas - ideal for rapid
consultation of the guide in that they
accompany the essential notions
Chapter 1
Introduction
ESA
Elettronicas
Customer Care
service
In the event of any doubts about the use of POLYMATH or other ESA products, contact ESA Elettronicas Customer Care service (open Monday to Friday from 8.30 to 12.30 and 14.00 to
18.00).
Customer Care telephone number: 0039/031/757400
Fax: 0039/031/751777
E-mail: [email protected]
Important: it is always a good idea to annotate the currently installed version of POLYMATH and keep it to hand every time you
contact ESAs Customer Care service. The version of the software is
shown in the main menu by clicking on Help->Information
Chapter 2
Installation
2.
Installation
This chapter supplies information needed to be able to undertake the first steps towards using POLYMATH: installation.
We set out the requirements a machine must have for the application to function correctly as well as the crucial steps that
make up the installation phase.
Minimum
requirements
Requirement
Windows 2000 with Service Pack 4
Operating
system
RAM
1 GB RAM
Processor
Pentium IV or equivalent
Screen
resolution
1024*768
Space on
Hard Disk
3 GB
Chapter 2
Installation
Recommended
requirements
Requirement
Windows 2000 with Service Pack
4 or better
Operating
system
RAM
2 GB RAM or more
Processor
Pentium IV or better
Screen
resolution
1024*768 or better
Space on
Hard Disk
3 GB or more
Chapter 2
Installation
Installing
POLYMATH
Once the presence of the minimum requisites have been checked on your mac-hine, it is possible to start the installation
of POLYMATH.
Close or end any application active on the computer.
Introduce the POLYMATH program DVD-ROM.
The following window is presented automatically :
10
Chapter 2
Installation
Select "Next :
Chapter 2
11
Installation
12
Chapter 2
Installation
Chapter 2
13
Installation
Select "Install" :
14
Chapter 2
Installation
Chapter 3
15
Layout of menus
3.
Layout of menus
16
Chapter 3
Layout of menus
NA1
NA1
Path Menu
Description of function
Chapter 3
17
Layout of menus
NA1
Path Menu
Description of function
Path Menu
Description of function
18
Chapter 3
Layout of menus
Path Menu
Description of function
Script Menu
Path Menu
Description of function
Script ->
Uncomment
Chapter 3
19
Layout of menus
Fields menu
Path Menu
Description of function
The Create submenu can be reached via the Fields menu and
this submenu can be used to add a large number of elements
to the page (Fields -> Create).
20
Chapter 3
Layout of menus
Table 5: Functions of the submenu: Fields -> Create -> Simple figures
Icon
Path Menu
Description of function
Chapter 3
21
Layout of menus
Table 5: Functions of the submenu: Fields -> Create -> Simple figures
Icon
Path Menu
Description of function
Table 6: Functions of the submenu: Fields -> Create -> Value fields
Icon
Path Menu
Description of function
22
Chapter 3
Layout of menus
Table 6: Functions of the submenu: Fields -> Create -> Value fields
Icon
Path Menu
Description of function
Table 7: Functions of the submenu: Fields -> Create -> Simple Controls
Icon
Path Menu
Description of function
Chapter 3
23
Layout of menus
Table 7: Functions of the submenu: Fields -> Create -> Simple Controls
Icon
Path Menu
Description of function
Table 8: Functions of the submenu: Fields -> Create -> Complex controls
Icon
Path Menu
Description of function
24
Chapter 3
Layout of menus
Table 8: Functions of the submenu: Fields -> Create -> Complex controls
Icon
Path Menu
Description of function
Complex
controls ->
Chronothermostat
Inserts a chronothermostat
view in the page (see chap. 6,
Complex Controls page 400)
Complex
controls ->
Schedulers
Complex
controls ->
Holiday Groups
Chapter 3
25
Layout of menus
Menu: Layout
Path Menu
Description of function
26
Chapter 3
Layout of menus
Path Menu
Description of function
Layout ->
Separate
Using the Layout menu you can also access all the functions
for aligning and positioning the elements within the pages.
This is done using the submenus: Align, Arrange and Level
that are illustrated below.
Submenu: Align
Path Menu
Description of function
Chapter 3
27
Layout of menus
Path Menu
Description of function
Submenu: Arrange
Path Menu
Description of function
Arrange ->
Horizontally
28
Chapter 3
Layout of menus
Path Menu
Description of function
Arrange ->
Vertically
Submenu: Level
Path Menu
Description of function
Level ->
Foreground
Level ->
Background
Level -> Up
Chapter 3
29
Layout of menus
Menu: Image
Path Menu
Description of function
Image ->
Decrease contrast
Image ->
Decrease
brightness
30
Chapter 3
Layout of menus
Path Menu
Description of function
Menu: Display
Path Menu
Description of function
Display ->
Forward
Chapter 3
31
Layout of menus
NA1
NA1
NA1
Path Menu
Description of function
Display ->
Restores windows
and bars position
Path Menu
Description of function
Show ->
Properties Editor
32
Chapter 3
Layout of menus
Submenu: Toolbar
This submenu lists the twelve groups of icons making up the
toolbar. Using this menu the user can proceed to reintroduce
into the application groups of icons that have been closed and
that no longer appear in the POLYMATH screen. For further
information about the way the toolbar works, please consult
the next paragraph.
Menu: Tools
Options Sub-menu
Table 16: Functions of the menu: Tools
Icon
Path Menu
Description of function
NA1
NA1
Tools ->
Translations
NA1
NA1
NA1
NA1
Tools ->
Downloader Utility
NA1
Tools ->
Dictionary
NA1
Chapter 3
33
Layout of menus
Click on the option Tools -> Options to access the mask for
configuring the Options of POLYMATH.
34
Chapter 3
Layout of menus
Use the Various menu to proceed to configure the general Options of the application. The user may decide to view all the
objects during the move or only their outline, to automatically
provide a new name if using the cut/paste function , whether
to validate the project manually (File -> Validate project) or
in real time automatically (see chap. 8, Validation
page 503), to visualise the edit password screen, view or hide
information on the various fields of the page, whether or not
to view the ESA terminal frame on the page editor, whether to
activate the "Invert" option or not, view or hide the images of
structures, graphically decide if wanting to inherit the Hardware configuration, decide whether it should show the message regarding conversation for old programs or not, display or
not display the panel image in the simulator, enable or disable
pop-up window viewing for importing tags, activating the
Trial mode or not, to set the maximum number of windows
open at the same time in the POLYMATH Work area, select between the "ADVANCED" and "DOUBLE-CLICK" modes and decide whether to offer this choice to the user when the
POLYMATH starts up.
Note: The options Manual validation and viewing only the outline
while the objects are being dragged are advised for configuring
particularly slow performing machines.
Chapter 3
35
Layout of menus
Update control
Automatic project storage
Update control
By enabling the "Update control" option it will be possible to
automatically verify whether there are available POLYMATH
updates in the network; by default, the verification is carried
out automatically each week, but it is possible to vary the control frequency by selecting the available options from the drop
menu :
36
Chapter 3
Layout of menus
Use the "Directories" menu to select a directory in which to save the project. Several folders are available by default according to the type of panel used :
Shared Dictionary
From the "Shared dictionary" menu it is possible to save the
dictionary for term translation by choosing a certain path, this
way it will be possible to access the same translation file from
more PCs on which POLYMATH is installed :
Chapter 3
37
Layout of menus
By clicking on "Source Update", the previously saved dictionary will be kept in continuous updated compare to the local
one :
38
Chapter 3
Layout of menus
By clicking on "Control", POLYMATH will verify eventual differences between source dictionary and local dictionary :
Utility Sub-menu
Menu path
Function description
NA1
NA1
Allows a document to be
created with the specifics of the
project
Chapter 3
39
Layout of menus
Menu path
Function description
NA1
NA1
NA1
NA1
NA1
NA1
Utility ->Show
Memory
NA1
NA1
40
Chapter 3
Layout of menus
Update control
The Update control option allows verifying if online there are
more updated Polymath versions compared to the one installed:
Chapter 3
41
Layout of menus
Project documentation
The Project documentation option allows creating a simple
or complete print report, choosing from .pdf .rtf and .html formats.
In the first screen it is possible to choose the Simple or
Complete option, the first only contains default options:
42
Chapter 3
Layout of menus
Pressing the next button opens a window from which it is possible to choose the desired page layout:
Chapter 3
43
Layout of menus
44
Chapter 3
Layout of menus
Convert panel
The Convert panel option allows converting the panel used
in the project into an HMI with different characteristics, after
choosing the product family, Building (the Building group
contains panels used for home ), or Industrial (the industrial
group contains panels used for applications that are typically
industrial) systems, open the folders to select the panel type:
Once the panel type and the rotation is chosen (vertical or horizontal), clicking on Next :
Chapter 3
45
Layout of menus
At this point, click on "Next" and wait for the end of the conversion :
46
Chapter 3
Layout of menus
Convert device
The Convert device option allows converting a Device into a
second, during this conversion, only variables with the same
structure are maintained:
The first screen allows choosing the Device group:
Chapter 3
47
Layout of menus
48
Chapter 3
Layout of menus
Chapter 3
49
Layout of menus
Cross reference
The Cross reference option allows searching for unused
components within all projects, from the following window it
is possible to select search criteria:
Free search
Find/Replace
Page Elements
Project Tags (with Check enabled by default)
Project Scripts/Functions
Free search
Within Free search it is possible to carry out a search by fields by editing the Name Mask and inserting, for example, the
letter F. In the initial page it is also possible to decide if the
search is to be completed for the entire project or only in a
part of it.
Using two keys, it is also possible to save/load filter conditions
in .XML format.
Then click Search:
50
Chapter 3
Layout of menus
The following mask will display all objects whose name begins
with the letter F:
Chapter 3
51
Layout of menus
Modify: After selecting an element from the list, it allows modifying it within the project.
Tree view: Allows modifying how elements are viewed,
from "table" to "tree" type.
Find element: Allows a more detailed search among elements that have already been searched.
New search: Allows carrying out a new search from the
beginning.
Find/Replace
With the Find/Replace option it is possible to find, within the
project, certain elements (for example a Font type) and replace it with another (for example a different Font type):
52
Chapter 3
Layout of menus
Click "End"
Chapter 3
53
Layout of menus
Page Elements
In the Page Elements option it is possible to complete a
search for elements within the project, with three different
criteria that can be used both individually and at the same
time:
Search by Name : allows carrying out an alphabetic
search among elements, the "Search by Name" option
is divided into three subgroups:
1) Search from : to": the filter is set by the user who can define a search field starting form one letter and finishing with
another one, the following mask will display all objects whose
name is included between M and N, of the " Numerical
Field" category and belonging to the entire project
Element category : Allows searching within each individual category of elements present in the project
Search in: Allows deciding where, within the project,
the search is to be carried out, in the entire project or
only in a portion of it.
54
Chapter 3
Layout of menus
Once the filters for carrying out the search are selected, the
following mask is obtained:
Projects Tags
In the Projects Tags option it is possible to complete a search for elements within the project, with two different criteria
that can be used both individually and at the same time:
Search by Name : allows carrying out an alphabetic
search among elements, the "Search by Name" option
is divided into three subgroups:
Chapter 3
55
Layout of menus
56
Chapter 3
Layout of menus
Once the filters for carrying out the search are selected, the
following mask is obtained:
Chapter 3
57
Layout of menus
Project Scripts/Functions
In the Projects Scripts/Functions option it is possible to complete a search for elements within the project, with two different criteria that can only be used individually:
Search by Name : allows carrying out an alphabetic search among elements, the "Search by Name" option is
divided into three subgroups:
1) Search from : to": The filter is set by the user who can define a search field starting form one letter and finishing with
another one.
2) Element name begins with: The filter is set by the user
who defines a search field by selecting the letter at the beginning of the name for the element to be searched
3) Mask : The search filter is the same one of the option
Element name begins with
Search by Type: allows searching within each individual category of the "Function" or "Script" present in
the panel project. It is possible to choose between IT
and VT based on the panel type used in the project.
IT :
By selecting the "Function" option and choosing an item from
the list (e.g. Exit Runtime) the SW will search all Exit Runtime functions in the project:
58
Chapter 3
Layout of menus
Once the filters for carrying out the search are selected, the
following mask is obtained:
Once the filters for carrying out the search are selected, the
following mask is obtained:
Chapter 3
59
Layout of menus
VT :
By selecting the "Function" option it is possible to locate all
functions in the project and choosing an item from the
list (e.g. Direct Command to Value) all Direct Command to
Value functions will be displayed:
60
Chapter 3
Layout of menus
Once the filters for carrying out the search are selected, the
following mask is obtained:
Chapter 3
61
Layout of menus
Once the filters for carrying out the search are selected, the
following mask is obtained:
62
Chapter 3
Layout of menus
Once the filters for carrying out the search are selected, the
following mask is obtained:
Shared Tags
The shared Tags option allows viewing all Tags present in
the project, and allows the user to choose one or more variables to be shared on the network with a simple step; in practice it makes it possible to quickly modify the Allow tag value
Chapter 3
63
Layout of menus
64
Chapter 3
Layout of menus
Chapter 3
65
Layout of menus
The "DataArea" is the list of memory Areas that can be configured, it is different for each Device and it allows selecting
between Database Area "Types" used to display "Memory Status". After selecting the desired field (e.g. Dbw) press "Next" :
66
Chapter 3
Layout of menus
Chapter 3
67
Layout of menus
68
Chapter 3
Layout of menus
New procedure
To create a "New procedure", select the corresponding option
then click "Next" :
Chapter 3
69
Layout of menus
Select the operator panel being used in the project and that
needs to be backed up, then click "Next":
From the following screen, choose the operation to be performed; either carrying out backup of firmware, the project or
recipes present on the terminal, or downloading the firmware,
the project and one of the previously saved recipes present on
70
Chapter 3
Layout of menus
Chapter 3
71
Layout of menus
72
Chapter 3
Layout of menus
Pressing the "End" key will create a folder with the files necessary for project Backup.
At this point, open the folder where the procedure has been
saved, or, more precisely, open the path: ESA Elettronica\Batch Executor\xx-xx-2011 0859\BatchExecutor.bat
Clicking twice on the BatchExecutor.bat command a "Dos"
window will open, follow the instructions on video, the backup
file will be saved at the end of the sequence :
Chapter 3
73
Layout of menus
Note: The panel needs to be set on the transfer page. Open an existing procedure
To open an existing procedure, select the corresponding option then click "Browse" :
74
Chapter 3
Layout of menus
Chapter 3
75
Layout of menus
76
Chapter 3
Layout of menus
Chapter 3
77
Layout of menus
Modify/Find/Replace scripts
This function allows to manage (find, modify, replace) the
scripts present in the project.
On the left main window it is possible to modify the search page between default Scripts and GlobalScripts set on "ESAStartup".
78
Chapter 3
Layout of menus
On the right main window there are five keys that have the
following functions :
Find next: allows carrying out an alphabetic single search on the Script name.
Replace: allows carrying out a single replacement of
a script or of part of it.
Replace all: allows carrying out a complete alphabetic replacement on the name of the Script (the replacement result is indicated by inserting a "*" next to the
page name).
"Search all" allows carrying out a complete alphabetic
search (the search result is indicated by inserting a "*"
next to the page name).
"Show the compiled file" shows the compilation of all
the scripts in the project; in this window, the compiled
file is for viewing only and may not be changed.
Close : Closes the current screen
On the centre main window there are two fields the mandatory
one is "Find" and the optional one is "Replace with" :
Chapter 3
79
Layout of menus
In the main window at the bottom right there are two keys
which allow to adjust the zoom of the compiled file :
If one chooses the "Show the compiled file" option, the first
part of the mask will be transformed as follows :
By going to the "Go to line" field and entering the line number
to view, the user will be directed in the chosen point of the
compiled file after having pressed the "Go" button.
80
Chapter 3
Layout of menus
Translations Sub-menu
Menu path
Function description
NA1
Translations ->
Export
Exports Translations
NA1
Translations ->
Import
Imports Translations
Menu path
Function description
Tags/Variables ->
Export
Exports Tags/Variables
NA1
Tags/Variables ->
Import
Imports Tags/Variables
NA
Chapter 3
81
Layout of menus
Recipes Sub-menu
Menu path
Function description
NA1
Exports Recipes
NA1
Imports Recipes
NA1
Recipes ->
Recipe Editor
Menu path
Function description
NA1
Exports Alarms
Imports Alarms
NA
82
Chapter 3
Layout of menus
Menu path
Function description
NA1
Utility downloader
->Online Tools
NA1
Utility downloader
->Backup/Restore
NA1
Utility downloader
->Backup/Restore
VTxxx
Utility downloader
->Backup/Restore
VTxxxW with
modem
Utility downloader
->Update Boot
Windows CE for IT
and XT
NA1
NA1
NA1
Chapter 3
83
Layout of menus
NA1
Menu path
Function description
Utility downloader
->Boot loader
directly for WTxxx
Utility downloader
->Boot loader for
WTxxx in assisted
mode
? Menu
NA1
NA1
Menu path
Function description
? -> Register
? -> Information
? -> Help
84
Chapter 3
Layout of menus
Note: The Toolbar offers a shortcut to the same Functions that you
can access from the main menu. To find out what a given icon
means, consult the Table of Functions in the main menu (see chap.
3, Main menu page 16).
Once you have clicked, the mouse pointer will change into the
dragging cursor typical of Windows. It is now possible to
insert the group wherever you want.
Release the mouse key to apply the move. The group can be
left in any position on the screen or closed by clicking on the
related
. Closed groups can be reinserted into the toolbar
by clicking on the corresponding name in the main menu
(Display->toolbar). The changes to the layout of the toolbar
are saved for the next time POLYMATH is used.
Anchorable
windows
Chapter 3
85
Layout of menus
Once Anchorable windows have been closed, they can be reintroduced by clicking on the respective icon in the Tools menu
or using the submenu: Display -> Show. Alternatively they
can be re-introduced using the menu that appears after
clicking with the right-hand key inside the toolbar (first
activate the corresponding check).
By clicking on the icon
(Display -> Show All) all the
Anchorable windows are re-introduced, while the icon
(Display -> Hide all) deletes them all without distinction.
Moving Anchorable windows
Anchorable windows can be moved within the POLYMATH as
the user thinks fit. To move an Anchorable window, select it
by clicking on the title bar of the window in question. See
below:
86
Chapter 3
Layout of menus
To select which of the four areas to move the window to, use
the mouse to place the grab (see picture) on one of the four
arrows of the directional pointer (see picture) in the middle
of the screen. When the mouse key is released, the window
assumes its new position immediately, keeping it until the
next operation. Each time the mouse reaches an area of the
directional pointer, the corresponding destination area is
highlighted.
Chapter 3
87
Layout of menus
88
Chapter 3
Layout of menus
Chapter 4
89
4.
90
Chapter 4
Managing the project
Double Click
Interface
Chapter 4
91
Extended
Interface
The main feature of the "EXTENDED" interface is its net division between the graphical characteristics of the object that is
being edited and the object events.
In this mode, on the right part of the development environment the Property Editor object is in the foreground, it is possible to select the Events assigned to the object being edited
at that time in the bottom section.
To use a library object simply select one of the present objects
and drag it on the page to then edit it and configure it at will.
Using this type of interface is recommended for all those users
who prefer a structured interface :
92
Chapter 4
Managing the project
Changing the
type of
interface
Chapter 4
93
Click on
File->New from the main menu
Click on
to enter the Home Page of the program and
Click on Open Wizard to create a project to start up the
guided project creation.
94
Chapter 4
Managing the project
Now state which ESA panel is to be used; once this choice has
been made, click on Continue to proceed.
Chapter 4
95
96
Chapter 4
Managing the project
Note: When a user chooses a device that allows the variables import
from database to owner, the mask described below will appear and
it will be possible to decide whether to import the variables at this
stage of the project or to postpone the operation : :
Chapter 4
97
All the data required for the project has now been inserted.
POLYMATH will configure the hardware for the project. You will
then be able to edit the project accordingly.
Changing
elements
within a project
In the left part of the windown, all the project hardware elements are present, while the right part lists all the possible devices which may be used with the terminal chosen previously.
Terminal or device addition
There are different options to add new devices to the project :
Click on the
key present in the tools bar
Select Fields ->
Create...from the main menu
98
Chapter 4
Managing the project
Chapter 4
99
Automatically, a window will open from which it will be possible to set device connection parameters :
100
Chapter 4
Managing the project
Chapter 4
101
102
Chapter 4
Managing the project
Chapter 4
103
Using the Edit option you can make changes to the properties
of the object; Duplicate creates within the Configuration Window an identical copy of the object that has been selected (all
the properties of the first are copied into the second). The
Cancel option eliminates the element from the project, while
the Cut, Copy and Paste keys have their usual functions,
typical when operating in Windows. Besides these there are
the Zoom options which allow you to edit the dimensions of
the display of the objects, Show memory displays the Tags
occupied in the device memory.
Eliminating a VT or device
To eliminate a VT or a device from the Hardware Configuration
window just click on
and then on the element to be eliminated. To eliminate it, once the object has been selected,
press the Canc key of the keyboard or alternatively click with
the right-hand key of the mouse on the element, then, using
the drop-down menu that appears click on Cancel.
Eliminating a connection
To eliminate a connection from the Hardware Configuration
window just click on
and then on the connection (line) to
be eliminated. To eliminate it, once the connection has been
selected, press the Canc key of the keyboard or alternatively
click with the right-hand key of the mouse on the element,
then, using the drop-down menu that appears click on Cancel.
Opening a
project
104
Chapter 4
Managing the project
Note: When you enter the Home page of the program by means of a
click on
a list of recently opened files ordered chronologically
according to their last editing date. This procedure is simplest and
quickest if you often work with the same files.
Saving a
project
Network
project
Creation of a
network
project
Chapter 4
105
106
Chapter 4
Managing the project
Chapter 4
107
ServerIT107
Project
From the editing area, the features of the tag to be shared can
be observed on the "General" mask. In our example, the tag
will be "Internal" :
Select the ("Share Tag") option and assign a name (in this case "Server_Tag") so that it can be seen by the other participants.
108
Chapter 4
Managing the project
PC Client
Project
Network
Project
Chapter 4
109
Compilation of
the network
project
110
Chapter 4
Managing the project
The following mask will appear from which one can choose to
fill out all the projects that make up the network or, if only one
project has been varied, to fill out only the modified one :
Click "forward".
At the end of the compilation, the following mask will appear :
Chapter 4
111
Download the
network
project
The following mask will appear from which one can choose to
transfer all the projects that make up the network or, if only
one project has been varied, to transfer only the modified
one :
112
Chapter 4
Managing the project
Multi-devices
After having chosen the type of ESA terminal, enter the desired devices with the "Drag and Drop" mode :
Chapter 4
113
Each time a user drags a device on the panel, it will be connected by following a predefined logic : the first driver will be
assigned to the first available door by excluding whether it is
serial or Ethernet.
The second serial driver is assigned to the second serial door
(if present); in case in which the second serial door is not
available, POLYMATH will not allow use of a serial driver, but
only Ethernet.
It is possible to enter up to 2 different protocols for each
ethernet door on the terminal the following is an example of
entry of 4 PLC ethernet belonging to 2 distinct families :
114
Chapter 4
Managing the project
Note: The number of PLC which may be entered on each door can
also be greater than the 4 reported in the previous example, as long
as they do not belong to more than 2 different families.
Chapter 4
115
What was just said clearly also goes for the ethernet ports.
Note : In case the user drags the device outside the panel, the device
is connected anyway by following the logic described previously.
For each connected device a page will appear from which it will
be possible to set the connection parameters both of the device door and of the panel.
116
Chapter 4
Managing the project
Device :
Chapter 4
117
Panel :
From the previous screenshot, by clicking on the ESA panel
name, one will enter the main edit window of the same (see
chap. 5, Setting the panel page 127) :
Multi-Panels
By using the entry "Multi-Panels" the user will be able to simply create a project made up of more panels.
After opening the "Wizard" mode to create a new
project, select the "Multi-Panel" option then click on
"Forward":
118
Chapter 4
Managing the project
A window will appear from which it will be possible, first by clicking on "Add" then on the drop menu, to choose the type of
panel to add :
Una volta scelto il tipo di pannello, modificando i campi Rotazione e Quantit sar possibile stabilire il numero di pannelli da inserire e la rotazione (0 / 90) di ognuno di questi :
Chapter 4
119
120
Chapter 4
Managing the project
Chapter 5
121
Project Explorer
5.
Project Explorer
122
Chapter 5
Project Explorer
The
button is used to add one element to the
category selected in the tree chart. If the entire project
is selected, this key can be used to insert new VTs or
devices.
The
button is used to enter editing mode for the
element selected in the tree chart.
The
button is used to shift an element upwards.
The
button is used to shift an element downwards.
The
button is used to put the objects in order.
The
button is used to put the page numbers in order.
Chapter 5
123
Project Explorer
Operating on
elements
within the
Project
Explorer
window
124
Chapter 5
Project Explorer
"Hide component",
By selecting a field of the explore project tree and then rightclicking with the mouse, choosing the "hide" option, the field
will be disabled :
"Hide content",
By selecting a field of the explore project tree and then rightclicking with the mouse, choosing the "hide content" option,
the field content will be disabled :
Chapter 5
125
Project Explorer
By selecting a field of the explore project tree and then rightclicking with the mouse, the user may customize the component view; by default the user will see everything that is available for that type of product :
126
Chapter 5
Project Explorer
Chapter 5
127
Project Explorer
128
Chapter 5
Project Explorer
Communication ports
Chapter 5
129
Project Explorer
DP
ETH1/ETH2
COM 0
For this communication gate, no parameters are foreseen
because it can be set via script.
Main window
130
Chapter 5
Project Explorer
values, the lines will become less dense and there will be less
freedom to introduce objects.
Then, providing the operating system of the panel allows this
(if not, they will appear disabled), a series of configurable
options are available regarding the display of pages on the
terminal; the "Show focus" option can be selected (100%
zoom), the user can decider whether to display the title bar,
the Reduce to icon button, the window focus (practically
speaking, the focus highlights the currently selected object or
button), the on-screen keyboard for entering data and
whether to hide the applications bar, whether the confirmation
message is to be shown, whether to show the confirmation
message, whether to use the default size of the dialogues.
The last three options allow the user to set the time-out in the
edit phase, the font for the Help pages and the password level
for accessing the system pages (see chap. 5, Password
configuration page 213).
Dialog Box
Chapter 5
131
Project Explorer
Once disabling such option, the user will be able to configure the
new sizes :
This value is unique for all the dialog-boxes and can not be changed at Runtime level.
The events which use the new "Dialog Box" are the "User login"
and all the related to "Recipes" functions (see chap. 6, Events related to Recipes page 292).
Configuring the Boot
132
Chapter 5
Project Explorer
Exchange areas
Chapter 5
133
Project Explorer
Components
The first option you find on the menu of the panel in Project
Explorer is the one relating to the configuration Software. To
this area there belong the setting windows for the following
elements:
SystemAlarms
SystemMessages
F Keys
To access the general editor of each option just double-click
on the appropriate name in Project Explorer. The following
paragraphs will carry detailed information on the features that
can be configured for each element.
SystemAlarms
The system alarms are alarms that are displayed to the
operator whenever certain conditions of anomaly occur.
In this section it is possible to access a table containing all the
system alarms that are displayed by the panel in particular
situations. Alarm messages are displayed for each project
language entered. Some messages are unchangeable by the
programmer while others are contained in editable fields. In
any event, it is always possible to delete the changes made to
the translation by clicking on the appropriate button (Clear
Translation). Use the Project language button to access the
editable list of languages already described in this paragraph
(see chap. 5, Languages page 166).
134
Chapter 5
Project Explorer
SystemMessages
System messages are messages displayed to the operator at
various points when the panel is in use.
In this section it is possible to access a table containing all the
system messages that are displayed. Messages are displayed
for each project language entered. Some messages are
unchangeable by the programmer while others are contained
in editable fields. When editing these strings, be careful not to
introduce special characters reserved for the system
(e.g.%). In any event, it is always possible to delete the
changes made to the translation by clicking on the appropriate
button (Clear Translation).
Use the Project language button to access the editable list of
languages already described in this paragraph (see chap. 5,
Languages page 166).
Chapter 5
135
Project Explorer
F Keys (Global)
This mask allows the user to define a global mode of
behaviour for all F keys (of a virtual or physical keyboard) :
Note: By global mode of behaviour we mean that the key will make
it possible to effect the configured function independently of the
page being displayed on the panel, while by local mode of behaviour
we mean the execution of the function only in the context of the
current page (see chap. 5, F keys (Local) page 174).
136
Chapter 5
Project Explorer
Chapter 5
137
Project Explorer
List
138
Chapter 5
Project Explorer
RefreshGroups
Chapter 5
139
Project Explorer
General
140
Chapter 5
Project Explorer
operator but can be displayed and used by the panel. The type
of system variable can be selected from the options on a dropdown menu; the characteristics of each variable appear in the
lower part of the mask and are also illustrated in the related
appendix of this manual (see Appendix A - System Variables
page 737).
"Indexed" tags allow you to view the data of each variable in
a single field; the "Index Variable" determines the choice of
Tag the value of which is displayed by the "Indexed Variable"
(see Indirect Addresses page 154).
The network tags are variables that can be used by all the
terminals that make up the network, in the case of a "panel
network" project.
Value
Description
Range
Char
-127 to 128
Byte
0 to 255
Boolean
Single bit
Integer
-32.768 to 32.767
Unsigned
Integer
0 to 0xFFFF
-2,147,483,648 to
2,147,483,647
0 to 0xFFFFFFFF
Long
Unsigned
Long
Chapter 5
141
Project Explorer
Description
Range
-1.7976931348623E308
to -4.9406564584124E324 for negative values;
4.9406564584124E-324
to
1.7976931348623E308
for positive values
ASCII string
Array of
Unsigned
Integer
(WORD)
1 to 1024
Array of
Integer
(WORD)
1 to 1024
Array of
Real
1 to 1024
Real
Double
String
142
Chapter 5
Project Explorer
Chapter 5
143
Project Explorer
If the type of area is String, you can define the length, the
type and the gap characters. The types of gap characters
available are left, right or none. It is also possible to define the
gap character by entering the appropriate ASCII code or
choosing an option from the drop-down menu. In both cases,
the right-hand side of the mask will display a preview of the
gaps.
You can use the lower part of the mask to introduce the
destination memory addresses; the values entered must be
coherent with the range displayed at the foot of the mask.
Limits
Validity ranges can be defined for the tag just created (if this
restriction has sense in relation to the type of data). It is
possible to assign these limits to the values of the tag and/or
to the device. If limits are assigned to the Tag (i.e. on the tags
of the terminal) the limit will have effect in the editing phase:
if, for example, a maximum limit is at 100 and the operator
inserts a higher value in an editing field, the field will
automatically be taken to 100 (maximum limit). However, this
limit does not prevent a greater value being written in the
device memory by a device side process.
If this is not the case, by assigning device limits a value will
be read on the terminal within the range set also when the tag
on the device assumes values outside of the interval.
Once the relative box has been enabled, it is possible to
manually insert the limit values or assign them dynamically by
144
Chapter 5
Project Explorer
Chapter 5
145
Project Explorer
from (Project Explore) click twice on the main page and then
use the mouse to drag the Tag inside the page :
146
Chapter 5
Project Explorer
At this point the user can decide whether to continue (by clicking on the "OK" key, or to annul the introduction of the data,
which must be re-set.
If the user decides to continue by clicking "OK" as just seen,
Polymath will automatically attribute the maximum limit value
(100).
The same will occur when trying to insert a value below the
minimum set, e.g. if a value equal to "5" is set when the minimum limit is "10", a warning message will appear under the
form of a "Popup" page, as shown below :
Chapter 5
147
Project Explorer
Also in this case, the user can decide whether to continue (by
clicking on the "OK" key, or to annul the introduction of the
data, which must be re-set).
If the user decides to continue by clicking "OK" as just seen,
Polymath will automatically attribute the minimum limit value
(10).
Conversion
The value of the numerical external variable is always
calculated by the system based on the rough value.
Often, apart from the standard conversions, it is necessary to
carry out a calculation, because the units of measurement in
which the rough value is expressed are different from those
required for the value of the variable.
For example, it occurs very frequently that the rough value is
expressed as an integer value within the range of a digitalanalog converter, while the value of the variable is expressed
in engineering units.
Using this mask you can determine the type of conversion to
be adopted for the variable; the conversions that can be
selected are: none, linear, quadratic or defined by the user.
148
Chapter 5
Project Explorer
Chapter 5
149
Project Explorer
In both cases the window situated in the left part of the mask
furnishes a graphic representation of how the conversion of
the values will take place.
In addition you can carry out an immediate test of the
conversion after entering the necessary values; a value can be
entered in the appropriate fields and POLYMATH displays its
conversion instantly.
The conversion defined by the user envisages the association
of a Script with the events that can be associated to the
variable (see chap. 6, Events related to variables page 290).
Thresholds
150
Chapter 5
Project Explorer
Chapter 5
151
Project Explorer
152
Chapter 5
Project Explorer
Chapter 5
153
Project Explorer
154
Chapter 5
Project Explorer
Indirect Addresses
The "Indirect Addresses" option is enabled only when an "Indexed" Tag has been inserted. In the "General" window, select
the "Indexed" Tag option :
The "Index_A" variable is called "Index Tag" and is an "Integer" type of "Device" Tag.
"a1" and "a2" are two "Integer" type "Device" variables (of the
same type as the "Index" variable").
"Indexed variables" are particularly useful when you have a
project involving a high number of Tags (a complex project
can involve literally thousands of variables).
In the interest of
simplicity, POLYMATH offers the user a new function called
"Indexed Variables" that allows you to associate ("map") any
Chapter 5
155
Project Explorer
Attention: the Tags must all be of the same type, while the "Index"
Tag must be the "Integer" type.
156
Chapter 5
Project Explorer
the "Indexed" tag displays the value of Tag "a1" (in this case,
"0") and "a4" ("30") respectively :
Events
The "Events" option is visible in "DOUBLE CLICK" mode and
comes under "Editor Events" in "Extended" mode.
You can associate each Variable with an event (function or
script) by clicking the "Browse" button on the right :
Chapter 5
157
Project Explorer
Export Tags
158
Chapter 5
Project Explorer
all Tags types present in the project will be shown and subsequently exported :
Chapter 5
159
Project Explorer
160
Chapter 5
Project Explorer
By clicking on the "Separate addresses" check box, the variables list is shown, in the table created, in separate fields :
Chapter 5
161
Project Explorer
Import Tags
162
Chapter 5
Project Explorer
Excel Format :
Chapter 5
163
Project Explorer
After having made the selection, the following screen is obtained by clicking on the "Import" key :
164
Chapter 5
Project Explorer
PLC Format :
Chapter 5
165
Project Explorer
After having made the selection, the following screen is obtained by clicking on the "Import" key :
166
Chapter 5
Project Explorer
Languages and
Fonts
Languages
Chapter 5
167
Project Explorer
Once the texts have been added just click on OK to save the
changes made or on Delete to delete them. There is no default
translation but POLYMATH furnishes the same text (the one
introduced for the main language) for all the languages.
168
Chapter 5
Project Explorer
Character fonts
Chapter 5
169
Project Explorer
In Polymath there is a layer subdivision of the single pages displayed. At the time of the compilation, all the objects are placed on layer 0; for each page, it will be possible to have a
maximum number of 13 layers (numbered from 0 to 12).
When a new project is created, layer 0 is the one present by
default, it will always be available and cannot be deleted.
To use the "Layer" function simply click on the icon in the main
bar :
The following page will open where, by using the present keys,
it will be possible to change the layers (add new ones, delete
as needed, change the order of the existing ones) :
170
Chapter 5
Project Explorer
Project preview
All'interno di Polymath presente una funzionalit che permette di ottenere una preview della pagina attualmente visualizzata, questa preview permette all'utente di visualizzare gli
stati degli oggetti senza dover passare dal Simulatore.
La funzionalit, che accessibile dal menu a tendina presente
nella Toolbar, permette all'utente di visualizzare alternativamente lo stato Off e lo stato On dei controlli contenuti nella
pagina.
ON :
Chapter 5
171
Project Explorer
OFF :
Fields
The Fields mask shows graphically how the page will appear
once the project has been installed in the terminal. To
introduce an object simply click on the relevant icon and
immediately afterwards draw the outline of the area that will
contain it in the page in the desired position.
172
Chapter 5
Project Explorer
Chapter 5
173
Project Explorer
presses the Enter key, the focus of the application (that is, the
selection) moves to the next field (the order of the selection
passage between fields is defined by the TabIndex attribute to
be assigned to the page objects, (see chap. 6, Properties of
the Numerical Field page 343, for example).
It is also possible to overwrite the default grid dimensions for
the current page by specifying the desired dimensions. This
option is useful when a different degree of precision is
required during the editing phase of the page. When low
values are entered the grid becomes denser and there is
greater freedom in positioning objects within the page; by
entering a high value, the grid becomes less dense and the
freedom in positioning objects in the page becomes more
limited.
Help pages
174
Chapter 5
Project Explorer
The last mask available for editing the page is the one relating
to the F keys; it is possible to edit the behaviour of a particular
function button within the page. Unlike the global keys, the
functions set in this page are only effective when they are in
the current page.
Warning: The table present in this mask already indicates the global
functions (see chap. 5, Keyboards page 253), so as to make any
overwriting evident. In fact, if they were assigned to the same global
and local key functions, only the local ones would carried out in
runtime in the context of the page in question.
Chapter 5
175
Project Explorer
OnPageClose : the event is activated when the page closes (for instance when moving from one page to the
next)
OnPageOpen : the event is activated when the page
opens (for instance when moving from one page to the
next)
Page Properties
The "Page Properties" option is visible in "DOUBLE CLICK mode" and comes under "Properties Editor" in "Extended" mode.
176
Chapter 5
Project Explorer
Background colour
Border visibility
Border size
Border colour
Border style
3D border
Popup pages
Popup pages are pages that are only displayed following the
occurrence of particular situations (these can be called using
the command area and the button with an assigned function).
After double-clicking the Popup pages icon in Project Explorer,
a list of the pages introduced into the project will appear in the
work area. This list can be used to add new Popup pages,
duplicate them or delete existing ones. In addition, some
attributes like the Page number, Description and Comment
Chapter 5
177
Project Explorer
The Fields mask for the Popup pages is similar to that relating
to the traditional pages (see chap. 5, Fields page 171).
The sole difference between the two masks consists in the
dimensions of the Popup page. Naturally the Popup page is
meant to be smaller than a standard page; it may be
positioned in any part of the screen.
To change the dimensions of a Popup page, select it after
pressing the
key; at this point just take the cursor onto
the edges of the page (red outline) to enlarge or reduce its
dimensions.
To move a Popup page, select it after pressing the
key;
then simply drag it to the position you want it to appear in
runtime.
The next chapter illustrates all the procedures for introducing
graphic objects and their related meanings and tools (see
chap. 6, Managing a page page 295).
178
Chapter 5
Project Explorer
General
The General mask for the Popup pages is identical to that
relating to the traditional pages; thus, readers are advised to
consult the paragraph dealing with these (see chap. 5,
General page 172) for details of the properties.
The sole difference consists in the possibility of expressing a
preference in runtime: you can choose whether to display the
page title bar or whether the Popup page should always
appear in the foreground.
Help page
The Help page mask for the Popup pages is identical to that
relating to the traditional pages; thus, readers are advised to
consult the paragraph dealing with these (see chap. 5, Help
pages page 173) for details of the properties.
F keys
The F keys mask for the Popup pages is identical to that
relating to the traditional pages; thus, readers are advised to
consult the paragraph dealing with these (see chap. 5, F keys
(Local) page 174) for details of the properties.
Events
The "Events" option is visible in "DOUBLE CLICK mode" and
comes under "Events Editor" in "Extended" mode.
The "Events" window on popup pages is the same as the one
for traditional pages, so refer to the same section (see chap.
5, Events page 174).
Popup Page Properties
The Popup Page Properties option is visible in "DOUBLE CLICK mode" and comes under "Properties Editor" in "Extended"
mode.
The Popup Page Properties window is the same as the one
for traditional pages, so refer to the same section (see chap.
5, Page Properties page 175).
Frames
Chapter 5
179
Project Explorer
180
Chapter 5
Project Explorer
Fields
Using this mask you can edit the way a Frame will actually
appear in the pages into which it is called; it is edited just like
that for normal pages with various objects being introduced
and properties being set (see chap. 6, Managing a page
page 295).
To introduce an object simply click on the respective icon and
immediately after draw where in the page you wish the outline
of the area to contain it to be placed.
The next chapter describes all the procedures for introducing
the graphic objects together with their related meanings and
tools.
Using this mask you can, however, set the dimensions of the
Frame: click on the
icon to select it and then move the
cursor to one of the red corners by dragging it in line with the
dimensions required. (This operation can also be performed
by the General mask as set out in the next section).
You cannot use this mask to move the Frame, in that its final
position is defined periodically in the destination page.
General
Chapter 5
181
Project Explorer
182
Chapter 5
Project Explorer
The Properties window allows you to determine the graphical properties of the frames.
The Properties window of the Frames option is visible in
"DOUBLE CLICK" mode and comes under "Events Editor" in
"Extended" mode.
The window is in two parts, "Appearance" and "Advanced" :
The Appearance section allows you to edit the following options :
Chapter 5
183
Project Explorer
List
Memory resources
Behaviour
Fields
Priority
Alarm groups
User signals
The Alarm list allows you to manage the table of alarms and
their related properties; a summary of all the standard
properties in editable fields is supplied. This mask is useful for
giving an overall vision of all the alarms present in the project.
New alarms can be added, or cancelled and those existing
edited by means of the relevant buttons at the bottom of the
mask.
By pressing "Tools" a sub menu will open with the following
functions :
184
Chapter 5
Project Explorer
import
export
customize Active Log Files
customize History Log Files
column configuration
Import / Export
It is possible to export or import a series of Alarms create previously by clicking on the "Import" or "Export" options (see
chap. 5, Alarms Import / Export page 193)
Customize Active Log Files
By pressing "Customize Active Log Files" a guided window will
open to create the customised file :
Chapter 5
185
Project Explorer
Down : using "Down" the user will be able to move the selected layer down after going to the "Id" column.
Preview : with the "Preview" key the user will view a graphic
preview of the chosen customization.
OK : by pressing "OK" the user confirms the created settings.
The following is an example of how CSV exportation of the
alarms list occurs :
186
Chapter 5
Project Explorer
Preview : with the "Preview" key the user will view a graphic
preview of the chosen customization.
OK : by pressing "OK" the user confirms the created settings.
The following is an example of how CSV exportation of the
alarm history occurs :
Memory resources
Chapter 5
187
Project Explorer
Behaviour
Warning: When entering file names, care must be taken that they are
admissible names for a Windows environment. A file name, to be
admissible, cannot contain the following characters \ / : * ? < >
188
Chapter 5
Project Explorer
Note: The log file is a file used by the system to permanently save the
data to be represented in the Alarm History. Being able to choose its
name using POLYMATH is useful in that it allows the user to
manage this file (e.g. copy or delete in the event that it is too big).
Should you want to re-arrange the data in an Alarm History,
however, it will have to be exported using a predefined function or
Script (see Appendix B - Predefined functions page 745 and see
chap. 9, Scripts page 553).
Use the Fields mask to define the character and the colours of
the display tables of the alarms (see chap. 6, Active Alarm
View page 429 and see chap. 6, Alarm History View
page 434). You can specify the character of the rows, the
colours of the cells selected, the characters and colours of the
column headers. The way the editing fields relating to the
fonts and colours work is identical to what has already been
set out for the user table (see chap. 5, Fields grid page 220).
The programmer can also make a choice in relation to labels
to be assigned to the table headings. Each column can have
associated to it a multilingual label; to access mutilingual
editing just click on the
icon adjacent to the editable text
field (see chap. 5, Languages page 166).
Chapter 5
189
Project Explorer
190
Chapter 5
Project Explorer
Use this mask to set the alarm signals that appear to the
operator. The types of alarm messages displayed are:
Raised alarms
Simple messages
Diagnostic alarms
Chapter 5
191
Project Explorer
Banners
Once the type of alarm message has been selected (by
clicking on the appropriate box), it is displayed in the preview
page in the right-hand section of the mask. After clicking on
the element introduced, it can be moved to the position you
want the message to appear in.
For the first three types of messages the following must be
defined for the appropriate icon to be displayed: a minimum
level of priority; a destination page when the icon itself is
pressed; and the image to be presented on screen (which can
be selected from among those in the project).
If, on the other hand, the type of message is Banner, a
background and text colour need to be defined as well as a
rotation time expressed in seconds in case there should be
more than one alarm/message.
The reproduction of a warning sound ("Enable buzzer /audio")
can be enabled at the back of the mask :
192
Chapter 5
Project Explorer
Events
The "Events" option is visible in "DOUBLE CLICK mode" and
comes under "Events Editor" in "Extended" mode.
It is possible to associate an event (script) to each alarm you
have created.
The event is activated in the two different conditions of the
Alarm :
Chapter 5
193
Project Explorer
Alarms Export
194
Chapter 5
Project Explorer
Chapter 5
195
Project Explorer
196
Chapter 5
Project Explorer
Note: The file to export may be saved with ".xls" or ".csv" extension.
Chapter 5
197
Project Explorer
Alarms Import
198
Chapter 5
Project Explorer
From the previous screenshot, by selecting the various checkboxes, it will be possible to choose among the following options :
Chapter 5
199
Project Explorer
200
Chapter 5
Project Explorer
Properties
Note: For the current value of a variable (for example one assigned
to an alarm) to appear in the Description, Datiuser1 or Datiuser2
strings just put into the string the name of the variable in a sequence
having the form %{<name of the TAG>#<format>}%. the format
follows ANSI-C specifications. For example, a Description
containing the string excessive temperature:
Chapter 5
201
Project Explorer
The Property mask also asks you to specify the type of alarm;
the following table explains the types of alarm available.
Tabella 2: Types of alarm
Event type
Description
Simple event
ISA alarm
202
Chapter 5
Project Explorer
Events
The "Events" option is visible in "DOUBLE CLICK mode" and
comes under "Events Editor" in "Extended" mode.
It is possible to associate an event (script) to each alarm you
have created.
The event is activated in the different conditions of the Alarm :
Chapter 5
203
Project Explorer
Recipes Types
204
Chapter 5
Project Explorer
Use this list to add new types (by clicking on the Add key),
duplicate (with the Duplicate key) or delete (with Delete)
existing ones.
For each recipe type the summary of the related
characteristics is shown in editable fields. This mask is useful
for gaining a complete view of all the recipes present in the
project.
By pressing "Tools" a sub menu will open with the following
functions :
Import
Export
Chapter 5
205
Project Explorer
Recipe editor
Customize Log File
Column configuration
Recipe editor :
Allows to edit the recipes of the selected structure directly
from POLYMATH :
206
Chapter 5
Project Explorer
The user will be able to choose whether to update the previously exported pre-existing file :
Chapter 5
207
Project Explorer
208
Chapter 5
Project Explorer
This is an example of how the exportation file is composed after customization by the user :
Chapter 5
209
Project Explorer
Using the Recipe list mask you can specify for which type of
recipe present in the project the mode of compatibility should
be enabled (this option is applicable to one and only one
Recipe type). By compatibility we mean a use of the exchange
areas identical to the Mode of functioning of VTWINprogrammable ESA terminals . A compatible structure uses
the command area of the project (see chap. 5, Exchange
areas page 132) and accepts commands from the PLC only
with a Recipe name not over 4 characters. On the other hand,
a non compatible structure uses dedicated exchange areas (in
this case the recipe can have a longer name).
210
Chapter 5
Project Explorer
Fields
Chapter 5
211
Project Explorer
General
212
Chapter 5
Project Explorer
Chapter 5
213
Project Explorer
Password configuration
Within a project you can define authentication levels to
maintain control of access to specific areas. The purpose of
this feature is to distinguish and control the level of
operational freedom for each user in the course of their work
session. Using POLYMATH the programmer can proceed to
establish access policies for particular features (e.g. access to
buttons, pages, recipe management, etc.) thereby stopping
operators without the proper credentials from accessing or
editing data in an improper manner. Each operator, when
using the panel, must be recognised by the system by
entering an identifying name and a password for the
appropriate level of access (logon operation). It is envisaged
that only one operator can be logged on and use the panel at
any given moment; each operator can logout at any time.
Up to ten access levels can be defined and the lowest level
(typically level 1) is the one with the highest degree of
operational freedom. Each user who has not gone through the
login procedure will be treated by the system as a level 10
user (the lowest degree of freedom) and can access only the
features available to that level. To run an operation of a level
214
Chapter 5
Project Explorer
lower than ten, you will be asked to login again using a special
Popup page predefined by the system.
Use POLYMATH to define the initial users levels, that is the
levels of those present at the start-up of the project. You can
also add or edit users directly in runtime. To do this you can
introduce into their pages a predefined check called User List
(see chap. 6, User List Table page 436).
For security reasons each operator with access to the pages
for changing User Passwords (using the User List check) can
display and change the access credentials (name-password)
only of users with the same or higher-numbered levels than
his/her own (e.g. an operator on level 5 can see and change
the password of levels 5,6,7,8,9 and 10); also, the operator will
be asked for the password of the necessary authentication level
to access that field :
Chapter 5
215
Project Explorer
General
216
Chapter 5
Project Explorer
UP : The "Up" key allows the user to move the selected entry
up after going to the desired option.
"Down" : The "Down" key allows the user to move the selected
entry down after going to the desired option.
"Preview" : With the "Preview" key the user will view a graphic
preview of the chosen customization.
OK : By pressing "OK" the user confirms the created settings.
The following is an example of how the exportation file is composed after customization by the user (by default with all 4
options enabled) :
Chapter 5
217
Project Explorer
Users
218
Chapter 5
Project Explorer
Polymath 2.0 now also allows you to export with a new predefined function, the CSV user log.
Previous versions of the Polymath used Script.
The "User Log Export" function controls access to password
protected objects.
The new Export User Log function can be associated by the
Events / Functions Editor.
The event is activated in the various conditions listed in the
table "Password Events" (see chap. 6, Events related to Pipelines page 292):
Chapter 5
219
Project Explorer
220
Chapter 5
Project Explorer
Fields grid
The "Data Archive" object comprises all the Polymath functions able to store data :
Time trend
XY trend
Data log
Chapter 5
221
Project Explorer
Trend Buffer
In runtime the system supplies the support for the acquisition
and accumulation of numerical values and for their graphic
presentation in the form of a trend curve.
The accumulated data can be presented in real time or saved
into the permanent memory and recalled to the screen at a
later point.
By double-clicking on the Trend Buffers element in Project
Explorer, the list of Trends held in the project can be accessed.
This list also offers a summary of the principal characteristics
of the Trends in editable fields :
Using this list you can create new Trend buffers and duplicate
or delete existing ones.
For more information on the table and the meaning of the
events that can be associated to a Trend buffer, readers are
advised to consult the next chapter (see chap. 6, The events
relating to the Timers can be edited by the Events editor by
keeping the reference Timer in the related list selected.
page 294).
Once a new Trend has been created double-click on it in
Project Explorer to be able to edit it. For this there are two
pages General and Buffer as indicated in the following
sections. Project Explorer is used only to define the operation
of each Trend Buffer, while the way it is drawn is dealt with in
the next chapter (see chap. 6, Trend View page 407).
General
222
Chapter 5
Project Explorer
Using the General mask you can set the identifying properties
of the Trends. The ID of the Trend is an identifying number of
the data structure within the project; it is a whole number
greater than zero.
The name and ID of a Trend are unique attributes within the
project that is other different Trends with the same name and
number cannot exist.
The Comment is a Unicode string and is visible only within
POLYMATH.
Buffer
Description
Time based
Chapter 5
223
Project Explorer
Description
On Strobe Raise
On Strobe Fall
On Command
224
Chapter 5
Project Explorer
It is possible to customize certain parameters during exportation of the file in CSV format by pressing the "Customize File"
key, this way the user will access a menu to change the file :
UP : The "Up" key allows the user to move the selected entry up after going to the desired option.
"Down" : The "Down" key allows the user to move the
selected entry down after going to the desired option.
"Preview" : With the "Preview" key the user will view a
graphic preview of the chosen customization.
OK : By pressing "OK" the user confirms the created
settings.
Chapter 5
225
Project Explorer
The following is an example of how the exportation file is composed after customization by the user (with all 4 options enabled).
226
Chapter 5
Project Explorer
Note: The log file is a file the system uses to permanently save the
data to be represented in the TrendView. The fact that its name can
be chosen using POLYMATH is useful in that this allows the user to
manage the file (e.g. copy or delete if dimensions are too great). If,
however, you want to manipulate the data of a TrendBuffer it will
have to be exported using either a predefined function or Script (see
Appendix B - Predefined functions page 745 and see chap. 9,
Scripts page 553).
TrendBuffersXY
The display graphic of the "TrendBufferXY" property is the representation of two distinct variables, and not like in the
"TrendBuffer" of a variable depending on time. Therefore, as
shown in the following image, in the assignment phase, the
variables must both be determined (Source X and Source Y).
Chapter 5
227
Project Explorer
The functional features of the TrendXY and the relative memory buffer are indicated on this mask.
First of all, as can be seen, two distinct tag sources must be
indicated (and not only one, as in "Trend", since the second
variable was the time) which will be the object of "TrendXY"
monitoring.
As in the "Trend" function, a value sampling mode must be indicated. The available sampling types and their properties are
identical to those on "Table 4" and in the successive descriptions previously shown.
228
Chapter 5
Project Explorer
Events
The "Events" option is visible in "DOUBLE CLICK" mode and
comes under "Editor Events" in "Extended" mode.
You can associate events (scripts) to the various conditions of
the trendbufferXY (for example when the trendbufferXY is full)
by clicking the "Browse" button on the right :
The event is activated in the various conditions of the trendbufferXY. The conditions are listed in the table "Trendbuffer
Events" (see chap. 6, The events relating to the Timers can
be edited by the Events editor by keeping the reference Timer
in the related list selected. page 294).
DataLog
Scripts
Chapter 5
229
Project Explorer
To be able to enter the actual edit mode for a Script, doubleclick on it in Project Explorer; there are two masks for editing
Scripts: General and Scripts. These are described in the next
subsections.
For more information on the table and the meaning of the
events that can be associated to a Script, readers are advised
to consult the next chapter (see chap. 6, Script Events key
page 292).
General
230
Chapter 5
Project Explorer
Using the General mask you can set the identifying properties
of the Script. The Name is a unique attribute within the project
that is, other different Scripts with the same name cannot
exist.
The Comment is a Unicode string and is visible only within
POLYMATH.
It is also necessary to define whether the Script must return
a value to the application and what type of value this must be
(Number, String or Variant).
Use the table at the bottom of the mask to specify the input
parameters to the function with their related Names, Types
(Number, String or Variant) and Comments (visible only in
POLYMATH).
Scripts
The Script mask contains only one text input window, inside
of which you enter the code relating to the functions the Script
will have. For more information regarding the uses of Scripts
we advise the reader to consult the relevant part of the
manual (see chap. 9, Scripts page 553).
GlobalScripts
Text list
Chapter 5
231
Project Explorer
The
232
Chapter 5
Project Explorer
Image list
Chapter 5
233
Project Explorer
234
Chapter 5
Project Explorer
Image mask
Normal
Resample (also called Bilinear), a faster and less precise
algorithm recommended for reducing images
Bicubic, a more precise algorithm recommended for
enlarging images
in addition you can define the type of filter for the images that
contain colours not supported by the panel thanks to the
dithering technique (substitution of pixels with colours not
available with the interpolation method); you can choose from
a list of the more common types of dithering algorithm the one
you wish to use :
None
FloydStenberg
Stucki
Burkes
Sierra
StevensonArce
Chapter 5
235
Project Explorer
Jarvis
Ordered
Clustered
Excellent quality
Good quality
Normal
String compression
High compression
236
Chapter 5
Project Explorer
Chapter 5
237
Project Explorer
General
Pipelines
Pipelines
Print
Remote messages
Keyboards
Weekly tasks
Schedulers
Groups
Audio files (only when panels IT11x are used in the
project)
Pipelines are the active objects that update the value of one
variable on the basis of the value of another variable. The
most common application of Pipelines is for copying the value
of one variable into another; this function is convenient for
having the panel work as a bridge between two devices. The
Pipelines created with POLYMATH are already activated at the
start of the Runtime together with their particular functioning.
By double-clicking on the object Pipelines in Project Explorer,
the list of Pipelines in the project can be accessed. The
principal characteristics of each Pipeline are entered in
editable fields. Using this mask you can add new Pipelines,
edit or delete existing ones. A new Pipeline can be edited after
238
Chapter 5
Project Explorer
Using the General mask you can set the identifying properties
of the Pipeline. The ID of the Pipeline is an identifying number
of the data structure within the project; it is a whole number
greater than zero.
The Pipeline name and ID are unique attributes within the
project that is other different Pipelines with the same name
and the same ID cannot exist.
The Comment is a Unicode string and is visible only within
POLYMATH.
At the bottom of the mask you can enter the working
characteristics that describe the Pipeline. First of all, it is
necessary to indicate a source and destination variable.
Chapter 5
239
Project Explorer
Description
Polling
Copy by Change
Copy by
Command
In the boxes for choosing variables you will also find the icons
for adding variables
and editing
them.
Events
The "Events" option is visible in "DOUBLE CLICK" mode and
comes under "Editor Events" in "Extended" mode.
You can associate an event (function or script) to each condition of the Pipeline by clicking the "Browse" button on the right:
240
Chapter 5
Project Explorer
Reports
Chapter 5
241
Project Explorer
The lower part of the General mask can be used to define the
common layout of each page belonging to the Report currently
being edited. All the pages belonging to the same Report thus
have the same layout.
Using the left side of the mask you can define the page
settings while the right side shows you an updated preview of
how the printed page will look.
You can define a format for the page (options are A4, A3, B5,
Legal or Letter), an orientation (Portrait or Landscape) and a
default Colour for the pages belonging to the Report.
Finally, after specifying a unit of measurement as a reference
(options are: centimetres, pixel, inches or millimetres), you
can proceed to define the margins between which to print the
242
Chapter 5
Project Explorer
Report pages. You can define the left, right, top and bottom
page margins. You can also define default values for the
editing grid of all the pages belonging to the Report (then, if
required, the grid can be edited for each individual page in the
related General table).
Report page list
Chapter 5
243
Project Explorer
244
Chapter 5
Project Explorer
Header/Footer list
Chapter 5
245
Project Explorer
Fields
Using this mask you can edit the way the Header/Footer will
actually appear in the pages into which it is called; it is edited
just like in the case of normal pages with various objects being
introduced and properties being set (see chap. 6, Managing
a page page 295).
The properties of the Header/Footer are the same as for
Frames (see chap. 6, Properties of Frames page 298).
To introduce an object simply click on the respective icon and
immediately after draw where in the page you wish the outline
of the area to contain it to be placed.
The next chapter describes all the procedures for introducing
the graphic objects together with their related meanings and
tools.
Using this mask you can, however, set the dimensions of the
Frame. Click on the
icon to select it and then move the
cursor to one of the red corners by dragging it in line with the
desired dimensions (this operation can also be performed by
the General mask as set out in the next section).
You cannot use this mask to move the object, in that its
position could be at the top of the page (if used as a Header)
or at the bottom (if used as a Footer).
General
246
Chapter 5
Project Explorer
Note: There is also the possibility of managing the text print and
values on rows in runtime exploiting the Scripting functions
contained POLYMATH. Readers are advised to consult the section
in this manual dealing with the Scripts to discover the potential of
these functions (see chap. 9, object ESAPRN page 639).
Remote
Notifications
Chapter 5
247
Project Explorer
General
The text which will make up the message in the desired language can be typed on the "General" mask.
Email
From the "Email" mask it is possible to determine the settings
required to send the "Notifiche Remote" (Remote Notifications) via E-mails.
SMS
From the "SMS" mask it is possible to determine the settings
required to send the "Notifiche Remote" (Remote Notifications) via SMS service.
248
Chapter 5
Project Explorer
Proxy
From the "Proxy" mask it is possible to determine the settings
required to send the "Notifiche Remote" (Remote Notifications) via Proxy service.
Notification Users
From "Explore Project", double-clicking "Notification Users",
the user list is accessed.
Clicking "Add", an unlimited number of different users can be
added.
The name, e-mail address (needed to notify the message) and
the language can be specified for each user.
These parameters can be edited modifying the corresponding
fields :
Chapter 5
249
Project Explorer
Notification Groups
All users previously created can be put into one or more
groups.
From "Explore Project", double-clicking "NotificationGroups",
the group list is accessed.
Clicking "Add", one or more groups can be added :
250
Chapter 5
Project Explorer
From the "Users" mask, clicking "Add", the users created previously can be added one at a time.
Double-clicking "None", the users on the list can be chosen.
To add other users to the same group, repeat the operation,
clicking "Add" again, until the desired number of users is reached.
System
Keyboards
The system keyboards will be present by default in POLYMATH, they differ from regular keyboards because they may not
be customised, also their image is not visible in Explore
project and therefore may not be changed.
List
From Explore project, after double-clicking on "System keyboards" one will access the list of system keyboards in side of
which there is a default keyboard :
Chapter 5
251
Project Explorer
The selected keyboard will appear in the list from which it will
also be possible to choose whether to associate a "Beep" to
the keys, the user may choose among 3 possibilities :
252
Chapter 5
Project Explorer
Chapter 5
253
Project Explorer
Keyboards
254
Chapter 5
Project Explorer
Fields
Double-click one of the keyboards in "Explore Resources":
Chapter 5
255
Project Explorer
General
l
256
Chapter 5
Project Explorer
Properties
Weekly Tasks
The Weekly Tasks allow to set all functions that are necessary
to create and edit a "Chronothermostat".
After double clicking on the "TaskSettimanali" (Weekly Tasks)
in the '"Project Explorer", a list of "WeeklyTasks" inserted
within the project will appear in the work area :
Chapter 5
257
Project Explorer
The "General" mask shows the data relative to the "Chronothermostat" settings. It is possible to introduce the identification attributes of the page, such as "Name", "Comment" and
"Id".
The different editing fields listed below can be found in the
"Activation" section:
258
Chapter 5
Project Explorer
Script
Chapter 5
259
Project Explorer
The "Tag offset" can be used to set the offset value referring
to the "Chronothermostat" working temperature in a variable.
The actual temperature value is memorised in the "Tag temperatura corrente" (Current temperature tag).
Values
The "Values" table contains the data relative to the temperature and corresponding tag values. It can be useful to assign
a different tag value with respect to the temperature when the
device, used in the realisation of the project, requires conversion of the data according to its programming features. The
"Tools" key allows to modify the structure of the columns at
will.
Schedulers
Through the "Schedulers" function, Polymath allows programming the execution of organised events in daily and weekly time periods, even combining them with customised calendars.
List
After having double clicked on the "Schedulers" icon in the
"Explore Project", inside the work area the "List" mask containing a list of the schedulers inserted inside the project will appear:
From this list it is possible to insert new ones (by clicking the
"Add" key), to duplicate or to eliminate the existing ones (by
clicking the "Duplicate" and the "Delete" keys), the "Tools"
260
Chapter 5
Project Explorer
Identification
Properties
Holiday
Fields
Identification
Chapter 5
261
Project Explorer
This sub mask makes it possible to assign a name and a comment to the scheduler.
Properties
The "Properties" sub mask shows data relating to the "Scheduler" settings. It is possible to insert page identification attributes:
Task Type
Start Tag
End Tag
262
Chapter 5
Project Explorer
Start Tag
End Tag
Holiday
Chapter 5
263
Project Explorer
None
Do not perform during Holiday
Separate Scheduling
Choosing the "Do not Perform during Holiday" option the scheduler is disabled for a time period set by the user:
Choosing the "separate Scheduling" option it is possible to separately manage scheduler activities (main) and "Holiday" activities option:
264
Chapter 5
Project Explorer
"None"
"Days"
"Week"
Chapter 5
265
Project Explorer
266
Chapter 5
Project Explorer
OnStart: The event is activated by the "start tag" assigned value present in the "properties" sub mask (see
chap. 5, Properties page 261).
OnStop: The event is activated by the "end tag" assigned value present in the "properties" sub mask. (see
chap. 5, Properties page 261).
Chapter 5
267
Project Explorer
Holiday Group
The "Holiday Groups" function, already found in the "Chronothermostat" option (see chap. 6, Chronothermostat
page 445)allows activities planning, usually matched to the
"Scheduler" function, and managing them over a user-definable time period. (see chap. 5, Holiday page 262).
After having double clicked on the "Holiday Groups" icon in the
"Explore Project", inside the work area the "List" mask containing a list of Holiday Groups inserted inside the project will appear :
268
Chapter 5
Project Explorer
From this list it is possible to insert new ones (by clicking the
"Add" key), to duplicate or to eliminate the existing ones (by
clicking the "Duplicate" and the "Delete" keys), the "Tools"
key allows modifying the columns structure at will, while the
"Modify" key allows entering the "General" property editing
mask :
General
This sub mask makes it possible to assign a name and a comment to the "Holiday Group".
Chapter 5
269
Project Explorer
Properties
Holiday Type
Month
Year
"Specific Year": Determines month and year during which Group is active
Start Tag
End Tag
270
Chapter 5
Project Explorer
Audio Files
Chapter 5
271
Project Explorer
User can use the "Audio Files" function to assign an audio file
(both.MP3 and .Wav) to an alarm report.
272
Chapter 5
Project Explorer
From this list it is possible to insert new ones (by clicking the
"Add" key), to duplicate or to eliminate the existing ones (by
clicking the "Duplicate" and the "Delete" keys), the "Tools"
key allows modifying the columns structure at will, while the
"Modify" key allows entering the "General" property editing
mask, by clicking on the "Including Resources" editing area
the "Include as a resource inside project" check-box will also
appear, by setting "True" the file just downloaded will be available inside the project :
Chapter 5
273
Project Explorer
General
In the "General" sub mask the "Audio File" name and comment can be edited.
Properties
Properties
Listen / Stop
274
Chapter 5
Project Explorer
Chapter 5
275
Project Explorer
he "List" window will appear containing a list of "Timers" entered in the project :
276
Chapter 5
Project Explorer
Chapter 5
277
Project Explorer
Timer Events
You can associate an event (function or script) to a particular
condition of any timer you have created. These conditions can
be :
278
Chapter 5
Project Explorer
Configuring the
device
It is possible to define a set of properties and working characteristics for each device in the project;
Double-click "HW Configuration" in "Explore Project" to open
the editing page :
Chapter 5
279
Project Explorer
"Parameters" subwindow :
Communication Ports
280
Chapter 5
Project Explorer
Chapter 6
281
Properties Editor
6.
Properties Editor
Please note the "Properties Editor" is only visible in "EXTENDED" mode (see chap. 4, Choice of interface page 89).
282
Chapter 6
Properties Editor
Note: As of DOUBLE CLICK, all the objects properties are visible and editable in the popup-window which appears after double
click over any object. Following is an example using in the project
a Touch Button":
Chapter 6
283
Properties Editor
284
Chapter 6
Properties Editor
By clicking on the Behaviour option we can get into the following window, from which it's possible to edit the following
properties :
Chapter 6
285
Properties Editor
By clicking on the option Text List we can get into the following window, from which it's possible to edit the following
properties :
286
Chapter 6
Properties Editor
By clicking on the Image option we can get into the following window, from which it's possible to edit the following
properties :
By clicking on the Events option we can get into the following window, from which it's possible to associate an event
(function or script) to the object (see chap. 6, Properties of
the Touch button page 374) :
Chapter 6
287
Properties Editor
RGB
Hexadecimal value
Red
255,0,0
00 00 00 FF
Green
0,255,0
00 00 FF 00
288
Chapter 6
Properties Editor
Table 1:
Events Editor
Color
RGB
Hexadecimal value
Blue
0,0,255
00 FF 00 00
Chapter 6
289
Properties Editor
The resulting mask will allow you to make all the settings necessary; to add a function just click on Add Function and
choose the function you want from the list that appears. Similarly, by clicking on Add Script you can choose the Script to
be assigned. For objects like touch buttons, Function keys and
Switchbuttons up to 2 functions/scripts per corresponding
event can be introduced; for the events of other objects generally only one function or script can be assigned. To change
the order in which the functions must be executed just move
them using the Move up and Move down keys. To eliminate
a function you just need to select it and click on the Delete
button.
290
Chapter 6
Properties Editor
Note: If you wish to assign more than one function to a key, it is better to use a user script containing those functions.
We set out below a description of the events that can be assigned to some of the elements already seen in Project Explorer. The list of events in the case of graphic elements will by
contrast be dealt with case by case.
Events related to variables
Table 2: Events assignable to variables
Event
Description
OnInizialization
Activated immediately after initialization of the variable, that is, at the startup of Runtime
OnOffLine
OnOffScan
Activated when the update of the variable field is disabled; this happens via
a script setting the attribute OffScan at
True (see chap. 5, Device page 142)
OnOnLine
OnOnScan
Activated when the update of the variable field is enabled; this happens via
a script setting the attribute OffScan at
False (see chap. 5, Device page 142)
OnRawValueChange
OnValSent
Chapter 6
291
Properties Editor
Description
OnValueChange
Activated when a new value is assigned to the variable (thus also at the
startup of the project and when the
connection with the device is re-established). The event is always generated
before the value itself is transferred
Description
OnHistoryFull
OnHistoryWarning
Description
OnAlarmAck
OnAlarmOff
OnAlarmOn
292
Chapter 6
Properties Editor
Description
OnDownload
Complete
OnDownloadError
OnRecipeCreate
OnRecipeDelete
OnRecipeLoad
OnUploadComplete
OnUploadError
Activated when errors occur in the upload from the VT to the device
Descrizione
OnScriptError
Description
OnDestDown
Chapter 6
293
Properties Editor
Description
OnSourceDown
OnStart
OnStop
Description
OnLogin
OnLogout
OnLoginError
OnPasswordChanged
Activated following a change in password for a user via the user grid (see
chap. 6, Properties of the Password
Grid page 438)
294
Chapter 6
Properties Editor
Description
OnSuspend
OnTimerFired
OnTimerStart
OnTimerStop
Description
OnBufferClear
OnBufferFull
OnBufferOverflow
OnSample
OnWarningLevel
Chapter 6
295
Properties Editor
Scheduler Events
Events regarding Schedulers can be edited by "Events Editor"
(EXTENDED mode) or by the "Events" option in the DOUBLE
CLICK mode. (see chap. 5, Events page 156).
Table 11: Scheduler Events
Managing a
page
Event
Description
OnStart
OnStop
During the editing of a page a series of programming commands are made available. Use buttons
,
and
of the toolbar (accessible also via Layout menu ->Zoom) to
change the display dimensions of a page, defining these with
the Zoom (the same operation can be performed by clicking
296
Chapter 6
Properties Editor
the right-hand mouse key when the pointer is on the page and
choosing the required function from the menu that appears).
By clicking on the
icon of the toolbar (Layout -> Show
Grid) you can decide whether to show or hide the editing grid
in the page preview. The grid is very useful for bringing objects in alignment very quickly when they are being arranged
on the page. The grid dimensions can also be edited using
Project Explorer in the VT options (see chap. 5, Main window
page 129).
By clicking on the
icon of the toolbar (Layout -> Align Grid)
you can decide whether to align the objects to the grid once
they have been introduced or whether to have them introduced freely.
With alignment to the grid is activated, the element can only
be introduced within the limits delineated by the grid.
Chapter 6
297
Properties Editor
Description
PageBColor
PageBorder3DEffect
PageBorderColor
PageBorderEnabled
PageBorderSize
PageBorderStyle
BackgroundImage
Enabled
298
Chapter 6
Properties Editor
Description
BackgroundImageId
ImageHPosition
ImageReprMode
ImageVPosition
Description
OnPageOpen
OnPageClose
Meaning
FrameBColor
Transparent
Chapter 6
299
Properties Editor
Predefined
graphic
elements
Properties
Meaning
FrameBColor
Background color of the frame; editable using RGB code or palette of colors
PageBorder3DEffect
PageBorderColor
Indicates the color of the Border; editable using RGB code or palette of colors
PageBorderEnabled
PageBorderSize
PageBorderStyle
BackgrImageEnabled
BackgroundImageID
300
Chapter 6
Properties Editor
Warning: When planning your project you need to bear in mind that
when two buttons on the Touch Screen panel are pressed at the same
time this is interpreted as having pressed halfway between these buttons. So you are advised to avoid settings that involve this situation.
Simple Figures
Description
Name
Comment
Top
Left
Chapter 6
301
Properties Editor
Description
Width
Width dimension
Height
Height dimension
AreaColor
AreaVisibility
Border3D
BorderBlink
BorderColor
BorderVisibility
BorderSize
BorderStyle
302
Chapter 6
Properties Editor
Description
TypeOfBox
RoundX
RoundY
Hide
Determines whether the object is initially visible. It is also possible to assign a Boolean variable (for changes in
Runtime) or it can be managed with
thresholds
Lock
PartialFill
FillColor
Determines the color of the Border infill that can be selected using the RGB
code or color palette. The value can be
assigned to a whole variable
FillDir
FillPercent
TypeOfMovement
TagDirectMovement
Chapter 6
303
Properties Editor
Description
TagX
TagY
Steps
Movement intervals
FinalX
Horizontal co-ordinate
FinalY
Vertical co-ordinate
Ellipse
An ellipse can be introduced into a page by clicking on the icon
or using the Main Menu (Fields->Create->Simple figures>Ellipse) and drawing its dimensions directly in the page.
To define the characteristics of the Ellipse, they must be set in
the Properties Editor as indicated in the following section.
Description
Name
Comment
Top
Left
Width
Width dimension
Height
Height dimension
304
Chapter 6
Properties Editor
Description
AreaColor
AreaVisibility
LineColor
Determines the color of the Ellipse outline that can be selected using the RGB
code or color palette. The value can be
assigned to a whole variable or it can
be managed with thresholds
Hide
Determines whether the object is initially visible; it is also possible to assign a Boolean variable (dynamic in
Runtime) or it can be managed with
thresholds
Lock
Ellipse3D
PartialFill
FillColor
FillDir
FillPercent
Chapter 6
305
Properties Editor
Description
TypeOfMovement
TagDirectMovement
TagX
TagY
Steps
Movement intervals
FinalX
Horizontal co-ordinate
FinalY
Vertical co-ordinate
Arc
An Arc can be introduced into a page by clicking on the icon
or using the Main Menu (Fields->Create->Simple figures>Arc) and drawing its dimensions directly in the page.
To define the characteristics of the Arc they must be set in the
Properties Editor as indicated in the following section.
Description
Name
Comment
306
Chapter 6
Properties Editor
Description
Top
Left
Width
Width dimension
Height
Height dimension
LineColor
Hide
Lock
StartAngle
SweepAngle
Sector
A Sector can be introduced into a page by clicking on the icon
or using the Main Menu (Fields->Create->Simple figures>Sector) and drawing its dimensions directly in the page.
To define the characteristics of the Sector they must be set in
the Properties Editor as indicated in the following section.
Chapter 6
307
Properties Editor
Description
Name
Comment
Top
Left
Width
Width dimension
Height
Height dimension
AreaColor
AreaVisibility
LineColor
Determines the color of the Sector outline, which can be selected using the
RGB code or color palette. The value
can be assigned to a whole variable or
it can be managed with thresholds
Hide
Determines whether the object is initially visible; it is also possible to assign a Boolean variable (dynamic in
Runtime) or it can be managed with
thresholds
Lock
StartAngle
SweepAngle
308
Chapter 6
Properties Editor
Description
CircularSectorType
PartialFill
FillColor
Determines the color of the Sector infill, which can be selected using the
RGB code or color palette. The value
can be assigned to a whole variable
FillDir
FillPercent
TypeOfMovement
TagDirectMovement
TagX
TagY
Steps
Movement intervals
FinalX
Horizontal co-ordinate
FinalY
Vertical co-ordinate
Line
A Line can be introduced into a page by clicking on the icon
or using the Main Menu (Fields->Create->Simple figures>Line) and drawing its dimensions directly in the page.
To define the characteristics of the Line they must be set in
the Properties Editor as indicated in the following section.
Chapter 6
309
Properties Editor
Description
Name
Comment
X1
X2
Y1
Y2
Effect3D
LineColor
LineSize
310
Chapter 6
Properties Editor
Description
Hide
Lock
TypeOfMovement
TagDirectMovement
TagX
TagY
Steps
Movement intervals
FinalX
Horizontal co-ordinate
FinalY
Vertical co-ordinate
Polygon
A Polygon can be introduced into a page by clicking on the icon
or using the Main Menu (Fields->Create->Simple figures>Polygon). After clicking on the icon, click on the page at the
points that you want the vertices of the Polygon to appear in.
POLYMATH will show the preview of the Polygon as soon as the
mouse is moved. Every click made will produce a new vertex.
The introduction of the Polygon is confirmed by just doubleclicking it (thereby ending its edit).
Once a Polygon has been introduced, its structure (that is, its
vertices) can be edited: after selecting the Polygon and then
moving one of its vertices the lines (sides) adjacent to this
vertex are automatically removed by POLYMATH.
Using this function, an irregular Polygon can be created, that
is one having angles and sides with dimensions chosen at will.
Regular polygons can also be introduced using the appropriate
POLYMATH tool (see chap. 6, Regular polygon page 315).
To define the characteristics of the Polygon they must be set
in the Properties Editor as indicated in the following section.
Chapter 6
311
Properties Editor
Description
Name
Comment
Top
Left
Width
Width dimension
Height
Height dimension
AreaColor
AreaVisibility
312
Chapter 6
Properties Editor
Table 20:
Properties
Description
LineColor
LineSize
Determines the thickness of the outline of the Polygon. The value can be
assigned to a whole variable or it can
be managed with thresholds
Hide
Determines whether the object is initially visible; it is also possible to assign a Boolean variable (dynamic in
Runtime) or it can be managed with
thresholds
Lock
PartialFill
FillColor
Determines the color of the Polygon infill using the RGB code or the color palette. The value can be assigned to a
whole variable
FillDir
Determines the direction of the Polygon infill. The infill can happen From
Low to High, From High to Low, From
Right to Left or From Left to Right. The
value can be assigned to a whole variable
FillPercent
TypeOfMovement
TagDirectMovement
TagX
TagY
Chapter 6
313
Properties Editor
Table 20:
Properties
Description
Steps
Movement intervals
FinalX
Horizontal co-ordinate
FinalY
Vertical co-ordinate
Irregular line
A Irregular line can be introduced into a page by clicking on
the icon
or using the Main Menu (Fields->Create->Simple
figures->Irregular line). After clicking on the icon, click on the
page at the points that you want the vertices of the figure to
appear (in practice, the beginning and the end of the various
line sections). POLYMATH will show the preview of the line as
soon as the mouse is moved. Every click made will produce a
new line sections. The introduction of the Irregular line is confirmed by just double-clicking it (thereby ending its edit).
Once an Irregular line has been introduced, its structure (that
is, its vertices) can be edited: after selecting the Line and then
moving one of its lines, those adjacent to this vertex are automatically removed by POLYMATH.
Using this function, an open line can be created, that differs
from an irregular Polygon in that it is not necessarily closed to
form a closed geometric figure.
To define the characteristics of the Irregular line they must be
set in the Properties Editor as indicated in the following section.
314
Chapter 6
Properties Editor
Description
Name
Comment
Top
Left
Width
Width dimension
Height
Height dimension
LineColor
LineSize
Determines the thickness of the outline of the Line. The value can be assigned to a whole variable or it can be
managed with thresholds
NPoints
Hide
Determines whether the object is initially visible; it is also possible to assign a Boolean variable (dynamic in
Runtime) or it can be managed with
thresholds
Lock
TypeOfMovement
TagDirectMovement
TagX
TagY
Chapter 6
315
Properties Editor
Description
Steps
Movement intervals
FinalX
Horizontal co-ordinate
FinalY
Vertical co-ordinate
Regular polygon
A Regular polygon can be introduced into a page by clicking
on the icon
or using the Main Menu (Fields->Create->Simple figures->Regular polygon). After clicking on the icon, use
the mouse to indicate the area in the page where POLYMATH
should draw the Polygon.
The default setting is that a pentagon (5 sides) is drawn; to
change the number of sides (vertices) just edit the properties
Number of Points using the Properties Editor (see the following section).
This function allows the creation only of regular polygons, that
is, one with all the angles and sides equal. Irregular Polygons
can also be introduced by using the appropriate POLYMATH
tool (see chap. 6, Polygon page 310).
To define the characteristics of the Regular Polygon they must
be set in the Properties Editor as indicated in the following
section.
316
Chapter 6
Properties Editor
Description
Name
Comment
Top
Left
Width
Width dimension
Height
Height dimension
AreaColor
AreaVisibility
Chapter 6
317
Properties Editor
Description
Border3D
BorderBlink
BorderColor
Determines the color of the Border using the RGB code or color palette. The
value can be assigned to a whole variable or it can be managed with thresholds
BorderVisibility
BorderSize
BorderStyle
FontField
Text
TextBlink
318
Chapter 6
Properties Editor
Description
TextColor
TextHAlign
TextVAlign
Allows you to specify the vertical centering of the text within the Label. The
value can be assigned to a whole variable or it can be managed with thresholds
Hide
Determines whether the object is initially visible. It is also possible to assign a Boolean variable (for changes in
Runtime) or it can be managed with
thresholds
Lock
TextMaxLen
Determines the maximum value in relation to the length of the text string
TextMultiLine
TextTranslateDisable
TextAutoAdjust
TypeOfMovement
TagDirectMovement
TagX
Chapter 6
319
Properties Editor
Description
TagY
Steps
Movement intervals
FinalX
Horizontal co-ordinate
FinalY
Vertical co-ordinate
Complex label
A Complex label can be introduced into a page by clicking on
the icon
or using the Main Menu (Fields->Create->Simple
figures->Complex label). This icon (or Menu option) is active
only if it is within a Complex Control editor (see chap. 6,
Complex Controls page 400).
After clicking on the icon, use the mouse to indicate the area
in the page where POLYMATH should draw the Label. A Label
is a text field (may be multilanguage) into which you can introduce text strings that will not change in Runtime.
To define the other characteristics of the Label they must be
set in the Properties Editor as indicated in the following section.
320
Chapter 6
Properties Editor
Description
Name
Comment
Top
Left
Width
Width dimension
Height
Height dimension
AreaColor
AreaVisibility
Chapter 6
321
Properties Editor
Description
Border3D
BorderBlink
BorderColor
Determines the color of the Border using the RGB code or color palette. The
value can be assigned to a whole variable
BorderVisibility
BorderSize
BorderStyle
FontField
TextBlink
TextColor
TextHAlign
322
Chapter 6
Properties Editor
Description
TextVAlign
Lock
PasswordLevel
Determines the authorization level required to access the field (see chap. 5,
Password configuration page 213)
TabIndex
AsciiLen
PenValue
Image Field
An Image field can be introduced into a page by clicking on the
icon
or using the Main Menu (Fields->Create->Simple figures->Image). After clicking on the icon, use the mouse to indicate the area in the page where POLYMATH should draw the
Image. The area created in this way will contain one of the images added to the project (see chap. 5, Frames page 178).
To define the characteristics of the Image they must be set in
the Properties Editor as indicated in the following section.
Chapter 6
323
Properties Editor
Description
Name
Comment
Top
Left
Width
Width dimension
Height
Height dimension
AreaColor
AreaVisibility
Border3D
BorderBlink
324
Chapter 6
Properties Editor
Description
BorderColor
Determines the color of the Border using the RGB code or color palette. The
value can be assigned to a whole variable or it can be managed with thresholds
BorderVisibility
BorderSize
BorderStyle
Image
Hide
Determines whether the object is initially visible. It is also possible to assign a Boolean variable (for changes in
Runtime) or it can be managed with
thresholds
Lock
ImageAutoSize
ImageHAlign
Indicates the type of horizontal alignment of the image within the Field,
which can be Central, Leftward or
Rightward
ImageKeepAspect
Ratio
Chapter 6
325
Properties Editor
Description
ImageTransColor
ImageTransparent
ImageVAlign
TypeOfMovement
TagDirectMovement
TagX
TagY
Steps
Movement intervals
FinalX
Horizontal co-ordinate
FinalY
Vertical co-ordinate
Value fields
Invert Function
Option
326
Chapter 6
Properties Editor
Selecting the "Show the invert function" box, the option will
be activated.
Invert Function
option
operation
Chapter 6
327
Properties Editor
The behaviour associated to the "Tag" is inverted. For example, if a "Tag" enables the display of the background colour of
the numerical field when its value is "1", selecting the "Invert"
option, the numerical field background will be visible even
when the value of the "Tag" is "0" and not "1".
Thresholds Management Function
A new functionality is present inside POLYMATH (starting from
version 1.7).
The new POLYMATH function, called Thresholds is present inside the Editor Properties and as been created as an additional
option in order to manage the colour change, the flashing, hide, disable and other properties of the various objects.
Thresholds
option
functioning
To explain functioning of the Thresholds option, the AreaColourPressed property of a Touch-sensitive Button will be taken
as an example :
328
Chapter 6
Properties Editor
Chapter 6
329
Properties Editor
From the previous mask, select the type of thresholds management to be performed, whether with "Valore" (Values) or
"Bits". Moreover, the "ColoreAreaPremuta" (AreaColourPressed) property of the "PulsanteSfioramento" (Touch-sensitive
Button) must be associated to a "Tag". In our example we have selected the "Valore" type of management. In this case the
user can add all of the values he wants without any limits :
330
Chapter 6
Properties Editor
Chapter 6
331
Properties Editor
The second threshold is assigned with the value "20", associating it to blue :
Clicking on the
If the user should select the "Bits" type management, the same amount of values must be introduced as there are Bits defined to which the desired settings are to be associated.
Practically, the user can assign a different colour to every Bit,
for example when the second Bit is at 1, the object will be yel-
332
Chapter 6
Properties Editor
low. When the third Bit is at 1, the object will be blue, when
the fourth Bit is at 1, the object will be red and so on.
If there are more Bits at 1, the lowest one will be considered.
Chapter 6
333
Properties Editor
3D Ellipse
Arc
Line Colour
Hidden
Circular Sector
Area Colour
Area Visibility
Line Colour
Hidden
Line
3D effect
Line Colour
Line Size
Hidden
Polygon
Area Colour
Area Visibility
Line Colour
Line Size
Hidden
Polyline
Line Colour
Line Size
Hidden
Regular Polygon
Area Colour
Area Visibility
Line Colour
Line Size
334
Chapter 6
Properties Editor
Hidden
Label
Area Colour
Area Visibility
3D Border
Border Flashing
Border Colour
Border Thickness
Border Style
Text Flashing
Text Colour
Text Horizontal Alignment
Text Vertical Alignment
Hidden
Image
Area Colour
Area Visibility
3D Border
Border Flashing
Border Colour
Border Thickness
Border Style
Hidden
Numerical Field
Area Colour
Area Visibility
3D Border
Border Flashing
Border Colour
Border Thickness
Border Style
Text Flashing
Text Colour
Text Horizontal Alignment
Text Vertical Alignment
Rejected Characters
Chapter 6
335
Properties Editor
Disabled
Hidden
Mile Separator
Dynamic Text
Area Colour
Area Visibility
3D Border
Border Flashing
Border Colour
Border Thickness
Border Style
Text Flashing
Text Colour
Text Horizontal Alignment
Text Vertical Alignment
Disabled
Hidden
Ascii Field
Area Colour
Area Visibility
3D Border
Border Flashing
Border Colour
Border Thickness
Border Style
Text Flashing
Text Colour
Text Horizontal Alignment
Text Vertical Alignment
Disabled
Hidden
Symbol Field
Area Colour
Area Visibility
3D Border
Border Flashing
Border Colour
Border Thickness
Border Style
336
Chapter 6
Properties Editor
Disabled
Hidden
Date Time Field
Area Colour
Area Visibility
3D Border
Border Flashing
Border Colour
Border Thickness
Border Style
Text Flashing
Text Colour
Text Horizontal Alignment
Text Vertical Alignment
Disabled
Hidden
Bar Field
Area Colour
Area Visibility
3D Border
Border Flashing
Border Colour
Border Thickness
Bar Background Colour
Disabled
Hidden
Indicator
Area Visibility
Border Style
Hidden
Touch-sensitive Button
Area Colour Pressed
Area Colour Released
Area Visibility
Border Flashing
Chapter 6
337
Properties Editor
Slide Potentiometer
Area Colour
Area Visibility
3D Border
Border Flashing
Border Colour
Border Thickness
Disabled
Hidden
Slide Selector
Area Colour
Area Visibility
3D Border
Border Flashing
Border Colour
Border Thickness
Disabled
Knob potentiometer
Area Visibility
338
Chapter 6
Properties Editor
Border Style
Disabled
Hidden
Knob Selector
Area Visibility
Border Style
Disabled
Hidden
Monostable Button
Area Colour Pressed
Area Visibility Pressed
Area Colour Released
Area Visibility Released
Disabled
Hidden
Bistable Button
Area Colour Key Off
State Area Off Present
Area Colour State On
State Area On Present
Disabled
Hidden
Frame
Background Frame Colour
Transparent Background Frame Colour
Page Edge Colour
Page Border Thickness
Page Border Style
Trend Buffer View
Area Colour
Area Visibility
3D Border
Border Flashing
Border Colour
Chapter 6
339
Properties Editor
Border Thickness
Border Style
Hidden
Trend Buffer Graphics
Area Colour
Area Visibility
3D Border
Border Flashing
Border Colour
Border Thickness
Border Style
Trend Buffer X-Y View
Area Colour
Area Visibility
3D Border
Border Flashing
Border Colour
Border Thickness
Border Style
Hidden
Trend X-Y Graphics
Area Colour
Area Visibility
3D Border
Border Flashing
Border Colour
Border Thickness
Border Style
Data Log View
Area Colour
Area Visibility
3D Border
Border Flashing
Border Colour
Border Thickness
Border Style
340
Chapter 6
Properties Editor
Hidden
Active Alarms View
Area Colour
Area Visibility
3D Border
Border Flashing
Border Colour
Border Thickness
Border Style
Historic Alarms View
Area Colour
Area Visibility
3D Border
Border Flashing
Border Colour
Border Thickness
Border Style
Hidden
User List
Area Colour
Area Visibility
3D Border
Border Flashing
Border Colour
Border Thickness
Border Style
Hidden
Recipes List
Area Colour
Area Visibility
3D Border
Border Flashing
Border Colour
Border Thickness
Border Style
Chapter 6
341
Properties Editor
Hidden
Recipe Editing
Area Colour
Area Visibility
3D Border
Border Flashing
Border Colour
Border Thickness
Border Style
Hidden
Recipe Type Name Text
Area Colour
Area Visibility
3D Border
Border Flashing
Border Colour
Border Thickness
Border Style
Text Flashing
Text Colour
Text Horizontal Alignment
Text Vertical Alignment
Disabled
Hidden
Recipe Comment
Area Colour
Area Visibility
3D Border
Border Flashing
Border Colour
Border Thickness
Border Style
Text Flashing
Text Colour
Text Horizontal Alignment
Text Vertical Alignment
Disabled
Hidden
342
Chapter 6
Properties Editor
Chronothermostat View
Area Colour
Area Visibility
3D Border
Border Flashing
Border Colour
Border Thickness
Border Style
Hidden
Chronothermostat Grid
Area Colour
Area Visibility
3D Border
Border Colour
Border Thickness
Border Flashing
Vertical Scale Label Colour
Keyboard Display
Area Colour
Border Colour
Text Colour
Numerical Field
A Numerical Field can be introduced into a page by clicking on
the icon
or using the Main Menu (Fields->Create->Value
Fields->Numerical field). After clicking on the icon, use the
mouse to indicate the area in the page where POLYMATH
should draw the Field.
The purpose of the Numerical Field is to show the operator the
updated value of a particular variable. These fields can be also
be edited to become Edit value fields.
The reader is advised to consult the following subsections to
learn about the details of the properties and events that can
be assigned to a Numerical Field. In POLYMATH, the value of
the Numerical Field is represented by a series of hash characters which in Runtime are substituted by the effective value.
Chapter 6
343
Properties Editor
Description
Name
Comment
Top
Left
Width
Width dimension
Height
Height dimension
AreaColor
AreaVisibility
Border3D
344
Chapter 6
Properties Editor
Properties
Description
BorderBlink
BorderColor
Determines the color of the Border using the RGB code or color palette. The
value can be assigned to a whole variable or it can be managed with thresholds
BorderVisibility
BorderSize
BorderStyle
Digits
FontField
KeyboardId
Enabling this option allows you to select the keyboard to use for editing
Representation
Indicates the value representation format, which will be either Decimal with
or without a Sign, Hexadecimal, Binary, Floating or Fixed Point
TagId
Chapter 6
345
Properties Editor
Properties
Description
TextBlink
TextColor
TextHAlign
TextVAlign
TruncationDigits
Disable
Hide
Determines whether the object is initially visible. You can also assign a
Boolean variable (for Runtime changes) or it can be managed with thresholds
LeadingZeroes
Lock
PasswordLevel
Determines the authorization level required to be able to edit the field (see
chap. 5, Password configuration
page 213). This property is ignored if
the field is Read Only
346
Chapter 6
Properties Editor
Properties
Description
TabIndex
Thousep
PasswordChar
Picture
Indicates the layout of the representation of the numerical value; for example, if the value is 35403 and if the
picture is ##!#:## the field displayed
will be 35!4:03
DecimalDigits
NegativeLeftText
PositiveLeftText
NegativeRightText
PositiveRightText
TypeOfMovement
Chapter 6
347
Properties Editor
Properties
Description
TagDirectMovement
TagX
TagY
Steps
Movement intervals
FinalX
Horizontal co-ordinate
FinalY
Vertical co-ordinate
Description
OnAbortInput
OnBeginInput
OnValueChange
Dynamic Text
A Dynamic text can be introduced into a page by clicking on
the icon
or using the Main Menu (Fields->Create->Value
Fields->Dynamic text). After clicking on the icon, use the
mouse to indicate the area in the page where POLYMATH
should draw the Field.
The purpose of a Dynamic text is to show the operator a given
string as the function of the value of a variable. Which string
contained in a Text List is displayed depends on the value of
the variable, (see chap. 5, Text list page 230). For example
the words On or Off can be shown as a function of a Boolean variable.
The reader is advised to consult the following subsections to
learn about the details of the properties and events that can
be assigned to a Dynamic text. In POLYMATH, the value of a
Dynamic text is represented by the first value of the text list
which in Runtime is substituted by the correct value.
348
Chapter 6
Properties Editor
Description
Name
Comment
Top
Left
Width
Width dimension
Height
Height dimension
AreaColor
AreaVisibility
Border3D
BorderBlink
Chapter 6
349
Properties Editor
Description
BorderColor
Determines the color of the Border using the RGB code or color palette. The
value can be assigned to a whole variable or it can be managed with thresholds
BorderVisibility
BorderSize
BorderStyle
FontField
TagId
TextBlink
TextColor
TextHAlign
350
Chapter 6
Properties Editor
Description
TextVAlign
Value
Active if the type of control is valueorientated; the values on which to apply the list strings must be indicated.
By clicking on
you can access the
mask associating values and elements
of the text list
ControlType
Indicates the type of control to exercise over the control variable; this can
be value-oriented, single-bit orientated or bit-group-oriented.
Disable
FirstBit
Hide
Determines whether the object is initially visible. You can also assign a
Boolean variable (for Runtime changes) or it can be managed with thresholds
LastBit
Lock
PasswordLevel
Determines the authorization level required to be able to edit the field (see
chap. 5, Password configuration
page 213). This property is ignored if
the field is Read Only
Chapter 6
351
Properties Editor
Description
TabIndex
TextListId
TextMaxLen
TextTranslateDisable
TypeOfMovement
TagDirectMovement
TagX
TagY
Steps
Movement intervals
FinalX
Horizontal co-ordinate
FinalY
Vertical co-ordinate
Description
OnAbortInput
352
Chapter 6
Properties Editor
Description
OnBeginInput
OnValueChange
ASCII Field
An ASCII field can be introduced into a page by clicking on the
icon
or using the Main Menu (Fields->Create->Value
Fields->ASCII field). After clicking on the icon, use the mouse
to indicate the area in the page where POLYMATH should draw
the Field.
ASCII fields tell the operator the updated value of a particular
String variable. These fields can also be edited thereby becoming value changing fields.
The reader is advised to consult the following subsections to
learn about the details of the properties and events that can
be assigned to an ASCII Field. In POLYMATH, the value of an
ASCII field is represented by a series of dollar symbols ($)
that can be substituted by the effective value in Runtime.
Description
Name
Comment
Chapter 6
353
Properties Editor
Description
Top
Left
Width
Width dimension
Height
Height dimension
AreaColor
AreaVisibility
Border3D
BorderBlink
BorderColor
Determines the color of the Border using the RGB code or color palette. The
value can be assigned to a whole variable or it can be managed with thresholds
BorderVisibility
BorderSize
354
Chapter 6
Properties Editor
Description
BorderStyle
FontField
KeyboardId
Enabling this option allows you to select the keyboard to use for editing
TagId
TextBlink
TextColor
TextHAlign
TextVAlign
Disable
Chapter 6
355
Properties Editor
Description
Hide
Determines whether the object is initially visible. You can also assign a
Boolean variable (for Runtime changes) or it can be managed with thresholds
Lock
PasswordLevel
Determines the authorization level required to be able to edit the field (see
chap. 5, Password configuration
page 213). This property is ignored if
the field is Read Only
TabIndex
AsciiLen
PasswordChar
TypeOfMovement
TagDirectMovement
TagX
TagY
Steps
Movement intervals
356
Chapter 6
Properties Editor
Description
FinalX
Horizontal co-ordinate
FinalY
Vertical co-ordinate
Properties
OnAbortInput
OnBeginInput
OnValueChange
Symbol Field
A Symbol field can be introduced into a page by clicking on the
icon
or using the Main Menu (Fields->Create->Value
fields->Symbol field). After clicking on the icon, use the
mouse to indicate the area in the page where POLYMATH
should draw the Field.
The Symbol field serves to indicate to the operator a given image according to the value of a related variable; depending on
the value of the variable, an image contained in a list of images is displayed (see chap. 5, Image list page 232). For example, the image of a led that may be ON or OFF can be
shown, according to the Boolean variable.
The reader is advised to consult the following subsections to
learn about the details of the properties and events that can
be assigned to a Symbol field. In POLYMATH, the Symbol field
value is represented by the first image in the image list will be
replaced by the correct image in Runtime.
Chapter 6
357
Properties Editor
Description
Name
Comment
Top
Left
Width
Width dimension
Height
Height dimension
AreaColor
AreaVisibility
Border3D
358
Chapter 6
Properties Editor
Description
BorderBlink
BorderColor
Determines the color of the Border using the RGB code or color palette. The
value can be assigned to a whole variable or it can be managed with thresholds
BorderVisibility
BorderSize
BorderStyle
TagId
Value
ControlType
Indicates the type of control to exercise over the control variable; this can
be value-oriented, single-bit orientated or bit-group-oriented.
Chapter 6
359
Properties Editor
Description
Disable
FirstBit
Hide
Determines whether the object is initially visible. You can also assign a
Boolean variable (for Runtime changes) or it can be managed with thresholds
LastBit
Active if the control is bit-group oriented. Indicates the last bit of the group
to which the control is applied
Lock
PasswordLevel
Determines the authorization level required to be able to edit the field (see
chap. 5, Password configuration
page 213). This property is ignored if
the field is Read Only
TabIndex
ImageAutoSize
ImageHAlign
Indicates the type of horizontal alignment of the image within the Field,
which can be Center, Left or Right
ImageKeepAspect
Ratio
360
Chapter 6
Properties Editor
Description
ImageListId
ImageTransColor
ImageTransparent
ImageVAlign
TypeOfMovement
TagDirectMovement
TagX
TagY
Steps
Movement intervals
FinalX
Horizontal co-ordinate
FinalY
Vertical co-ordinate
Description
OnAbortInput
OnBeginInput
OnValueChange
Chapter 6
361
Properties Editor
DateTime field
A DateTime field can be introduced into a page by clicking on
the icon
or using the Main Menu (Fields->Create->Value
fields->DateTime field). After clicking on the icon, use the
mouse to indicate the area in the page where POLYMATH
should draw the Field.
The DateTime field serves to indicate to the operator the current date and/or time while a project is running. A variable can
be associated to the field, like Long or UnsignedLong (e.g. to
use the data set in the device) or the system variable
SYS_DateAndTime that shows the time of the operating system of the panel (see chap.Appendix A - System Variables
page 737). To express the day or the month in letters rather
than in numbers, the corresponding translations must be given in appropriate text lists (see chap. 5, Text list page 230).
The reader is advised to consult the following subsections to
learn about the details of the properties and events that can
be assigned to a DateTime field. In POLYMATH, the value of
the DateTime field is represented by the DateTime of the operating system of the machine the programmer is using
.
Description
Name
Comment
Top
Left
Width
Width dimension
Height
Height dimension
362
Chapter 6
Properties Editor
Description
AreaColor
AreaVisibility
Border3D
BorderBlink
BorderColor
Determines the color of the Border using the RGB code or color palette. The
value can be assigned to a whole variable or it can be managed with thresholds
BorderVisibility
BorderSize
BorderStyle
Chapter 6
363
Properties Editor
Description
FontField
KeyboardId
Enabling this option allows you to select the keyboard to use for editing
TagId
TextBlink
TextColor
TextHAlign
TextVAlign
Disable
Hide
Determines whether the object is initially visible. You can also assign a
Boolean variable (for Runtime changes) or it can be managed with thresholds
364
Chapter 6
Properties Editor
Description
Lock
PasswordLevel
Determines the authorization level required to be able to edit the field (see
chap. 5, Password configuration
page 213). This property is ignored if
the field is Read Only
TabIndex
DatePosition
Indicates the position of the Date within the field: this may be centered, leftward or rightward
DateRepresentation
TimePosition
Indicates the position of the Time within the field: this may be centered, leftward or rightward
TimeRepresentation
TypeOfDayOfWeek
Chapter 6
365
Properties Editor
Description
DayOfWeek
DayOfWeekPosition
Indicates the position of the text related to the Day (if desired) within the
field: this may be centered, leftward or
rightward
Month
TypeOfMovement
TagDirectMovement
TagX
TagY
Steps
Movement intervals
FinalX
Horizontal co-ordinate
FinalY
Vertical co-ordinate
Description
OnAbortInput
OnBeginInput
366
Chapter 6
Properties Editor
Description
OnValueChange
Bar Field
A Bar field can be introduced into a page by clicking on the
icon
or using the Main Menu (Fields->Create->Value
Fields->Bar field). After clicking on the icon, use the mouse to
indicate the area in the page where POLYMATH should draw
the Field.
The Bar field serves to give a graphic indication of the value
of a variable within a Scroll bar guided by a scale of values. If
the field is editable, the operator can change the value simply
by moving the pointer onto desired the Scale value.
The reader is advised to consult the following subsections to
learn about the details of the properties and events that can
be assigned to a Bar field.
Description
Name
Comment
Top
Left
Width
Width dimension
Height
Height dimension
AreaColor
Chapter 6
367
Properties Editor
Description
AreaVisibility
Border3D
BorderBlink
BorderColor
Determines the color of the Border using the RGB code or color palette. The
value can be assigned to a whole variable or it can be managed with thresholds
BorderVisibility
BorderSize
FontSize
ScaleNotches
368
Chapter 6
Properties Editor
Description
ScaleColorRanges
ScaleSectors
TagId
AlignBarColorToScale
Color
BarBackgroundColor
Direction
Disable
FillBarColorRanges
Hide
Determines whether the object is initially visible. You can also assign a
Boolean variable (for Runtime changes) or it can be managed with thresholds
Chapter 6
369
Properties Editor
Description
PasswordLevel
Determines the authorization level required to be able to edit the field (see
chap. 5, Password configuration
page 213). This property is ignored if
the field is Read Only
TabIndex
BarOrigin
Indicates from which value the Bar value count should start
ScaleValueColor
ScalePosition
TypeOfMovement
TagDirectMovement
TagX
TagY
Steps
Movement intervals
FinalX
Horizontal co-ordinate
FinalY
Vertical co-ordinate
370
Chapter 6
Properties Editor
Description
OnValueChange
Indicator
An Indicator can be introduced into a page by clicking on the
icon
or using the Main Menu (Fields->Create->Value
fields->Pointer). After clicking on the icon, use the mouse to
define the area in the page where POLYMATH should draw the
Indicator.
The Indicator gives a graphic representation of the value of a
variable within a given scale of values. Unlike the Bar, the Indicator cannot be edited and has a different graphic form.
The reader is advised to consult the following subsections to
learn about the details of the properties and events that can
be assigned to an Indicator.
Description
Name
Comment
Top
Left
Chapter 6
371
Properties Editor
Description
Width
Width dimension
Height
Height dimension
AreaColor
AreaVisibility
Border3D
BorderBlink
BorderColor
Determines the color of the Border using the RGB code or color palette. The
value can be assigned to a whole variable
BorderVisibility
BorderSize
BorderStyle
FontSize
372
Chapter 6
Properties Editor
Description
IndicatorColor
ScaleNotches
ScaleColorRanges
ScaleSectors
TagId
Hide
Determines whether the object is initially visible. You can also assign a
Boolean variable (for Runtime changes) or it can be managed with thresholds
Lock
StartAngle
SweepAngle
ScaleValueColor
Chapter 6
373
Properties Editor
Simple Controls
Properties
Description
TipColor
TypeOfMovement
TagDirectMovement
TagX
TagY
Steps
Movement intervals
FinalX
Horizontal co-ordinate
FinalY
Vertical co-ordinate
374
Chapter 6
Properties Editor
Description
Name
Comment
Top
Left
Width
Width dimension
Height
Height dimension
AreaColorPressed
AreaColorReleased
AreaVisibility
Chapter 6
375
Properties Editor
Description
BorderBlink
BorderColorPressed
BorderColorReleased
BorderVisibility
BorderSize
Button3D
Bitmap
Image
Caption
Indicates the type of inscription to display on the button: None, Label or Text
list
376
Chapter 6
Properties Editor
Description
Text
FontField
TextBlink
TextColor
TextHAlign
TextVAlign
Allows you to specify the vertical centering of the text within the Label. The
value can be assigned to a whole variable or it can be managed with thresholds
Disable
Hide
Determines whether the object is initially visible. You can also assign a
Boolean variable (for Runtime changes) or it can be managed with thresholds
Lock
Chapter 6
377
Properties Editor
Description
PasswordLevel
TabIndex
TextMaxLen
Determines the maximum value in relation to the length of the text string
TextMultiLine
TextTranslateDisable
TextListValue
Active if TextListType is value-oriented; it is necessary to indicate the values on which to apply the list strings.
By clicking on
you can access the
mask for associating values and text
list elements
TextListType
TextListId
TextTagId
TextListFirstBit
378
Chapter 6
Properties Editor
Description
TextListLastBit
ImageAutoSize
ImageKeepAspect
Ratio
ImageListValue
Active if ImageListType is value-oriented. Indicate the values corresponding to the Strings in the list. By clicking
on
you access the mask for associating values and text list elements
ImageListType
ImageListId
ImageTagId
ImageTransparent
ImageHAlign
ImageVAlign
Allows you to specify the vertical centering of the image within the button.
The value can be assigned to a whole
variable or it can be managed with
thresholds
Chapter 6
379
Properties Editor
Description
ImageListFirstBit
ImageListLastBit
TypeOfMovement
TagDirectMovement
TagX
TagY
Steps
Movement intervals
FinalX
Horizontal co-ordinate
FinalY
Vertical co-ordinate
Description
OnPressed
OnReleased
Touch Area
A touch-sensitive area can be introduced into a page by clicking on the icon
or using the Main Menu (Fields->Create>Simple controls->Touch area). After clicking on the icon, use
the mouse to indicate the area in the page where POLYMATH
should draw the item.
The Touch Area is useful when you want to assign an entire
screen area to a given function or user script (for example a
380
Chapter 6
Properties Editor
For further details regarding the script and predefined functions, the reader is advised to consult the relevant section of
this manual (see chap.Appendix B - Predefined functions
page 745 and see chap. 9, Scripts page 553).
The reader is advised to consult the following subsections to
learn about the details of the properties and events that can
be assigned to a Touch area.
Description
Name
Comment
Top
Left
Width
Width dimension
Height
Height dimension
Chapter 6
381
Properties Editor
Description
Disable
Lock
PasswordLevel
TabIndex
TypeOfMovement
TagDirectMovement
TagX
TagY
Steps
Movement intervals
FinalX
Horizontal co-ordinate
FinalY
Vertical co-ordinate
Description
OnPressed
382
Chapter 6
Properties Editor
Description
OnReleased
Chapter 6
383
Properties Editor
384
Chapter 6
Properties Editor
Description
Name
Comment
Top
Left
Width
Width dimension
Height
Height dimension
AreaColor
Determines the color of the Potentiometer, selectable using the RGB code or
color palette. The value can be assigned to a whole variable or it can be
managed with thresholds
AreaVisibility
Border3D
BorderBlink
Chapter 6
385
Properties Editor
Description
BorderColor
Determines the color of the Border using the RGB code or color palette. The
value can be assigned to a whole variable or it can be managed with thresholds
BorderVisibility
BorderSize
FontSize
IndicatorColor
Indicates the color of the precision indicator of the Potentiometer; this is selected using the RGB code or the color
palette
ScaleNotches
ScaleColorRanges
ScaleSectors
386
Chapter 6
Properties Editor
Description
TagId
CursorColor
Direction
Disable
Hide
Determines whether the object is initially visible. You can also assign a
Boolean variable (for Runtime changes) or it can be managed with thresholds
Lock
PasswordLevel
Determines the authorization level required to be able to edit the potentiometer value (see chap. 5, Password
configuration page 213). This property is ignored if the field is Read Only
TabIndex
ScaleValueColor
Chapter 6
387
Properties Editor
Description
ScalePosition
TypeOfMovement
TagDirectMovement
TagX
TagY
Steps
Movement intervals
FinalX
Horizontal co-ordinate
FinalY
Vertical co-ordinate
Description
OnValueChange
Activated when the value of the Potentiometer is changed using the touch
screen
Slide Selector
A Slide Selector can be introduced into a page by clicking on
the icon
or using the Main Menu (Fields->Create->Simple
controls->SlideSelector. After clicking on the icon, use the
mouse to indicate the area in the page where POLYMATH
should draw the Selector.
Slide Selectors are useful is useful for introducing a direct
check on a variable. There is a discrete representation of the
value of the reference variable and the operator can attribute
one of the available values by just clicking on the indicator
(slide control).
388
Chapter 6
Properties Editor
Note: It is advisable to use the SlideSelector (rather than a Potentiometer) if the number of choices that can be executed by the operator is restricted, giving a limited range of options.
Description
Name
Comment
Top
Left
Width
Width dimension
Height
Height dimension
AreaColor
Determines the color of the Potentiometer, which can be selected using the
RGB code or color palette. The value
can be assigned to a whole variable or
it can be managed with thresholds
AreaVisibility
Chapter 6
389
Properties Editor
Description
Border3D
BorderBlink
BorderColor
Determines the color of the Border using the RGB code or color palette. The
value can be assigned to a whole variable or it can be managed with thresholds
BorderVisibility
BorderSize
FontField
FontSize
IndicatorColor
Indicates the color of the precision Indicator of the Potentiometer. This can
be selected using the RGB code or the
color palette
TagId
390
Chapter 6
Properties Editor
Description
CursorColor
Direction
Disable
Hide
Determines whether the object is initially visible. You can also assign a
Boolean variable (for Runtime changes)
Lock
NumValues
PasswordLevel
TabIndex
ValueType
Chapter 6
391
Properties Editor
Description
TextListId
Active if the value type is Text List. Allows you to choose the text list associated with the values in question (see
chap. 5Text list page 230)
ScaleValueColor
ScalePosition
TypeOfMovement
TagDirectMovement
TagX
TagY
Steps
Movement intervals
FinalX
Horizontal co-ordinate
FinalY
Vertical co-ordinate
Description
OnValueChange
Activated when the value of the Selector is changed using the touch screen
392
Chapter 6
Properties Editor
Knob Potentiometer
A Knob Potentiometer can be introduced into a page by clicking on the icon
or using the Main Menu (Fields->Create>Simple controls->KnobPotentiometer). After clicking on the
icon, use the mouse to indicate the area in the page where
POLYMATH should draw the potentiometer.
Knob potentiometers are useful for introducing a direct control
on a variable. A continuous representation of the value of the
reference variable is given and the operator can attribute any
value simply by clicking on the knob indicator.
The reader is advised to consult the following subsections to
learn about the details of the properties and events that can
be assigned to a potentiometer.
Description
Name
Comment
Top
Left
Width
Width dimension
Height
Height dimension
AreaColor
Determines the color of the Potentiometer, selectable using the RGB code or
color palette. The value can be assigned to a whole variable
Chapter 6
393
Properties Editor
Description
AreaVisibility
Border3D
BorderBlink
BorderColor
Determines the color of the Border using the RGB code or color palette. The
value can be assigned to a whole variable
BorderVisibility
BorderSize
BorderStyle
FontSize
Establishes the Font size for representing the text of the scale
IndicatorColor
KnobColor
Determines the color of the Potentiometer knob, selectable using the RGB
code or color palette
394
Chapter 6
Properties Editor
Description
ScaleNotches
ScaleColorRanges
ScaleSectors
TagId
Disable
Hide
Determines whether the object is initially visible. You can also assign a
Boolean variable (for Runtime changes) or it can be managed with thresholds
Lock
PasswordLevel
StartAngle
Chapter 6
395
Properties Editor
Description
SweepAngle
TabIndex
ScaleValueColor
ScaleEnabled
TypeOfMovement
TagDirectMovement
TagX
TagY
Steps
Movement intervals
FinalX
Horizontal co-ordinate
FinalY
Vertical co-ordinate
Description
OnValueChange
Activated when the Potentiometer value is changed using the touch screen
396
Chapter 6
Properties Editor
Knob Selector
A Knob Selector can be introduced into a page by clicking on
the icon
or using the Main Menu (Fields->Create->Simple
controls->KnobSelector). After clicking on the icon, use the
mouse to indicate the area in the page where POLYMATH
should draw the selector.
Knob selectors are useful for introducing a direct control on a
given variable. A discrete representation of the value of the
reference variable is given and the operator can attribute one
of the values present simply by clicking on the knob.
The reader is advised to consult the following subsections to
learn about the details of the properties and events that can
be assigned to a Slide selector.
Note: It is advisable to use the Knob selector (rather than a potentiometer) if the number of choices the operator can make is to be restricted, giving a limited range of options.
Description
Name
Comment
Top
Left
Width
Width dimension
Height
Height dimension
Chapter 6
397
Properties Editor
Description
AreaColor
AreaVisibility
Border3D
BorderBlink
BorderColor
Determines the color of the Border using the RGB code or color palette. The
value can be assigned to a whole variable
BorderVisibility
BorderSize
BorderStyle
FontField
FontSize
398
Chapter 6
Properties Editor
Description
IndicatorColor
KnobColor
TagId
Disable
Hide
Determines whether the object is initially visible. You can also assign a
Boolean variable (for Runtime changes) or it can be managed with thresholds
Lock
NumValues
PasswordLevel
StartAngle
SweepAngle
Chapter 6
399
Properties Editor
Description
TabIndex
ValueType
TextListId
ScaleValueColor
TypeOfMovement
TagDirectMovement
TagX
TagY
Steps
Movement intervals
FinalX
Horizontal co-ordinate
FinalY
Vertical co-ordinate
Description
OnValueChange
400
Chapter 6
Properties Editor
Complex
Controls
Chapter 6
401
Properties Editor
Description
Name
Comment
Top
Left
Width
Width dimension
Height
Height dimension
AreaColorPressed
PressedAreaVisibility
AreaColorReleased
ReleasedArea
Visibility
Disable
402
Chapter 6
Properties Editor
Description
Hide
Determines whether the object is initially visible. You can also assign a
Boolean variable (for Runtime changes) or it can be managed with thresholds
Lock
PasswordLevel
TabIndex
TypeOfMovement
TagDirectMovement
TagX
TagY
Steps
Movement intervals
FinalX
Horizontal co-ordinate
FinalY
Vertical co-ordinate
Description
OnPressed
Chapter 6
403
Properties Editor
Description
OnReleased
404
Chapter 6
Properties Editor
Description
Name
Identifying name of the Bistable button. Must be unique among the graphic
elements
Comment
Top
Left
Width
Width dimension
Height
Height dimension
OffStateAreaColor
OffStateAreaVisibility
OnStateAreaColor
OnStateAreaVisibility
Chapter 6
405
Properties Editor
Description
TagId
ValueStateOff
ValueStateOn
Disable
Hide
Determines whether the object is initially visible. You can also assign a
Boolean variable (for Runtime changes) or it can be managed with thresholds
Lock
PasswordLevel
TabIndex
TypeOfMovement
TagDirectMovement
406
Chapter 6
Properties Editor
Description
TagX
TagY
Steps
Movement intervals
FinalX
Horizontal co-ordinate
FinalY
Vertical co-ordinate
Properties
OnSwitchButtonOff
OnSwitchButtonOn
Chapter 6
407
Properties Editor
Description
Name
Comment
Top
Left
FrameId
Lock
TabIndex
Trend View
A Trend View can be introduced into a page by clicking on the
icon
or using the Main Menu (Fields->Create->Complex
controls->TrendView). After clicking on the icon, use the
mouse to indicate the area in the page where POLYMATH
should draw the TrendView.
408
Chapter 6
Properties Editor
A Trend View is the field inside which you can see the contents
of the Trend Buffer, whose working was described in the preceding section (see chap. 5, page 220).
The reader is advised to consult the following subsections to
learn about the details of the properties and events that can
be assigned to a TrendView and how it is edit.
Properties of a TrendView
Table 54: Properties of a TrendView
Properties
Description
Name
Comment
Top
Left
Width
Width dimension
Height
Height dimension
AreaColor
Chapter 6
409
Properties Editor
Description
AreaVisibility
Border3D
BorderBlink
BorderColor
Determines the color of the Border using the RGB code or color palette. The
value can be assigned to a whole variable or it can be managed with thresholds
BorderVisibility
BorderSize
BorderStyle
Hide
Determines whether the object is initially visible. You can also assign a
Boolean variable (for Runtime changes) or it can be managed with thresholds
Lock
410
Chapter 6
Properties Editor
Editing a TrendView
After inserting a TrendView into a page, just double-click on it
to edit. The default object is a Trend Graph (see chap. 6,
Properties of a Trend Graph page 412) that can be accompanied, if the programmer wishes, by a series of control buttons for displaying the Trend. Editing is organized through two
masks, Fields and General.
Chapter 6
411
Properties Editor
Move Down: the button makes the graph move downwards by a unit defined by the major vertical division of
the grid.
Principal: the button makes the graph move from right
to left until the oldest sample readings are positioned on
the left side of the graph.
End: the button makes the graph move from right to left
until the most recent sample readings are positioned on
the right side of the graph.
GoTo: the button makes a dialog window appear to ask
the user at what date and time the right side of the
graph should be put.
IncreaseVerticalEnlargement: increases the vertical
scale factor
ReduceVerticalEnlargement: decreases the vertical
scale factor
IncreaseHorizontalEnlargement: increases the horizontal scale factor
ReduceHorizontalEnlargement: decreases the horizontal scale factor
"Zoom": Increases the total graphic display
"Reduction": Decreases the total graphic display
Reset Enlargement: restores the original scale factors
(no zoom)
"User Button": Button to which the user can assign a
function/script.
"HorizontalCursorPosition": it represents the sample acquisition time (when it identifies at least one sample on
the graphics)
"Selected Pendrive Value": field that indicates the pendrive currently selected
ShowScalePen: Determines the scale pen to be shown
via a pull-down menu
There are also two bistable buttons, a Date-Time Field and a
Numerical Field that can be edited as already described in this
chapter (see chap. 6, Bistable button page 403, see chap. 6,
DateTime field page 361 and see chap. 6, Numerical Field
page 342) each having its own function:
CursorEnabled: allows the graphic cursor to be displayed or not
Pause: shows whether or not the update of the graph is
enabled (does not disable the acquisition of samples).
HorizontalCursorPosition: represents the time of the acquisition of the sample (when it identifies at least one
sample on the graph)
Pen Selected: field indicating that the Pen is currently
selected.
412
Chapter 6
Properties Editor
The General mask can be used to insert a name and an identifying comment for the TrendView being edited. In addition,
you can overwrite the default dimensions of the editing grid of
the page (see chap. 5, Main window page 129) introducing
new measures in pixels valid only for editing the current field.
Properties of a Trend Graph
Table 55: Properties of a Trend Graph
Properties
Description
Name
Comment
Top
Left
Width
Height
AreaColor
Chapter 6
413
Properties Editor
Description
Border3D
BorderBlink
BorderColor
Determines the color of the Border using the RGB code or color palette. The
value can be assigned to a whole variable or it can be managed with thresholds
BorderVisibility
BorderSize
BorderStyle
Lock
Pens
RefreshTime
ScrollType
TabIndex
414
Chapter 6
Properties Editor
Description
TimeSpan
UpdateMode
ChartAreaColor
ChartAreaTop
ChartAreaLeft
ChartAreaWidth
ChartAreaHeight
ChartBorderColor
ChartBorderSize
GridHorDivisionColor
GridHorDivision
Number
GridHorDivisionStyle
GridHorMinDivision
Color
GridHorMinDivision
Number
Chapter 6
415
Properties Editor
Description
GridHorMinDivision
Style
GridHorVisible
GridVerDivisionColor
GridVerDivision
Number
GridVerDivisionStyle
GridVerMinDivision
Color
GridVerMinDivision
Number
Indicates the number of vertical subdivisions in the grid, that is, the number
of horizontal lines between any two divisions
GridVerMinDivision
Style
GridVerVisible
HorScaleLabelColor
HorScaleLabelFont
HorScaleLabelSkip
HorScaleMinNotches
Len
416
Chapter 6
Properties Editor
Description
HorScaleMode
HorScaleNotchesLen
HorScaleTimeFormat
HorScaleDateFormat
HorScaleVisible
VerScaleLabel
Decimal
VerScaleLabelFont
VerScaleLabelSkip
VerScaleMinNotches
Len
VerScaleNotchesLen
VerScaleVisible
VerScaleVisible
Number
Chapter 6
417
Properties Editor
418
Chapter 6
Properties Editor
Chapter 6
419
Properties Editor
This mask lets you assign a color to each of the value intervals
set out in the Interval mask. A color is applied when its value
read by the Buffer memory is within the corresponding interval.
TrendXY
A "TrendXY" can be inserted inside of the page clicking on the
icon
or from the "Main Menu" (Fields->Create->Controls
Complexes->TrendXY). After having clicked the icon, indicate
the area in which POLYMATH must designate the "TrendXY"
using the mouse inside of the page.
The "TrendXY" is the field inside of which the content of the
TrendBufferXY is displayed, the functioning of which was described in the previous paragraph.
Consult the next sub-paragraphs to know the details of the
properties that can be associated to a VistaTrendXY and its
editing modes.
Description
Name
Comment
Top
Left
Width
Width dimension
Height
Height dimension
420
Chapter 6
Properties Editor
Description
AreaColor
AreaVisibility
Border3D
BorderStyle
BorderColor
Determines the color of the Border using the RGB code or color palette. The
value can be assigned to a whole variable or it can be managed with thresholds
BorderVisibility
BorderSize
BorderBlink
Chapter 6
421
Properties Editor
Description
Hide
Determines whether the object is initially visible. You can also assign a
Boolean variable (for Runtime changes) or it can be managed with thresholds
Lock
422
Chapter 6
Properties Editor
Chapter 6
423
Properties Editor
As already described in this chapter, a further customised label can be inserted on the complex field (see chap. 6, Complex label page 319) or go and insert a dynamic field which
shows the Trend value on the pen (see chap. 6, Trend Pen
page 319).
424
Chapter 6
Properties Editor
Description
Top
Left
Width
Height
AreaColor
AreaVisibility
BorderVisibility
BorderSize
BorderColor
Determines the color of the Border using the RGB code or color palette. The
value can be assigned to a whole variable or it can be managed with thresholds
BorderStyle
Border3D
Chapter 6
425
Properties Editor
Description
BorderBlink
UpdateMode
RefreshTime
HorScaleVisible
HorScaleMode
HorScaleDateFormat
HorScaleTimeFormat
HorScaleLabelFont
HorScaleLabelColor
HorScaleLabelSkip
VerScaleVisible
VerScaleVisible
Number
VerScaleLabel
Decimal
426
Chapter 6
Properties Editor
Description
ScrollType
TimeSpan
GridHorVisible
GridHorDivision
Number
GridHorMinDivision
Number
GridHorDivisionStyle
GridHorMinDivision
Style
GridHorDivisionColor
GridHorMinDivision
Color
GridVerVisible
GridVerDivision
Number
GridVerMinDivision
Number
Indicates the number of vertical subdivisions in the grid, that is, the number
of horizontal lines between any two divisions
Chapter 6
427
Properties Editor
Description
GridVerDivisionStyle
GridVerMinDivision
Style
GridVerDivisionColor
GridVerMinDivision
Color
Pens
The displayed pens editing window is made up of three sections. On the left, there is a list of pens created by the user
from which to create and eliminate elements. At the bottom
428
Chapter 6
Properties Editor
Chapter 6
429
Properties Editor
Intervals
430
Chapter 6
Properties Editor
Once the table has been inserted into the page and been selected, a series of properties contained in the Properties Editor
can be attributed to it; the meanings of these properties are
identical to those of TrendView properties (see chap. 6, Properties of a TrendView page 408).
By double-clicking on the table, you access its editing page
which comprises two masks: Fields and General.
The default contents of the Fields mask include the Alarm Grid
table, whose properties will be dealt with in the next subsections (see chap. 6, Properties of the Active Alarm Grid
page 432). Using this mask you can proceed to indicate which
buttons should be present with the table and position them
within the area. To insert or remove a button just click on the
list of buttons to the left of the table; if an object is already
present in the page, it will appear highlighted within the list
(and will be visible in the Table Edit Area). To move an element (button or table) just drag it to the desired position. The
buttons that can be inserted are different and each has a predefined (non editable) function assigned to it:
Page Up: allows the operator to go up the pages of the
table
Page Down: allows the operator to go down the pages
of the table
Chapter 6
431
Properties Editor
432
Chapter 6
Properties Editor
The General mask can be used to insert a name and an identifying comment for the Alarm table being edited. In addition,
you can overwrite the default dimensions of the editing grid of
the page (see chap. 5, Main window page 129) introducing
new measures in pixels valid only for editing the current field
The graphic properties (fonts and colors) of the Active Alarm
View grid can be configured by using together the Fields and
the Priorities mask of the Alarms (see chap. 5, Fields
page 171 and see chap. 5, Priorities page 189).
Properties of the Active Alarm Grid
Table 58: Properties of the Active Alarm Grid
Properties
Description
Top
Left
Width
Height
Columns
This field allows the operator to determine which columns to put in the table
and define their respective properties.
To edit the columns click on the icon
. In the window which appears enter
the details relating to their width, to
the font and to the dimension and format of the titles of each column in the
table.
Chapter 6
433
Properties Editor
Description
RowHeight
Lock
TabIndex
AutoScrollEnabled
AutoScrollInterval
Filters
HScrollBarVisible
LetterHeadVisibility
RibbonVisibility
TimeStampOrder
VScrollBarVisible
434
Chapter 6
Properties Editor
Once the table has been inserted into the page and been selected, a series of properties can be attributed using the Properties Editor; the meanings of these properties are identical to
those of the properties in TrendView (see chap. 6, Properties
of a TrendView page 408).
By double-clicking on the table itself you access its editing
page which comprises two masks: Fields and General.
The default contents of the Fields mask include the Alarm Grid
table, whose properties will be dealt with in the next subsections (see chap. 6, Properties of the Active Alarm Grid
page 432). Using this mask you can proceed to indicate which
buttons should be present with the table and position them
within the area. To insert or remove a button just click on the
Chapter 6
435
Properties Editor
The General mask can be used to insert a name and an identifying comment for the Alarm History table being edited. In
addition, you can overwrite the default dimensions of the editing grid of the page (see chap. 5, Main window page 129)
introducing new measures in pixels valid only for editing the
current field.
The graphic properties (fonts and colors) of the Active Alarm
View grid can be configured using together the Fields and Pri-
436
Chapter 6
Properties Editor
orities masks of the Alarm (see chap. 5, Fields page 171 and
see chap. 5, Priorities page 189).
Properties of the Alarm History Grid
The properties of the Alarm History Grid coincide with those of
the Active Alarm Grid (see chap. 6, Properties of the Active
Alarm Grid page 432).
User List Table
The User List table (see chap. 5, Password configuration
page 213) is a predefined element in POLYMATH, one that can
be inserted into the project pages. It allows the operator to
access the user list (respecting the limits of its level of protection) and perform the principal operations with a simple click.
To insert a User List table into a page, click on the icon
or,
alternatively, use the main menu: Fields->Create->Complex
Controls->User list.
After clicking draw just the outline of the table and it will appear automatically.
Once the table has been inserted into the page and been selected, a series of properties contained in the Properties Editor
can be attributed to it; the meanings of these properties are
identical to those of the properties in TrendView (see chap. 6,
Properties of a TrendView page 408).
Chapter 6
437
Properties Editor
The default contents of the Fields mask include the Alarm Grid
table, whose properties will be dealt with in the next subsections (see chap. 6, Properties of the Active Alarm Grid
page 432). Using this mask you can proceed to indicate which
buttons should be present with the table and position them
within the area. To insert or remove a button just click on the
list of buttons to the left of the table; if an object is already
present in the page, it will appear highlighted within the list
(and will be visible in the Table Edit Area). To move an element (button or table) just drag it to the desired position. The
buttons that can be inserted are different and each has a predefined (non editable) function assigned to it:
Add User: allows the operator to add a new user
Delete User: allows the operator to remove the user selected
Change Password: allows the operator to change the
password relating to the user selected
The General mask can be used to insert a name and an identifying comment for the User table being edited. In addition,
you can overwrite the default dimensions of the editing grid of
438
Chapter 6
Properties Editor
Note: After inserting a new user in Runtime, you will have to change
his/her password by selecting the corresponding row in the table
and then by clicking on Change Password. Just insert the new
password in the ensuing mask, leaving blank the field relating to the
old password (since the new user does not possess any assigned
password).
Description
Top
Left
Width
Height
Dimension of height
Columns
RowHeight
Lock
TabIndex
HScrollBarVisible
VScrollBarVisible
Chapter 6
439
Properties Editor
Once the table has been inserted into the page and been selected, a series of properties contained in the Properties Editor
can be attributed to it; the meanings of these properties are
identical to those occurring in TrendView (see chap. 6, Properties of a TrendView page 408).
By double-clicking on the table, you access its editing page
which comprises two masks: Fields and General.
The default contents of the Fields mask include the Alarm Grid
table, whose properties will be dealt with in the next subsec-
440
Chapter 6
Properties Editor
The General mask can be used to insert a name and an identifying comment for the Recipe table being edited. In addition,
you can overwrite the default dimensions of the editing grid of
the page (see chap. 5, Main window page 129) introducing
new measures in pixels valid only for editing the current field.
The graphic properties (fonts and colors) of the Recipe list can
be configured using the Fields mask of the Recipes element
(see chap. 5, Fields page 171).
Chapter 6
441
Properties Editor
Description
Top
Left
Width
Height
Columns
This field allows the operator to determine which columns to put in the table
and define their respective properties.
To edit the columns click on the icon
. In the window which appears enter
the details relating to their width, to
the font and to the dimension and format of the titles of each column in the
table
RowHeight
Lock
TabIndex
HScrollBarVisible
LetterHeadVisiblity
OrderMode
VScrollBarVisible
442
Chapter 6
Properties Editor
Once the table has been inserted into the page and been selected, a series of properties contained in the Properties Editor
can be attributed to it; the meanings of these properties are
identical to those of TrendView (see chap. 6, Properties of a
TrendView page 408).
By double-clicking on the table, you access its editing page
which comprises two masks: Fields and General.
The default contents of the Fields mask include the Alarm Grid
table, whose properties will be dealt with in the next subsections (see chap. 6, Properties of the Active Alarm Grid
page 432). Using this mask you can proceed to indicate which
buttons should be present with the table and position them
within the area. To insert or remove a button just click on the
list of buttons to the left of the table; if an object is already
present in the page, it will appear highlighted within the list
(and will be visible in the Table Edit Area). To move an element (button or table) just drag it to the desired position. The
Chapter 6
443
Properties Editor
buttons that can be inserted are different and each has a predefined (non editable) function assigned to it:
Save: saves the Recipe in the terminal memory (if necessary, overwriting the one being edited)
Save as: saves the Recipe open in any case the insertion window of the name
Load: loads the Recipe selected into the video buffer
Delete Buffer: empty the buffer
Transfer to Buffer (upload): transfers the Recipe from
the device to the video buffer
Transfer from Buffer (download): transfers the data of
the Recipe present from the video buffer to the device
In addition, dynamic fields can be inserted which contain a
Recipe list and the name of the uploaded Recipe which has
same properties as the Label objects (see chap. 6, Label
page 316) that can be edited using the Properties Editor.
The General mask can be used to insert a name and an identifying comment for the Recipe table being edited. In addition,
you can overwrite the default dimensions of the editing grid of
the page (see chap. 5, Main window page 129) introducing
new measures in pixels valid only for editing the current field.
The graphic properties (fonts and colors) of the Recipe list can
be configured using the Fields mask of the Recipes element
(see chap. 5, Fields page 171).
Operations for transferring Recipes
The following summary gives an overview of all the operations
that can be performed on transfers of Recipes using VTs and
devices. It is important to note that transfer operations see
the interaction of 3 elements: the physical memory of the VT
(where the Recipes are saved), the VT video buffer (containing the data of just one Recipe, the one being displayed on the
444
Chapter 6
Properties Editor
panel) and the device (in whose memory the Recipe data really resides).
When you decide to manage the transfer of Recipes in synchronized mode constitutes a special case.
In this case, before transferring the data the terminal asks for
the status of the device, waiting for an authorization. The synchronization procedure happens by means of the write/read of
certain exchange areas (see chap.Appendix C - Status area
page 761 and see chap.Appendix D - Command area
page 765).
A synchronized transfer is defined at the moment the function
is attributed (or the script instruction, see chap. 9, Scripts
page 553)
Let us give a practical example. Supposing we are performing
a synchronized download and are using a Recipe type in noncompatible mode (see chap. 5, Modes of compatibility
page 209), then, at the request for a transfer of data, the devices will behave as follows:
the VT will send the data transfer request to the PLC
(WORD0.BIT1 of the Status Area)
the PLC responds, enabling the transfer using bit 4 of
WORD0 of the Command Area
At this point, the data transfer will begin (WORD0.BIT0
of the Status Area)
At the end of the transfer, the VT will signal to the PLC
(WORD0.BIT3 of the Status Area) that the download
has terminated
the PLC will respond confirming the reception
(WORD0.BIT0 of the Command Area)
If during the data transfer the handshake times are not respected, the VT puts at 1 in the Status Area the Error In Transferring bit (bit 14 = download, bit 15 = upload).
Chapter 6
445
Properties Editor
Chronothermostat
A "Chronothermostat" can be inserted inside of the page by
clicking on the
icon or from the "Main Menu" (Fields->Create->Complex Controls->Chronothermostat). After having
clicked the icon, indicate the area in which POLYMATH must
designate the "Chronothermostat" using the mouse inside of
the page.
A "Chronothermostat" represents a Polymath object that allows to detect a temperature and edit the behaviour of the system in "Manual" or "Automatic" mode at will. Scheduling
allows to program the temperature trend weekly.
The "Chronothermostat" is the field inside of which the content of the TaskSettimanali (WeeklyTasks) is displayed, the
functioning of which was described in the last previous paragraph (see chapter 7 "TaskSettimanali" on page
Consult the next sub-paragraphs to know the details of the
properties that can be associated to a "Chronothermostat"
and its editing modes.
Description
Name
Comment
Top
Left
Width
Width dimension
446
Chapter 6
Properties Editor
Description
Height
Height dimension
AreaColor
AreaVisibility
Border3D
BorderStyle
BorderColor
Determines the Border colour by means of the RGB code or the colour palette. The value can be associated to a
whole variable or it can be managed
with thresholds
BorderVisibility
BorderSize
BorderBlink
Chapter 6
447
Properties Editor
Description
Hide
Lock
448
Chapter 6
Properties Editor
General
An identification name and comment for the "Chronothermostat" that is being edited can be inserted on the "General"
mask. Moreover, it is possible to overwrite the default dimensions of the page editing grid introducing new measurements
in pixel valid only for editing the current field.
Chapter 6
449
Properties Editor
Description
Name
Comment
Top
Left
Width
Width dimension
Height
Height dimension
AreaColor
Border3D
BorderColor
Determines the Border colour by means of the RGB code or the colour palette. The value can be associated to a
whole variable or it can be managed
with thresholds
BorderVisibility
BorderSize
BorderBlink
450
Chapter 6
Properties Editor
Description
WeeklyType
GridLineVisible
GridLineColor
GridUnusedCellColor
OffLabel
WeekTask
GrdiColors
Lock
TabIndex
BackgrImageEnabled
BackgroundImageID
HorScaleVisible
HorScaleLabelFont
Determines the Font to use for the labels of the horizontal scale
Chapter 6
451
Properties Editor
Description
HorScaleLabelColor
VerScaleVisible
VerScaleLabelFont
Determines the Font to use for the labels of the vertical scale
VerScaleLabelColor
Scheduler View
"Scheduler View" is the "Scheduler" function graphical representation inside of the page (see chap. 5, Schedulers
page 259).
A Scheduler View can be inserted inside of a page by clicking
on the icon
or from the Main Menu (Fields->Create>Controls Complexes->Scheduler View). After having clicked
the icon, indicate the area in which POLYMATH must draw the
new Scheduler View inside of the page using the mouse :
452
Chapter 6
Properties Editor
After having inserted "Scheduler", the "Vista Scheduler" image automatically becomes the following :
Chapter 6
453
Properties Editor
Description
Name
Comment
Top
Left
Width
Width dimension
Height
Height dimension
AreaColor
AreaVisibility
Border3D
BorderBlink
BorderColor
454
Chapter 6
Properties Editor
Description
BorderVisibility
BorderSize
BorderStyle
Hide
Determines whether the object is initially visible. It is also possible to assign a Boolean variable (for changes in
Runtime) or it can be managed with
thresholds
Lock
Scheduler
Chapter 6
455
Properties Editor
General
456
Chapter 6
Properties Editor
Description
Name
Comment
Top
Left
Width
Width dimension
Height
Height dimension
Chapter 6
457
Properties Editor
Description
AreaColor
AreaVisibility
Border3D
BorderBlink
BorderColor
BorderVisibility
BorderSize
BorderStyle
458
Chapter 6
Properties Editor
Description
Hide
Determines whether the object is initially visible. It is also possible to assign a Boolean variable (for changes in
Runtime) or it can be managed with
thresholds
Lock
Description
Top
Left
Width
Width dimension
Height
Height dimension
AreaColor
Border3D
BorderBlink
BorderColor
Determines the Border colour by means of the RGB code or the colour palette. The value can be associated to a
whole variable or it can be managed
with thresholds
Chapter 6
459
Properties Editor
Description
BorderVisibility
BorderSize
FontGridCell
FontHeaders
TextColorDisableCell
TextColorEnableCell
TextColorSelectedCell
TextColorWeek
TextColorWeekend
Hide
Lock
TabIndex
460
Chapter 6
Properties Editor
Description
ImageSelectedCell
ImageUnselectedCell
ImageCurrentCell
ImageDisableCell
Allows assigning an image to not enabled cell (or cells) (days not included in
current month)
HolidayGroup
DayOfWeek
From the "Fields" mask it is possible to edit grid keys characteristics. Each button has its relative properties which can
be edited in Editor Properties as for normal touch buttons
(see chap. 6, Touch Button page 373). To insert the "Save"
button simply click on it, while dragging it to the desired po-
Chapter 6
461
Properties Editor
462
Chapter 6
Properties Editor
General
A movement property can be associated to every object present in the creation of the POLYMATH project.
This is used to determine the behaviour of this object associated to a "Tag".
The commands useful for introduction of a movement are present in the object "Editor Propriet" (Properties Editor) :
Table 66: Movement properties of the objects
Properties
Description
TypeOfMovement
TagDirectMovement
TagX
TagY
Steps
Movement intervals
FinalX
Horizontal co-ordinate
FinalY
Vertical co-ordinate
Chapter 6
463
Properties Editor
464
Chapter 6
Properties Editor
Vertical Movement
The image follows the established horizontal and vertical movements (X and Y Tags).
Operations on
graphic
elements
For all the graphic elements described in this chapter it is possible to perform a series of useful operations aimed at further
improving the graphic presentation of the project.
In this section we will give a complete description of practical
examples relating to standard operations, like grouping, alignment and distribution.
Chapter 6
465
Properties Editor
466
Chapter 6
Properties Editor
at this point release the button and both elements will be selected,
Chapter 6
467
Properties Editor
To understand the way the four options work let us take the
example given in the previous section, but adding to the polygon and the touch button a third element, a Sector.
We will apply the Level commands to the touch button, then
select it (click on
and then on the button). Now by clicking
on
(Layout->Level->Move to First Level) the button is
brought to the top level above all the other objects.
468
Chapter 6
Properties Editor
Naturally, with each click of this icon, the object selected appears at a different level.
Similarly, by clicking on the icon
(Layout->Level->Down)
the button is moved down by one level, that is, it drops only
below the object that was immediately below it at that moment (in our example, the polygon).
Chapter 6
469
Properties Editor
Alignment of objects
When there are two or more objects in a page the operator
can use the tools supplied by POLYMATH to obtain their automatic alignment; these tools can be accessed directly via the
Main menu (Layout->Align) or via the respective icons of the
toolbar, as described below.
To describe the various behaviors of the Alignment function,
we will use the same example we utilized in the last subsection: three elements in a page, namely a touch button, a polygon and a Sector.
First of all we enable the icon relating to alignment by clicking
on the icon
, then we draw in the page a selection area big
enough to contain the outlines of both objects. See figure:
470
Chapter 6
Properties Editor
There are six icons in the Alignment Menu, each of which behaves differently, as shown below:
By clicking on
(Layout->Align->Top), the top edges of all
the figures selected are aligned with one another at the level
of the top edge of the highest positioned object (in our example, the button). See figure:
By clicking on
(Layout->Align->Bottom) the lowest edges
of all the figures selected are aligned with one another at the
level of the bottom edge of the lowest positioned object (in our
example, the button). See figure:
Chapter 6
471
Properties Editor
By clicking on
(Layout->Align->Mid-point) the (vertical)
mid-points of all the figures selected are aligned with one another at the level of the (vertical) mid-point of the lowest positioned object (in our example, the button). See figure:
By clicking on
(Layout->Align->Left) the left edges all the
figures selected are aligned with one another at the level of
the left edge of the leftmost object (in our example, the button). See figure:
By clicking on
(Layout->Align->Center) the (horizontal)
mid-points of all the figures selected are aligned with one an-
472
Chapter 6
Properties Editor
By clicking on
(Layout->Align->Right) the right edges all
the figures selected are aligned with one another at the level
of the right edge of the rightmost object (in our example, the
button). See figure
Arrangement of objects
When there are at least three objects in a page the operator
can use the tools supplied by POLYMATH to obtain their automatic arrangement; these tools can be accessed directly via
the Main menu (Layout->Arrange) or via the respective icons
of the toolbar, as described below.
Objects are arranged within a page by taking as a point of reference the distance between the first two objects in the page.
(For vertical arrangements, the reference is the distance between the first two objects encountered scrolling the page
from top to bottom; for horizontal arrangements, the reference is the distance between the first two objects encountered
scrolling the page from left to right).
Chapter 6
473
Properties Editor
474
Chapter 6
Properties Editor
Chapter 6
475
Properties Editor
ways equal to the distance between the left sides of the first
two objects (reference objects calculated according to their
order when scrolling the page from the left). If the reference
distance is less than zero, POLYMATH takes it automatically to
0, thereby aligning to the right.
In our example, the result obtained will be the one represented in the next figure:
Vertical arrangement
Using our example, let us add three different colored buttons
to the page as indicated in the next figure:
476
Chapter 6
Properties Editor
Chapter 6
477
Properties Editor
478
Chapter 6
Properties Editor
POLYMATH will arrange all the objects selected such that the
distance between the lowest sides of consecutive objects is always equal to the distance between the lowest sides of the
first two objects (reference objects calculated according to
their order when scrolling the page from the top).
If the reference distance is less than zero, POLYMATH takes it
automatically to 0 (thus making the alignment at the bottom).
In our example, the result obtained will be the one represented in the next figure:
Chapter 7
479
7.
POLYMATH has a structure saving tool that also functions outside the context of the project being edited: the Library.
This too is useful as it makes it possible to store, save and reuse portions of a project; each individual element or set of elements - indeed, even a whole project - can be put in a library
to be easily re-usable in new projects. A classic example of
the use of the Library is when you want to maintain a uniform
style in different projects without having to redefine them
each time. For example, you need simply create a frame with
the colors, the size and the style required and save it in a Library to conserve it and make it available to be inserted in all
the other projects.
With POLYMATH an unlimited number of libraries can be managed. The libraries are managed using the Explorer Library
window which is an anchorable window and thus can be customized at will (see chap.3, Anchorable windows page 84).
This chapter describes POLYMATH's standard libraries and
how to insert objects of the various categories of library in a
page of the project.
Library Explorer
Library Explorer is the window that shows the contents of the
libraries being worked on and allows them to be managed.
480
Chapter 7
Other anchorable windows
Chapter 7
481
Buttons
Swicthes
Lights
Pipes and Valves
Tanks
Motors
Machinery
Images List
Images
Flags and Icons
Various
Keyboards
User Objects
Temporary Objects
482
Chapter 7
Other anchorable windows
Chapter 7
483
484
Chapter 7
Other anchorable windows
This window appears. You can define all the parameters of the
variables associated with the object :
Chapter 7
485
Takes you back to the previous page where you can edit the
properties of the object.
In the same way, it's possible to import a button on the page,
choosing among the several ones available in the library, editing its properties from the popup windows after double-clicking on the object. For example, let's import the button
Access 2 :
After double-clicking on it, the following window appears allowing to configure all the parameters of the "Released" button :
486
Chapter 7
Other anchorable windows
In the released page it is possible to change both the features of the released button: :
Area Colour
Area Visibility
Chapter 7
487
The following window will appear, where it's possible to configure all the "Pressed button parameters :
The following window will appear, where it's possible to configure all the "General button parameters :
488
Chapter 7
Other anchorable windows
The following window will appear, where it's possible to configure all the "functioning button parameters :
The following window will appear, where it's possible to configure all the "Events button parameters :
EXTENDED mode
Select the object with a single click of the mouse. The "Properties Editor" window appears to the right of the POLYMATH
Chapter 7
489
where you can define all the parameters of the variables associated with the object :
490
Chapter 7
Other anchorable windows
Libraries management
To manage libraries click on the appropriate "Libraries management" icon in "Libraries explorer" :
Selecting the "Visible" column boxes makes it possible to determine which libraries need to be visible in "Libraries Explorer".
Chapter 7
491
Delete
Export
Up
Down
Update source
Update local
Tools
Delete :
If you want to delete a library, click on the corresponding
"check box" to select it, then click on the "Delete" key :
492
Chapter 7
Other anchorable windows
Export :
By clicking on "Export" it will be possible, by choosing the destination path, to export the selected libraries (for example in
a folder shared on the network) :
Chapter 7
493
The same utility is also found in case the library saved in the
network, therefore accessible by other users, is different from
the one in the processing phase project, therefore by clicking
on the "Local Update" key the project library will be updated
to the present library in the network :
Up :
Using "Up" the user will be able to move the selected field up
after going to the "Library Management" column.
Down :
Using "Down" the user will be able to move the selected field
down after going to the "Library Management" column.
494
Chapter 7
Other anchorable windows
Create library
Import
Update system libraries
Check shared libraries
Chapter 7
495
496
Chapter 7
Other anchorable windows
Right clicking makes it possible to perform the following operations on the just created folder :
Rename
Change icon
Delete
Chapter 7
497
Saving objects
It is possible to save edited objects in the USER OBJECTS folder in the same Library.
Objects saved in the USER OBJECTS folder can also be used
for other projects.
There is a folder in the Library Explore called TEMPORARY
OBJECTS where saved objects are only available for the current project.
Open the USER Objects folder :
Select the object you wish to save, press CTRL+Shift and drag
it into the "USER OBJECTS" library
498
Chapter 7
Other anchorable windows
Chapter 7
499
Errors Viewer
"Error Viewer" is an anchorable window (see , " Le Finestre ancorabili" (Anchorable Windows on page 47" chapter) that supplies information regarding the errors present in the project.
The "Error Viewer" window lists, in real time, any errors associated with the project you are editing and validating; errors
are highlighted in red. Double-clicking the description of a
problem focuses the application on the source of the error,
opening a window ("Properties Editor", window in the work
area, etc.) where you can make the necessary corrections. Errors disappear as soon as they are corrected in the associated
area.
500
Chapter 7
Other anchorable windows
Warning
Viewer
"Compiler Output" is an anchorable window where the log information relative to the last compilation (if already carried
out during the actual session) of the project currently being
edited is reported. During the compilation phase, the log in
this window is updated in real time, showing the object and
the compiled file on which it is working. The errors and warnings are signalled as in the "Error Viewer" mask and a double
click on them causes movement of the focus onto the area of
application from where it is possible to solve the problem.
Chapter 7
501
502
Chapter 7
Other anchorable windows
Chapter 8
503
8.
504
Chapter 8
Compiling, Downloading and
Runtime
errors appear in red while the warnings appear in orange. If
we double-click on the description of the problem, POLYMATH
will focus the application on the origin of the error, that is, on
the mask (Properties Editor, work area mask, etc.) where a
correction can be made. As soon as they are corrected in the
appropriate area, the errors disappear.
Compilation
Compilation is the operation whereby a project created with
POLYMATH is transformed into files ready to be sent to the
panel to be then interpreted by the VTs firmware.
To start off the compilation of a project click on the
icon in
the Toolbar (or use the main menu File->Compile). Any errors
or warnings detected in the process of compilation are
signalled in the Errors Viewer window (see chap. 7, Errors
Viewer page 499). Errors appear in red while Warnings
appear in orange.
Chapter 8
505
Menu Path
Function
Imports .csv files of following
elements:
Watch list
list of variables
selected by check
mark
Tag values
value of variables
Simulations
type of simulation
associated with single
variables
Watch list
list of variables
selected by check
mark
Tag values
value of variables
Simulations
type of simulation
associated with single
Prints
506
Chapter 8
Compiling, Downloading and
Runtime
Tags
Menu path
Function description
Tags ->Show
watch list
Simulation
Simulation ->
Pause
Simulation ->
Remove
simulation
Simulation ->
Enable simulation
Simulation ->
Disable simulation
Chapter 8
507
Simulation ->
Remove all
simulation
Simulation ->
Enable all
simulation
Simulation ->
Disable all
simulation
508
Chapter 8
Compiling, Downloading and
Runtime
From the simulator it is possible to change the values contained in the different columns shown by double clicking on the
desired column (for example the format of the variables) :
!!! WARNING !!! When quitting the simulator, all the values of the
variables, the watch list and the simulations are lost. To save them
for further use, use the file menu to export Watch lists, Tag values
and Simulations.
Downloading a
project
Chapter 8
509
Standard serial
Ethernet - TCP/IP
Local
USB
http
510
Chapter 8
Compiling, Downloading and
Runtime
page 128). The type of port to be used for the PC-terminal
connection must be specified.
In the EsaPolymath 2.1 version a second Download protocol
was added, called UDP (User Data Protocol) :
Chapter 8
511
512
Chapter 8
Compiling, Downloading and
Runtime
If an Ethernet TCP/IP connection is chosen, specify the
parameters in order to carry out the connection as IP address
and communication gate that must be configured before the
terminal (see chap. 8, Preparation of IT panels before
download page 511).
Once the connection has been selected, click on 'Connect' to
start the connection whilst clicking on 'Cancel', cancels the
operation.
Preparation of the PCs or PC terminals based on the first
download
If an ethernet connection is chosen, connect the PC to the
network and configure the network parameters (refer to the
windows guide or consult the network administrator).
PCUSB ADAPTER
If a SERIAL CAN or PROFIBUS connection is chosen, the ESA
"PCUSBxxxxxxx" product must be used.
The "PCUSBxxxxxxx" product is essential to establish
communication between PC/XS and the PLC provided with a
CAN/DP or SERIAL port.
ESA puts the following order codes at disposal :
PCUSBADP0SP2
PCUSBADP0CAN
PCUSBADP0DP
Chapter 8
513
514
Chapter 8
Compiling, Downloading and
Runtime
Press OK to confirm.
Chapter 8
515
PCMACHINEBASE
The whole system regarding Runtime on the PC/XS working
with "ESAPOLYMATH DOWNLOADER" application described
until now, will automatically close after 20 minutes if the USB
Hardware key has not been inserted.
Inserting the "PCMACHINEBASE" key in the XS/PC terminal,
the system could request to insert the drivers to acknowledge
the key. These drivers are found skimming through the
following path :
C\PROGRAM FILES\EUTRONSEC\SMARTKEY DRIVERS
Carry out project Download on the PC or PC terminal based
When a project is compiled it can be transferred on to the
terminal by means of the Download function; to start transfer,
click on the icon
of the instruments bar (or on the main
menu File->Download). If there are compiled files for the
current project version edited, POLYMATH will display a
window relating to the configuration of the hardware
connection machine-terminal. If however, no files are
compiled with respect the project, POLYMATH will ask the
programmer to perform compilation.
516
Chapter 8
Compiling, Downloading and
Runtime
In the window relating to download, it is possible to select the
relative parameter connection types to be used; the
envisioned connection types for the PC platforms are:
Standard Serial
Ethernet - TCP/IP
Local
USB
http
Chapter 8
517
518
Chapter 8
Compiling, Downloading and
Runtime
Chapter 8
519
By enabling the "Show details" check box, the file names currently being transferred are displayed :
Next to the download bar the remaining process completion time is displayed.
During panel transfer a message indicating download status is
displayed; after its completion the project execution is launched.
Change
Password
520
Chapter 8
Compiling, Downloading and
Runtime
Chapter 8
521
Download the
IT OPERATING
SYSTEM image
Set up an
Ethernet
connection
522
Chapter 8
Compiling, Downloading and
Runtime
POLYMATH will ask for the previously explained IP address to
be set and to select the file source from which the program will
read the Boot to be transferred.
During the installation of POLYMATH, a file is created on the
PC where the images for the operating systems of various ESA
panel models are copied ready to be downloaded on to the
terminal; generally the image files are found in the main
directory of the POLYMATH in the path \xml\OSImages\IT1xx
(for example for a IT105T, if the installation path has not be
modified, the image is in C:\Program Files\ESA
Elettronica\ESAPOLYMATH\xml\OSImages\IT105
TFT\NK.bin).
After selecting the source from the Boot File to transfer, press
the NEXT button and switch on the IT panel so that transfer
can begin.
Chapter 8
523
Establishing an
Ethernet
connection
524
Chapter 8
Compiling, Downloading and
Runtime
Chapter 8
525
Note: To check that the panel has been correctly set in the Ethernet
network, the operator is advised to perform a Ping operation
using a different terminal in the network. For example, using a
Windows PC, click on Start->Run->and write ping
***.***.***.*** replacing the asterisks with the IP address
assigned to the panel. A command window for checking the actual
connection and its speed will appear.
526
Chapter 8
Compiling, Downloading and
Runtime
Chapter 8
527
528
Chapter 8
Compiling, Downloading and
Runtime
in the Scripts or when configuring the function predefined in
POLYMATH.
Exporting files to various supports
After configuring the panel for Ethernet access or for sharing
folders, this connection can be used for exporting data from
POLYMATH projects. And therefore it is possible to use the
function for exporting and importing recipes, alarms or trend
buffers to various devices.
For example, to export data to a physical support other than
the main disk (like a mass storage card or USB key), just
specify the name of the file including the complete path (e.g.
Hard Disk2\fileexportato.xml) in the destination file path.
Online tools
Chapter 8
529
After having choosing the kind of connection (USB, in our case), just click onto Connect to establish the connection
between PC and HMI. The following window will appear :
From the previous window it's possible to execute the following operations :
530
Chapter 8
Compiling, Downloading and
Runtime
Chapter 8
531
532
Chapter 8
Compiling, Downloading and
Runtime
Chapter 8
533
By clicking on Add File you can choose the file to store into
the panel.
Once selecting the file to send, just choose the folder of destination. In the sample we've selected the folder Hard Disk.
Just click OK :
534
Chapter 8
Compiling, Downloading and
Runtime
Chapter 8
535
536
Chapter 8
Compiling, Downloading and
Runtime
Backup /
Restore
Chapter 8
537
As you can see from the previous figure, the user can carry
out "Backup" or "Restore" (the latter option is discussed later), it is also possible to only backup the project, both the
538
Chapter 8
Compiling, Downloading and
Runtime
project and recipes (alarms, trends, variables), or to backup
any combination of the 3 options (Run Time, Project, History).
In our example the Backup will be performed enabling all 3
options :
Chapter 8
539
Restore
(Remote panel
update)
540
Chapter 8
Compiling, Downloading and
Runtime
Choose the terminal family (in our case the IT family) then
click on "Next" :
In the following image, enable the Panel Format Backup" option (only offline) and choose if the Project option, the Run
Time option or both at the same time are to be enabled then
click on Next :
Chapter 8
541
542
Chapter 8
Compiling, Downloading and
Runtime
Chapter 8
543
Enable the Restore option and then click on the browse key
to locate the file containing the project to be loaded on the
panel :
544
Chapter 8
Compiling, Downloading and
Runtime
Chapter 8
545
Click on "Start Restore", the following image is displayed where the user is warned that during "Restore" all existing files in
directories involved in the process are replaced with the new
files, click "YES" to continue :
If everything has been completed properly, the wording Restore Completed appears :
546
Chapter 8
Compiling, Downloading and
Runtime
Click "OK" to go back to Control Panel, where the project just
loaded can be launched by clicking on "Start ESA Application :
Chapter 8
547
In the next window you can select the family of the panels: ITPC or VT :
Now the user can choose either to download the files onto the
panel or viceversa (in our sample we download files PC->HMI), if a project is open the following window will appear :
548
Chapter 8
Compiling, Downloading and
Runtime
Chapter 8
549
550
Chapter 8
Compiling, Downloading and
Runtime
From the image above, the user can choose between 2 options:
Chapter 8
551
552
Chapter 8
Compiling, Downloading and
Runtime
Chapter 9
553
Scripts
9.
Scripts
554
Chapter 9
Scripts
The editor facilities the drafting of the code, showing too the
list of objects and properties available for the object that has
been inserted (Intellisense mechanism). This list appears
whenever the user presses the separation point between the
objects or between an object and the method (or property) to
be called. When the code is edited, the objects are, in fact,
separated from their respective children or methods by the
insertion of a point . (dot). There follows a chart showing the
hierarchy of objects accessible by script.
Chapter 9
555
Scripts
556
Chapter 9
Scripts
Abbreviatio
n
Whole
Int
String
Str
Boolean
Bool
Long
Long
Double
Dbl
RGB (color,
returned by the
RGB function)
RGB
Variant
Var
Read, readonly
RW
Read&Write,
read and write
Chapter 9
557
Scripts
558
Chapter 9
Scripts
Chapter 9
559
Scripts
Description
OUT
Long
String
GetId
Integ
er
String
GetDataType
Integ
er
String
GetRawDataT
ype
IsInvalid
Bool
ean
String
IsOffline
Bool
ena
String
IsOffscan
Bool
ean
String
Bool
ean
String
IsForced
Bool
ean
String
String(tag
name)
Boolean(O
ffscan)
String(Tag
name)
Boolean(I
nhibit)
GetStringLen
Long
String
GetFillingType
Integ
er
String
IsInhibit
SetOffscan
SetInhibit
IN
560
Chapter 9
Scripts
Description
OUT
GetFillingChar
Integ
er
String
String(Tag
name)
Integer(Fil
lchar)
Doub
le
String
GetInputValue
UpperLimit
Dbl
String
GetInputRaw
ValueLowerLi
mit
Dbl
String
GetInputRaw
ValueUpperLi
mit
Dbl
String
GetConversion
Type
Integ
er
String
Dbl
String
GetConversion
X1Par
Dbl
String
GetConversion
Y1Par
Dbl
String
GetConversion
X2Par
Dbl
String
GetConversion
Y2Par
SetFillingChar
GetInputValue
LowerLimitGe
tTagThrsDevR
eference
IN
Chapter 9
561
Scripts
Description
OUT
SetInputValue
LowerLimit
String(Tag
name)
Dbl(Limit)
String(Tag
name)
Double(Li
mit)
String(Tag
name)
Double(Li
mit)
String(tag
name)
Double(Li
mit)
String(Tag
name)
Double(Co
nvPatamet
er)
String(Tag
name)
Double(Co
nvPatamet
er)
SetConversion
X2Par
String(Tag
name)
Double(Co
nvPatamet
er)
SetConversion
X2Par
String(Tag
name)
Double(Co
nvPatamet
er)
GetCurrent
Value
Varia
nt
String
SetInputValue
UpperLimit
SetInputRaw
ValueLower
Limit
SetInputRaw
ValueUpper
Limit
SetConversion
X1Par
SetConversion
Y1Par
IN
562
Chapter 9
Scripts
Description
OUT
GetCurrent
RawValue
Varia
nt
String
ReadValue
Varia
nt
String
String(Tag
name)
Variant(Va
lue)
Varia
nt
String(Tag
name)
Integer(In
dex)
String(tag
Name)
Integer(In
dex)
Variant(Va
lue)
Bool
ean
String(Tag
name)
Long(Inde
x)
String(Tag
name)
Long(Inde
x)
Boolean(V
alue)
GetThreshold
Type
Integ
er
String
GetThreshold
State
Integ
er
String
Integ
er
String(Tag
name)
Integer(Le
vel)
WriteValue
ReadElement
WriteElement
ReadBit
WriteBit
GetThreshold
LevelState
IN
Chapter 9
563
Scripts
The object
ESAUSERMGR
Description
OUT
IN
GetCurrentU
serName
Str
GetCurrentU
serLevel
Int
Long
Str
ExportUser
Log
564
Chapter 9
Scripts
Description
OUT
IN
Alarm
Name
(Str)
AlarmOn
Alarm
Name
(Str)
RaiseAlarm
ClearAlarm
Alarm
Name
(Str)
Chapter 9
565
Scripts
Description
OUT
IN
Ack
Instances
Alarm
Name
(Str)
Operator
(Str)
Station
(Str)
AckGroup
Group
Name
(Str)
Operator
(Str)
Station
(Str)
Operator
(Str)
Station
(Str)
AckGlobal
566
Chapter 9
Scripts
The object
ESARECIPEMGR
Method
Description
OUT
IN
Registratio
nID (Long)
Operator
(Str)
Station
(Str)
AckAlarm
FileName
(Str)
FileType
(Int)
Alarms
Export
FileName
(Str)
FileType
(Int)
History
Export
History
Delete
Chapter 9
567
Scripts
The object
ESARECIPETYP
Method
Description
OUT
IN
Str
GetTAG
Buffer
Structure
Name
(Str)
FieldName
(Str)
Structure
Name
(Str)
ClearTAG
Buffer
Bool
Recipe
Compare
Structure
Name
(Str)
Recipe
Name1
(Str)
Recipe
Name2
(Str)
IsActive
Indicates if it is in course
and therefore a transfer is
active
Integ
er
Structure
Name
(Str)
568
Chapter 9
Scripts
The object
ESARECIPEARC
Method
Description
OUT
IN
GetFirst
RecipeType
Name
Str
Str
GetNextt
RecipeType
Name
Description
OUT
IN
Str
Structur
Name
(Str)
GetFirst
RecipeName
Chapter 9
569
Scripts
Description
OUT
IN
Str
Structur
Name
(Str)
GetNext
RecipeName
Delete
Recipe
Structur
Name
(Str)
Recipe
Name
(Str)
UserFlag
(Bool)
Bool
RecipeExists
Structur
Name
(Str)
Recipe
Name
(Str)
570
Chapter 9
Scripts
The object
ESARECIPETRF
Method
Description
OUT
IN
Int
Filename
(Str)
Structur
Name
(Str)
RecipeList
(Str)
Recipe
Export
Int
Filename
(Str)
Recipe
Import
Chapter 9
571
Scripts
Description
OUT
IN
LoadRecipe
Structure
Name
(Str)
Recipe
Name
(Str)
UserFlag
(Bool)
SaveRecipe
Structure
Name
(Str)
Recipe
Name
(Str)
UserFlag
(Bool)
Recipe
Download
StructureN
ame (Str)
RecipeNa
me (Str)
SyncFlag
(Bool)
572
Chapter 9
Scripts
The object
ESAPIPEMGR
Method
Description
OUT
IN
Recipe
Buffer
Download
Structure
Name
(Str)
SyncFlag
(Bool)
Recipe
Buffer
Upload
Structure
Name
(Str)
SyncFlag
(Bool)
Description
OUT
IN
Start
PipelineBy
Name
Pipeline
Name
(Str)
Chapter 9
573
Scripts
Description
OUT
IN
Start
PipelineBy
Number
PipelineID
(Int)
PipelineNa
me (Str)
StopPipeline
ByName
StopPipeline
ByNumber
PipelineID
(Int)
Write
PipelineBy
Name
Pipeline
Name
(Str)
PipelineID
(Int)
Write
PipelineBy
Number
Int
Pipeline
Name
(Str)
GetPipeline
StatusBy
Name
Returns an indication of
the status of the pipeline
referred to in the input
parameter; the string
containing the name of the
Pipeline must be provided.
The complete returned
data will have one of the
following values and
meanings:
1 - Inactive Pipeline
2 - Active Pipeline
3 - Disconnected Pipeline
(no communication)
574
Chapter 9
Scripts
The object
ESATIMER
Method
Description
OUT
IN
Int
PipelineID
(Int)
GetPipeline
StatusBy
Number
Returns an indication of
the status of the pipeline
referred to in the input
parameter; the number
relating to the ID of the
Pipeline must be
transferred. The complete
returned data will have
one of the following values
and meanings:
1 - Inactive Pipeline
2 - Active Pipeline
3 - Disconnected Pipeline
(no communication)
Description
Typ
e
RW
Long
Direction
Count
Long
Duration
Chapter 9
575
Scripts
Description
Typ
e
RW
Long
Mode
Long
State
Count
Long
The object
ESATRENDMGR
Method
Description
OUT
IN
Long
SetTimer
Value
Duration
(Long)
Long
Start
Long
Stop
Long
Suspend
576
Chapter 9
Scripts
Description
Typ
e
RW
TrendId
Long
Str
Name
Long
Type
Str
SourceTag
Long
StrobeType
Chapter 9
577
Scripts
Description
Typ
e
RW
Str
StrobeTag
Long
StrobeTimer
Long
BufferSize
Samples
Num
Long
Long
Warning
Level
Bool
Enabled
Long
StatusBit
578
Chapter 9
Scripts
Description
OUT
IN
Bool
TrendId
(Long)
Value
(Var)
Time (Str)
Quality
(Bool)
GetFirst
Sample
Bool
TrendId
(Long)
Value
(Var)
Time (Str)
Quality
(Bool)
GetNext
Sample
Bool
IsEmpty
TrendId
(Long)
Chapter 9
579
Scripts
Description
OUT
IN
PutValue
TrendId
(Long)
Value
(Var)
Quality
(Bool)
PutValueAt
TrendId
(Long)
Value
(Var)
Time (Str)
Quality
(Bool)
Reset
Samples
TrendId
(Long)
TrendId
(Long)
Acquire
Sample
ExportPart
TrendBuffer
TrendId
(Long)
FileName
(Str)
Type (Int)
TimeStart
(Str)
TimeEnd
(Str)
ExportFull
TrendBuffer
TrendId
(Long)
FileName
(Str)
Type (Int)
580
Chapter 9
Scripts
The object
ESAPAGEMGR
Method
Description
OUT
IN
Change
ScaleLimit
TrendId
(Long)
MinLimit
(Dbl)
MaxLimit
(Dbl)
Long
GetTrendId
Trend
Name
(Str)
Enable
TrendId
(Long)
Enabled
(Boolean)
Description
OUT
IN
Current
Language
Integ
er
RW
Chapter 9
581
Scripts
Description
OUT
IN
ShowNext
Page
ShowPage
ByName
PageName
(Str)
ShowPage
ByNumber
PageID
(Int)
Show
Previous
Page
ShowHelp
Page
ClosePopUp
PageBy
Name
PageName
(Str)
ClosePopUp
PageBy
Number
PageID
(Int)
582
Chapter 9
Scripts
Description
OUT
IN
CloseActive
PopUp
GetNum
PopupOpen
Int
Int
Index
(Int)
GetPopup
Open
Str
PageID
(Int)
GetPage
Name
Int
PageName
(Str)
GetPage
Number
Chapter 9
583
Scripts
Description
OUT
IN
Bool
PageName
(Str)
IsPageName
Open
Bool
PageID
(Int)
IsPageNum
Open
PageID
(Int)
Show
Sequence
PageBy
Name
Sequence
Name(Str)
PageName
(Str)
Show
Sequence
PageBy
Number
SequenceI
d(Int)
PageId
(Int)
Show
Previous
Sequence
Page
ShowNext
Sequence
Page
Get
Sequence
Name
Strin
g
SequenceI
d(Int)
Get
Sequence
Page
Integ
er
Sequence
Name(Str)
ActivePage
LightUp
584
Chapter 9
Scripts
Description
OUT
IN
LightDown
LightSet
LightLevel
(Int)
CloseAllPop
Up
Current
Language
Integer
Integer
Export file
(Str) Mode
(Int)
Integer
PrintDialog (bool)
Orientation (int)
Mode (int)
ReportMode (int)
PrintDialog (bool)
ReportName
(string)
OutputName(string)
ExportUser
log
Flush
Persistent
Data
Hardcopy
Quit
Application
Report
The object
ESAPAGE
Chapter 9
585
Scripts
The object
ESACNTRL
Properties
Description
Typ
e
RW
Str
Name
Int
Number
Width
Int
Height
Int
RGB
RW
AreaColor
586
Chapter 9
Scripts
Description
Typ
e
RW
Int
RW
ControlLeft
Int
RW
ControlTop
Control
Width
Int
Control
Height
Int
Bool
RW
ControlHide
Chapter 9
587
Scripts
Description
Typ
e
RW
RGB
RW
BorderColor
Int
RW
BorderBlink
RGB
RW
AreaColor
Int
RW
FillDir
588
Chapter 9
Scripts
Description
Typ
e
RW
Int
RW
FillPercent
RGB
RW
FillColor
Description
OUT
IN
Draw
Description
Type
RW
Int
RW
ControlLeft
Chapter 9
589
Scripts
Description
Type
RW
Int
RW
ControlTop
ControlWidth
Int
Control
Height
Int
Bool
RW
ControlHide
RGB
RW
BorderColor
Int
RW
BorderBlink
590
Chapter 9
Scripts
Description
Type
RW
RGB
RW
AreaColor
Int
RW
FillDir
Int
RW
FillPercent
RGB
RW
FillColor
Chapter 9
591
Scripts
Description
OUT
IN
Draw
Description
Typ
e
RW
Int
RW
ControlLeft
Int
RW
ControlTop
ControlWidth
Int
ControlHeight
Int
Bool
RW
ControlHide
592
Chapter 9
Scripts
Description
Typ
e
RW
RGB
RW
ArcColor
Int
RW
ArcBlink
Description
OUT
IN
Draw
Chapter 9
593
Scripts
Description
Typ
e
RW
Int
RW
ControlLeft
Int
RW
ControlTop
Control
Width
Int
Control
Height
Int
Bool
RW
ControlHide
RGB
RW
ArcColor
594
Chapter 9
Scripts
Description
Typ
e
RW
Int
RW
ArcBlink
RGB
RW
AreaColor
Int
RW
FillDir
Int
RW
FillPercent
Chapter 9
595
Scripts
Description
Typ
e
RW
RGB
RW
FillColor
Description
OUT
IN
Draw
Description
Typ
e
RW
Int
RW
ControlLeft
Int
RW
ControlTop
596
Chapter 9
Scripts
Description
Typ
e
RW
Int
X1
Int
X2
Int
Y1
Chapter 9
597
Scripts
Description
Typ
e
RW
Int
Y2
Bool
RW
ControlHide
RGB
RW
LineColor
Int
RW
LineBlink
598
Chapter 9
Scripts
Description
OUT
IN
Draw
Description
Typ
e
RW
Int
RW
ControlLeft
Int
RW
ControlTop
Bool
RW
ControlHide
Chapter 9
599
Scripts
Description
Typ
e
RW
RGB
RW
LineColor
RGB
RW
AreaColor
Int
RW
FillDir
Int
RW
FillPercent
RGB
RW
FillColor
600
Chapter 9
Scripts
Description
OUT
IN
Draw
Description
Typ
e
RW
Int
RW
ControlLeft
Int
RW
ControlTop
Bool
RW
ControlHide
RGB
RW
LineColor
Chapter 9
601
Scripts
Description
OUT
IN
Draw
Description
Typ
e
RW
Int
RW
ControlLeft
Int
RW
ControlTop
Control
Width
Int
Control
Height
Int
602
Chapter 9
Scripts
Description
Typ
e
RW
Bool
RW
ControlHide
RGB
RW
BorderColor
Int
RW
BorderBlink
RGB
RW
AreaColor
Chapter 9
603
Scripts
Description
Typ
e
RW
Str
RW
TextValue
RGB
RW
TextColor
Int
RW
TextBlink
Str
RW
FontFace
Name
Int
RW
FontSize
604
Chapter 9
Scripts
Description
Typ
e
RW
Bool
RW
FontItalic
Bool
RW
FontBold
Bool
RW
Font
Underline
Bool
RW
FontStrike
Out
Description
OUT
IN
Draw
Int
GetTextLen
Chapter 9
605
Scripts
Description
Typ
e
RW
Int
RW
ControlLeft
Int
RW
ControlTop
ControlWidth
Int
ControlHeight
Int
Bool
RW
ControlHide
RGB
RW
BorderColor
606
Chapter 9
Scripts
Description
Typ
e
RW
Int
RW
BorderBlink
RGB
RW
AreaColor
Description
OUT
IN
Draw
Int
GetHorDim
Chapter 9
607
Scripts
Description
OUT
IN
Int
GetVertDIm
Description
Typ
e
RW
Int
RW
ControlLeft
Int
RW
ControlTop
Control
Width
Int
Control
Height
Int
Bool
RW
ControlHide
608
Chapter 9
Scripts
Description
Typ
e
RW
RGB
RW
BorderColor
Int
RW
BorderBlink
RGB
RW
AreaColor
Str
RW
FontFace
Name
Int
RW
FontSize
Chapter 9
609
Scripts
Description
Typ
e
RW
Bool
RW
FontItalic
Bool
RW
FontBold
Bool
RW
Font
Underline
Bool
RW
FontStrike
Out
Bool
RW
Disable
RGB
RW
ValueColor
610
Chapter 9
Scripts
Description
Typ
e
RW
Int
RW
ValueBlink
Var
RW
Value
Description
OUT
IN
Draw
Refresh
Control
Chapter 9
611
Scripts
Description
Typ
e
RW
Int
RW
ControlLeft
Int
RW
ControlTop
Control
Width
Int
Control
Height
Int
Bool
RW
ControlHide
RGB
RW
BorderColor
612
Chapter 9
Scripts
Description
Typ
e
RW
Int
RW
BorderBlink
RGB
RW
AreaColor
RGB
RW
TextColor
Chapter 9
613
Scripts
Description
Typ
e
RW
Int
RW
TextBlink
Str
RW
FontFace
Name
Int
RW
FontSize
Bool
RW
FontItalic
Bool
RW
FontBold
Bool
RW
Font
Underline
614
Chapter 9
Scripts
Description
Typ
e
RW
Bool
RW
FontStrike
Out
Bool
RW
Disable
Var
RW
Value
Description
OUT
IN
Draw
Refresh
Control
Int
GetTextLen
Chapter 9
615
Scripts
Description
OUT
IN
Draw
Refresh
Control
Int
GetTextLen
Description
Typ
e
RW
Int
RW
ControlLeft
616
Chapter 9
Scripts
Description
Typ
e
RW
Int
RW
ControlTop
Control
Width
Int
Control
Height
Int
Bool
RW
ControlHide
RGB
RW
BorderColor
Int
RW
BorderBlink
Chapter 9
617
Scripts
Description
Typ
e
RW
RGB
RW
AreaColor
Bool
RW
Disable
Var
RW
Value
Description
OUT
IN
Draw
Refresh
Control
618
Chapter 9
Scripts
Description
OUT
IN
Int
GetHorDim
Int
GetVertDIm
Description
OUT
IN
Draw
Refresh
Control
Int
GetTextLen
Chapter 9
619
Scripts
Description
Typ
e
RW
Int
RW
ControlLeft
Int
RW
ControlTop
Control
Width
Int
Control
Height
Int
Bool
RW
ControlHide
RGB
RW
BorderColor
620
Chapter 9
Scripts
Description
Typ
e
RW
Int
RW
BorderBlink
RGB
RW
AreaColor
RGB
RW
Indicator
Color
Var
RW
Value
Bool
RW
Disable
Chapter 9
621
Scripts
Description
OUT
IN
Draw
Refresh
Control
Description
Typ
e
RW
Int
RW
ControlLeft
Int
RW
ControlTop
Control
Width
Int
Control
Height
Int
622
Chapter 9
Scripts
Description
Typ
e
RW
Bool
RW
ControlHide
RGB
RW
BorderColor
Int
RW
BorderBlink
RGB
RW
AreaColor
Var
RW
Value
Chapter 9
623
Scripts
Description
OUT
IN
Draw
Refresh
Control
Description
Typ
e
RW
Int
RW
ControlLeft
Int
RW
ControlTop
Control
Width
Int
Control
Height
Int
624
Chapter 9
Scripts
Description
Typ
e
RW
Bool
RW
ControlHide
RGB
RW
BorderColor
Int
RW
BorderBlink
RGB
RW
AreaColor
Chapter 9
625
Scripts
Description
Typ
e
RW
Bool
RW
Disable
Strin
g
RW
Strin
g
RW
TextLabel
TextColor
Description
OUT
IN
Draw
Description
Typ
e
RW
Int
RW
ControlLeft
626
Chapter 9
Scripts
Description
Typ
e
RW
Int
RW
ControlTop
Control
Width
Int
Control
Height
Int
Description
OUT
IN
Draw
Description
Typ
e
RW
Int
RW
ControlLeft
Chapter 9
627
Scripts
Description
Typ
e
RW
Int
RW
ControlTop
Control
Width
Int
Control
Height
Int
Bool
RW
ControlHide
RGB
RW
BorderColor
Int
RW
BorderBlink
628
Chapter 9
Scripts
Description
Typ
e
RW
RGB
RW
AreaColor
Var
RW
Value
Bool
RW
Disable
Description
OUT
IN
Draw
Refresh
Control
Chapter 9
629
Scripts
Description
Typ
e
RW
Int
RW
ControlLeft
Int
RW
ControlTop
Control
Width
Int
Control
Height
Int
630
Chapter 9
Scripts
Description
Typ
e
RW
Bool
RW
ControlHide
RGB
RW
BorderColor
RGB
RW
AreaColor
Bool
RW
Disable
RGB
RW
GridColor
Chapter 9
631
Scripts
Description
Typ
e
RW
RGB
RW
RibbonBack
Color
RGB
RW
RibbonFore
Color
RGB
RW
SelBack
Color
RGB
RW
SelFore
Color
SortCol
Long
RW
Long
RW
SortMode
632
Chapter 9
Scripts
Description
OUT
IN
Count
Column
Long
CountRow
Long
Description
Typ
e
RW
Long
RW
ControlLeft
Long
RW
ControlTop
Control
Width
Long
Control
Height
Long
Bool
RW
ControlHide
Chapter 9
633
Scripts
Description
Typ
e
RW
RGB
RW
BorderColor
RGB
RW
AreaColor
RGB
RW
ChartArea
Color
RGB
RW
ChartBorder
Color
Str
RW
ChartTime
Left
634
Chapter 9
Scripts
Description
Typ
e
RW
RGB
RW
GridHorLine
Color
RGB
RW
GridHorMin
LineColor
RGB
RW
GridVertLine
Color
RGB
RW
GridVertMin
LineColor
RGB
RW
ScaleHor
LabelColor
CursorFlag
Bool
RW
Chapter 9
635
Scripts
Description
Typ
e
RW
RGB
RW
CursorColor
Long
NumTracks
ActiveTrack
Long
RW
Long
RW
TrackId
TrackNum
Ranges
Long
RW
Dbl
RW
TrackRange
1
Dbl
RW
TrackRange
2
Dbl
RW
TrackRange
3
636
Chapter 9
Scripts
Description
Typ
e
RW
Dbl
RW
TrackRange
4
Dbl
RW
TrackRange
5
RGB
RW
TrackColor1
RGB
RW
TrackColor2
RGB
RW
TrackColor3
RGB
RW
TrackColor4
RGB
RW
TrackColor5
RGB
RW
TrackColor6
TrackValue
Low
Long
RW
Chapter 9
637
Scripts
Description
Typ
e
RW
TrackMax
Samples
Long
TrackNum
Samples
Long
Description
OUT
IN
Long
AddTrack
TrackId
(Long)
NumSampl
es (Int)
Long
AddSample
TrackId
(Long)
Value
(Var)
Time (Str)
Quality
(Bool)
Long
Remove
Track
TrackId
(Long)
Long
Remove
Samples
TrackId
(Long)
638
Chapter 9
Scripts
Description
OUT
IN
Long
TrackId
(Long)
Value
(Var)
Result
(Long)
GetCursor
TrackValue
Long
Time (Str)
GetCursor
Position
SetCursor
Position
Long
Time (Str)
MoveUp
Long
Step
(Long)
MoveDown
Long
Step
(Long)
MoveLeft
Long
Step
(Long)
MoveRight
Long
Step
(Long)
Long
Time (Str)
Goto
Draw
Long
Chapter 9
639
Scripts
object ESAPRN
Method
Description
OUT
IN
Chart
Alignment
Long
Long
RelativeTo
Absolute
Time
RelTime
(Str)
AbsTime
(Str)
Long
AbsoluteTo
Relative
Time
RelTime
(Str)
AbsTime
(Str)
Description
Typ
e
RW
LastError
Int
RW
640
Chapter 9
Scripts
Description
Typ
e
RW
Int
RW
FontSize
PageWidth
Int
PageHeight
Int
MarginHor
Int
RW
MarginVert
Int
RW
Int
PageRows
Int
Page
Columns
Chapter 9
641
Scripts
Description
OUT
IN
Int
DialogBox
(Bool)
Start
End
Abort
642
Chapter 9
Scripts
Examples of
Script use
Method
Description
OUT
IN
NewPage
Text (Str)
WriteLN
WriteXY
PosX(Int)
PosY(Int)
Text (Str)
WriteRC
Row(Int)
Col(Int)
Text (Str)
Chapter 9
643
Scripts
Our Script must be able to get the value of the variable Tag,
check that the value is less than 5 and, should this not be the
case, launch an alarm, edit the layout of the label and the
page and take the variable to a low value.
To get the value of the variable, we use ESATAG and save it
into variable a with the following instruction:
a=ESAHMI.ESATAG.ReadValue (Tag)
Now let us analyze the received value: if the value is greater
than or equal to 5, an alarm is raised. Using POLYMATH we set
an alarm to be activated when the value 10 was reached, so
we are certain that it is the Script activating it now. The
control and activation code uses the object ESAALARMMGR as
indicated by the following rows:
If a>4 Then
ESAHMI.ESAALARMMGR.RaiseAlarm("Alarm")
End If
We can also run other instructions within the same condition
such that when we change the value of the variable and
launch the Script other changes will be applied, too. For
example, we change the text, the color and the blinking of the
label (object ESACNTRL, remembering to invoke the Draw
method related to the label) and the background of the page
(object ESAPAGE) as set out below:
If a>4 Then
ESAHMI.ESAALARMMGR.RaiseAlarm("Alarm")
ESAHMI.ESAPAGE("Page").ESACNTRL("Label").TextValue
="ValueError"
ESAHMI.ESAPAGE("Page").ESACNTRL("Label").AreaColor
=RGB (23,123,43)
644
Chapter 9
Scripts
ESAHMI.ESAPAGE("Page").ESACNTRL("Label").BorderColo
r=RGB (54,245,13)
ESAHMI.ESAPAGE("Page").ESACNTRL("Label").BorderBlin
k=2
ESAHMI.ESAPAGE("Page").ESACNTRL("Label").Draw()
ESAHMI.ESAPAGE("Page").AreaColor=RGB(25,25,25)
End If
Finally, we re-establish an admissible value for the variable
with the following instruction:
ESAHMI.ESATAG.WriteValue Tag,2
The final code inserted in the POLYMATH editor is the
following:
Chapter 9
645
Scripts
ESAHMI.ESAALARMMGR.HistoryExport a,1
646
Chapter 9
Scripts
Chapter 9
647
Scripts
End If
We execute the upload of the recipe loaded onto the PLC (type
is Proportions) in the first rows of the cycle, while in the
second row we save that recipe (using the name Recipe) onto
the terminal. Now all we need is the save phase that is run
using the following instruction:
ESAHMI.ESARECIPEARC.RecipeExport
dest,"Proportions",""
ESAHMI.ESATAG.WriteValue Check,0
All the recipes are exported (the third parameter is an empty
string) and they are saved in the file indicated in the string
variable dest which we shall now go on to construct. After the
save operation the check bit returns to 0.
The string dest is constructed by adding the details relating
to the date and time of the execution of the operation. This
information can be obtained using the functions put at the
users disposal by the programming language, VBScript:
time=Now()
date=Date()
day=addzero(Day(date)
month=addzero(Month(date)
year=Year(dat)
hour=addzero(Hour(time)
minute=addzero(Minute(time)
second=addzero(Second(time)
dest="Hard Disk2\ric_" & day & "-" & month & "-" & year &
"_h" & hour & "." & minute & "." & second & ".xml"
As we can see, the variables day, month, hour, minute and
second are passed to the addzero function defined by us in
which the zeroes for one-digit values are added.
The final instruction leads to constructing the string dest
indicating the path and name of the file to which the recipes
are exported. In our case, we will save onto the support called
Hard Disk2 (which, for example, could be a USB key) with a
name of the type ric_02-12-2005_h12.13.08.xml. In this
way we will be certain to have a series of distinct exportations
in a file with unique names in terms of the support.
What follows is an overall view of the Script that has just been
configured
648
Chapter 9
Scripts
Chapter 9
649
Scripts
As we can see, the While cycle remains open until such time
as the value of a is different from the empty string (that is,
until recipes have been saved).
Cancellation occurs in accordance with the type indicated at
the beginning of the Script and the current value of a (recipe
name). In addition the value 0 is passed to avoid confirmation
being asked of the operator. Within the cycle we also update
the value of a by getting the new first recipe (we again use
GetFirst rather than GetNext because the delete operation has
changed the order of the recipes).
Exiting from the While cycle, all the recipes have been
eliminated, so all we can do is get the time taken by the
Script:
t=Timer()-t
return t
Using this instruction, the value of t is updated by removing
from the current value of Timer() the value obtained at the
beginning of the Script (saved in t). Thus, at the end of this
instruction t will contain the number of seconds elapsed
between the beginning and the end of the cancel operation.
Below is the complete code of our Script:
650
Chapter 9
Scripts
Chapter 10
651
Tutorial
10.
Tutorial
652
Chapter 10
Tutorial
In the next page we select the device the ESA panel should
interface with (in our example we will use a Telemecanique
PLC. Using the list of devices (in the form of a tree-diagram),
we search the category of PLC to find the makers of our chosen device. We select the model we are using, one which uses
a compatible protocol (in our case, Unitelway TSX07/37/47/
57 Premium) and then click on Continue to proceed with the
configuration.
Chapter 10
653
Tutorial
The last operation is to give a name to our project and a description allowing us to identify it. The names and the descriptions given in this phase have no functional value in the
project but serve only to make identifying it easier. At this
point we click on Continue and then End to conclude the
project set-up operations.
POLYMATH now creates all the connections we need to interact
with the panel-device (communication ports, addresses etc.).
The projects Hardware settings can, of course, be changed at
any time simply by clicking on Hardware Configuration in
Project Explorer.
Phase 2 Software
configuration
When configuring the Software we can define the global preferences relating to our project. In our example we customize
the project by stipulating two languages, three user levels, a
personalized font (not one of the default ones) and a Timer.
We shall, however, leave the options relating to the translations of messages and systems alarms unchanged. (The programmer can, of course, decide to customize every single
message.)
Setting project languages
We wish to produce a multi-language project, in which it will
be up to the end-user (operator) to decide the language with
which to interact with the panel in runtime (in practice, this
means choosing the language in which the messages, the errors and the texts that appear in the pages will appear). In our
example we shall set two languages: Italian and English. To
carry out this operation, we go to the appropriate page by
clicking on the Project Explorer option Languages in the
VT595CE Configuration Software.
654
Chapter 10
Tutorial
Chapter 10
655
Tutorial
ln our project we will stipulate 2 users: one at level 1 (maximum access rights) and one at level 5 (lower credentials). As
for user names and passwords, we will call them user1 and
user5 respectively (same value for user name and password,
in general it is advisable to insert different strings).
656
Chapter 10
Tutorial
Without doubt, data management is the most important aspect in creating a project for the work of the terminal. It is essential to have a clear idea of the structure the data needs to
respect in runtime and how the operator can access them.
Chapter 10
657
Tutorial
With POLYMATH internal variables as well as device and system variables can be managed (see chap. 5, RefreshGroups
page 138). It is also possible to manage memory areas dedicated, for example, to status indication commands.
Naturally, the list of variables can be accessed at any point
during the editing of the project. In our example, we do this
to define some examples of each type of variable.
Defining device variables
If we click twice on the Tags option of the Project Explorer,
we access the list of variables defined in the project.
Now click on Add to insert the new variables.
Let us call the variable num_pezzi (and add a brief description which may be useful for identifying what the variable is
for in the future), defining its location as Device.
658
Chapter 10
Tutorial
Chapter 10
659
Tutorial
The next step is to set the limits (on both the panel and the
device values) for this variable. Let us suppose that this is
always a value between 0 and 1000, then if you try to go outside these limits in runtime, the value will automatically be put
at the nearest limit to the value requested. Our example will
not use conversions and thresholds: we leave the possibility
of assigning these in the way described in the related part of
this manual (see chap. 5, Conversion page 147 and see
chap. 5, Thresholds page 149) to the user.
Thus we have finished configuring the first variable,
num_pezzi; the other 3 variables are configured in exactly
the same way and thus we can edit them to give:
- an integer variable called int_var with an address of word 1
- a real variable called real_var with an address of word 2
- a string variable called str_var with an address starting at
word 3 and having a length of 8 characters (so it also occupies
word 4, 5 and 6) as shown in the figure below :
For example we will define one variable indicating the ID number of the language currently in use in the project
660
Chapter 10
Tutorial
Chapter 10
661
Tutorial
We now use the Device mask to set as starting memory address word 7 (namely the first to remain free - as a result,
words 8-9 and 10 will also be occupied) and enable the continuous update option as illustrated below :
662
Chapter 10
Tutorial
Finally we attribute the group we have just defined to the variable int_var by acting on the tag "Device" window :
For the other variables we will leave the refresh group as predefined "Class_0 : as fast as possible".
Summary of variables and memory area
Address
Memory name
Variable
W0
MemoryAddress
num_pezzi
W1
MemoryAddress_1
int_var
W2
MemoryAddress_2
real_var
W 3-4-5-6
MemoryAddress_3
str_var
Chapter 10
663
Tutorial
Phase 4 General
configuration
of the VT
Address
Memory name
Variable
W 7-8-9-10
MemoryAddress_4
array_var_4
W 11-12-13-1415-16
MemoryAddress_5
array_var_6
W 17-18
MemoryAddress_6
array_var_2
664
Chapter 10
Tutorial
A different font can be specified for each of the project languages. In our example we set Font_Trebuchet which we previously inserted for both languages and set the font size at 25.
These changes will be valid for all the Help-pages we set.
Chapter 10
665
Tutorial
In this mask we set the start-up options of the project. We indicate the language of the Operating System (English) and
leave the page displayed on start-up as the default option
(Page).
Setting Exchange areas
The last terminal configuration operation for our project is the
definition of the exchange areas. After moving to the appropriate mask, we specify which of the variables (areas) created
are to be dedicate to these checks.
666
Chapter 10
Tutorial
Chapter 10
667
Tutorial
We now use the lower part to enable the log in the history
buffer (in practical terms, with this option the instances of this
alarm are listed in the history table we will set in due course).
We also enable the association with a page to be displayed
when requested by the user after the alarm has been raised
(for now we will assign the first page).
General alarm settings
A series of general options relating to managing the alarms
can be accessed by clicking twice on Alarms in Project Explorer. While we will leave the masks relating to the resources and
the behavior of the alarm buffer memory unchanged, we will
make changes to the Priorities mask.
668
Chapter 10
Tutorial
in the last mask we select the option Message and set the
same priority FatalError that we set for the alarm we defined).
In this section we can establish how the operator is to be advised of the alarm being set off; we have chosen message, hat
is, a little icon will appear on the screen (irrespective of the
page the project is in when the alarm is raised). By clicking on
this alarm icon in runtime the operator is taken to the page
identified in the second field of this mask. Furthermore, we
will leave the default image as the image associated with the
alarm icon and at the bottom we will keep the enablement for
the warning noise.
Phase 6 Defining recipe
types
Chapter 10
669
Tutorial
Now we use the Fields mask to insert the variables that really
make up the recipe. In our example we click on Add and add
two fields as shown above. We introduce two fields containing
the variables int_var and str_var obtaining the following
list:
Phase 7 Loading
Images
At this point we can try to load some images in the project that
we can go on to use in our pages to make the functions more
comprehensible or simply to give the project a more pleasing
appearance. For example we introduce two images for the
project languages, namely English and Italian, provided, of
course, that these two images are on our hard disk.
670
Chapter 10
Tutorial
First we load the image of the Italian flag, clicking on the Images option in Project Explorer (right key) and then on Add
New.
The list of images will now show the new image Image; by
clicking twice on this we can edit it.
Chapter 10
671
Tutorial
Now just click on the empty area in the work area to browse
the contents of the Hard Disk and choose the file to insert.
You are now directed to the editing mask of the images where
you can set dimensions and compression characteristics. Color variants of the image can also be defined at this point (see
chap. 5, Operations performable on an image page 235).
For our images we will leave all these properties unchanged.
We use the same procedure to introduce the images of the
flag denoting the English language and the logo to use in our
project ;
672
Chapter 10
Tutorial
In the edit mask we leave the name of the list as per default,
ImageList, and click on Add to introduce images to the list :
We now add 4 texts relating to the value of a variable; for example, we insert the following strings The level of pieces is
low, The level of pieces is normal, The level of pieces is
high and The level of pieces is very high.
Each string inserted needs a translation in all the languages of
the project, thus in our case we have to provide a translation
in English. To insert the translation we click on the icon
ad-
Chapter 10
673
Tutorial
Having provided the translation for all 4 strings, we have finished editing our list and can use it for constructing our pages.
Phase 9 Setting
Pipelines
Suppose we want to link the values of two variables by defining a mechanism whereby the value of one tag is continuously
copied onto the other. In POLYMATH this can be done by defining a Pipeline.
674
Chapter 10
Tutorial
the copy mode (CopyonChange, that is, the value is copied every time the value of the source variable changes).
Phase 10 Defining a
Trend Buffer
Chapter 10
675
Tutorial
676
Chapter 10
Tutorial
This way the frame assumes the size indicated. We can now
define a background color by opening the Properties Editor.
Within the Background option we select the color blue while
leaving all the other options unchanged :
Chapter 10
677
Tutorial
Our frame will thus appear as in the figure below and will be
ready to accept objects placed within it :
678
Chapter 10
Tutorial
Once the texts have been defined, we edit their size and color.
Continuing to work in Properties Editor, we set as text color
Yellow and click on
in the Font option to edit the character
size :
Chapter 10
679
Tutorial
Using the editing window that now opens we choose the size
of 13 and choose Bold from among the properties :
At this point the only thing left to do is to set the colors of the
button: we select green as the background and border color
when the button is released and blue with a white border when
it is pressed. We also set the border width as 3 pixels.
680
Chapter 10
Tutorial
This opens the list of predefined functions (see Appendix B Predefined functions page 745) from which we select the
function Show previous page (after clicking on Add Function)
as shown below :
Chapter 10
681
Tutorial
Duplicating buttons
So far we have only inserted one button into our frame, one
with the function of invoking the previous page (the order followed is that of the IDs set for the pages). Now we can create
a similar button but one with the opposite function, that is,
show the next page. We need just duplicate the button already
created to avoid edit again from square one; to do this we select the button with the right-hand key :
The new button is to differ from the first only in three aspects:
the text of the label (Forward and Continue instead of
Back and Reverse), the horizontal position (which can also
be set by dragging the button to the right) and the reference
function (using Events Editor ShowNextPage rather than
ShowPreviousPage can be set). In just a few steps we have
inserted a second button :
682
Chapter 10
Tutorial
Chapter 10
683
Tutorial
684
Chapter 10
Tutorial
Finally we choose the color blue for the AreaColor and for the
BorderColor; for the border we choose as a width dimension 3
pixels and as a style 3D bump.
Chapter 10
685
Tutorial
686
Chapter 10
Tutorial
Chapter 10
687
Tutorial
Our pop-up is now ready to accept objects placed in it. As already mentioned, we will start by inserting a label by clicking
on
in the toolbar and drawing its outline inside the pop-up.
688
Chapter 10
Tutorial
Chapter 10
689
Tutorial
690
Chapter 10
Tutorial
(see chap. 10, Configuring the Boot page 665) and then we
go on to create pages that use complex controls.
Editing the Start page
When a new project is created, POLYMATH defines a default
page in it. This is initially empty but can, naturally, be edited
by the programmer who can also add an unlimited number of
pages to the project. The ways of navigating within these pages are defined by the programmer using the many made available by the application (buttons with predefined functions,
Scripts, user checks etc.).
To edit the default page, we double-click on it in the Project
Explorer :
At this point the editing masks for the page appear in the work
area. We move to the Fields mask that shows a preview of how
the page will appear in runtime. Now just drag the object into
the page required (the positions can be modified with greater
precision by operating the Properties Editor for each individual
object). Naturally, the first time the page preview is accessed
it will appear completely empty :
Chapter 10
691
Tutorial
You can now decide whether to display or remove the grid inside the page by clicking on the
icon in the toolbar.
Introducing a frame
We begin editing the page by introducing the frame we created in Phase 11: we select the frame using Project Explorer and
drag it into the page as indicated in the figure below :
692
Chapter 10
Tutorial
same way that we inserted the frame, in other words by dragging (the quickest method) or we can use another procedure
as set out below. In the toolbar we click on the image icon
and trace the outline of the area that will take our image on
the page :
Chapter 10
693
Tutorial
694
Chapter 10
Tutorial
In the window that opens we assign the value 1 for the image
eng and 2 for the image ita. The IDs of the project languages are shown as these latter are created (Phase 2); take care
that they correspond when assigned to items in an image list
(or text list when necessary).
Finally we also change some graphic details like the color of
the area (blue) and the border (white).
Chapter 10
695
Tutorial
696
Chapter 10
Tutorial
We then move to the Colors mask and set the color green for
the low level, orange for the middle level and red for the highest level. Finally we click on Close to confirm the changes
made.
Chapter 10
697
Tutorial
ample, the system gives the user level 10 until the log-in has
been performed. This means that if a user who has not logged
in (or with level greater than 5) tries to access the potentiometer (that is, tries to change the value of num_pezzi) the login window will automatically be displayed to make it possible
to perform the operation.
We need now only define the graphic details (as we have just
seen in the case of other objects) relating to the color of the
area, of the border and of the indicator (needle) of the value.
For example, in our project we set the color blue for the border
and the internal area, 5 for the border size with 3D Etched as
the style. The last step is to edit the indicator so that it will be
displayed in yellow. The preview of how the potentiometer will
appear is as below :
698
Chapter 10
Tutorial
Selecting the field just created, we move to the Properties Editor and specify the check variable (num_pezzi, the same one
that the potentiometer is monitoring) and the appropriate text
list (TextList) :
Chapter 10
699
Tutorial
We also have to specify the graphic properties of the label relating to the dynamic text using the same methods as already
seen for all the other objects we have added up to now (using
the Properties Editor).
Phase 14 Using complex
controls
In this way all the tools defined in the frame are again made
available to us in this page :
700
Chapter 10
Tutorial
Chapter 10
701
Tutorial
702
Chapter 10
Tutorial
While the check buttons are being edited, the only difference
from standard buttons is that the events cannot be changed.
With POLYMATH each already has assigned to it a predefined
function).
The next section will describe how to edit the basic checking
element, the table grid.
Editing the grid
Remaining in the edit mask contained within the control area,
select the grid and open the Properties Editor
Chapter 10
703
Tutorial
704
Chapter 10
Tutorial
Chapter 10
705
Tutorial
Internal editing takes place as with the other complex controls: just double-click on the area of the trend to be able to
edit :
706
Chapter 10
Tutorial
In this case, too, it will be possible to choose from the lefthand list the buttons and fields to be displayed on the Trend
simply by clicking on them (if the button chosen has already
been inserted, it will be removed).
For example, we insert the Zoom and GoTo buttons that allow
us to select the position of the graph. For each of the buttons
inserted we can edit their respective graphic properties, trying
always to maintain a homogeneous style within the project.
Chapter 10
707
Tutorial
We now change the representational properties of the horizontal value scale, choosing tenths of a second; we choose
dark blue as the color and, finally, a value interval of 1 :
We leave all the other values unchanged except for the colors
of the dividing lines that we set as white :
708
Chapter 10
Tutorial
The final option requires great care. In the Pens field we click
on the
button and a new configuration window appears :
Chapter 10
709
Tutorial
Phase 16 Compilation
and Download
We have now finished editing a simple project that uses all the
basic functions offered by POLYMATH. At the end of this tutorial, the reader will be able to be more familiar with the application and ready to create projects with the sure knowledge
of how to take full advantage of the numerous functions available.
Once the edit phase is over, before seeing the results of our
work, we must compile the relevant files and download them
onto the panel.
To start the compilation, in the toolbar click on the
icon.
The compilation starts straight away and the messages relating to its status will appear in the Log View under the Compilation mask :
710
Chapter 10
Tutorial
The parts needing updating are highlighted in pink. In addition, the support and the destination path of the files in the
terminal can be changed. In our case we will leave everything
unchanged and click on Update only oldest to only update the
project. If you also want to download the firmware for the first
time, you are advised to click on Update all.
Chapter 10
711
Tutorial
712
Chapter 10
Tutorial
Chapter 11
713
11.
Remote
Desktop
ESA puts at the user's disposal an application that can be bought separately (ESA order code: "PCREMOTEACCESS") or that
can be installed with the POLYMATH 1.60 version.
The application which we will call "Remote Desktop" allows to
have on the PC an identical vision of the terminal display where the project is found.
Installation and
registration
714
Chapter 11
Available functions for Remote
connection from the PC
Use of Remote
Desktop
Chapter 11
715
The first time the project is transferred with the "Remote Desktop" function enabled, the user will be requested to re-start
the terminal :
716
Chapter 11
Available functions for Remote
connection from the PC
Chapter 11
717
718
Chapter 11
Available functions for Remote
connection from the PC
The following image will appear, from this image you can
obtain the IT IP address (in our example the IP address is
192.168.100.1) :
Chapter 11
719
720
Chapter 11
Available functions for Remote
connection from the PC
1 - Click "Control panel" :
Chapter 11
721
At this point, the "Password" field (on the PC) can be filled out inserting the same one set on the terminal
(1234).
Assign the "Refresh Time" (it establishes in how much
time the image that appears on the PC video will be
updated. Normally 0.5 sec. is a good solution).
Click "Connect". The image displayed on the terminal
will appear on the PC :
FTP Server
Another important function that ESA puts at the user's disposal (starting with the POLYMATH 1.60 version), is the "FTP
Server".
The "FTP" acronym means "Files Transfer Protocol". It gives
the user the possibility to enable and disable the "FTP Server"
service of the panel from any other device (PC,XS,IT) connected to the network.
This function is very useful when it is necessary to write, cancel or modify data on the terminal easily from a remote access.
The remote access disks are the following :
722
Chapter 11
Available functions for Remote
connection from the PC
FTP Server features
From the ESA terminal, click on "Control panel" :
Chapter 11
723
In this way, besides the folder reserved by default (My Device\Hard Disk\FTP), a further memory space than can be used
remotely can also be accessed.
At the end of the configurations just described, click "OK" to
make them effective.
724
Chapter 11
Available functions for Remote
connection from the PC
Passthrough
Another important function that ESA puts at the user's disposal (starting with the POLYMATH 2.10 version), is the Passthrough.
Passthrough refers to the possibility of downloading or uploading the program of a PLC connected to one of our operator
panel serial ports in the IT range. This function can be obtained by having the user's PC staying directly connected to the
operator panel using the ETHERNET port, in practice it is possible to be connected to the PLC using the same PLC programming SW.
Note: The Passthrough software is compatible with platforms: Windows 2000, Windows XP, Windows Vista and Windows 7.
A field has been inserted inside Polymath (double click on "Panel type" inside "Explore Project ") to enable this function
when user is downloading the project :
Based on panel type used in project, user can use the "Passthrough" function by enabling one of the connection ports
available in the "Enable Passthrough" sub mask :
Chapter 11
725
Note : When user chooses item SP1, only the SP1 port is enabled for
Passthrough, when user chooses item SP2, only the SP2 port is enabled for Passthrough. The SP2 field is editable only when panel has
two serial ports.
In order to be used, the "Passthrough" function requires a software that ESA makes available to users in the Polymath setup
DVD (see chap. 2, Installing POLYMATH page 9), in the Polymath Suite menu, under the "Install ESA Passthrough" item,
the software is installed in the same directory as Polymath; after it is installed, the software allows establishing a connection
between the PLC development tool and the PLC connected to
the IT panel.
To be able to do this, virtual serial ports must be created.
The ESA Passthrough software allows the user to choose which port to use in order to communicate and to download or
upload the PLC program.
Note: It is possible to use Passthrough only with OMRON and PANASONIC devices
726
Chapter 11
Available functions for Remote
connection from the PC
After the ESA Passthrough software is installed, a configuration window opens below by clicking on the new icon "ESA
Passthrough" which is on the PC Desktop :
Chapter 11
727
Inside the Option menu, user can choose between the available languages :
Inside the "?" menu, user can see the software version installed on PC :
728
Chapter 11
Available functions for Remote
connection from the PC
After having Connected the ETH cable and having inserted the
correct parameters, application is connected to the IT panel
by using the "Connect" key
During Connection, a dialog box window with relative data
connection (address, IP, errors, ...) opens, using the "Disconnect" key the connection can also be interrupted :
Chapter 11
729
User has to click on the "Stop" key to interrupt the Passthrough mode :
730
Chapter 11
Available functions for Remote
connection from the PC
After pressing the "Stop" key user interrupts the "Passthrough" mode and the window can be closed :
Chapter 12
731
Panels network
12.
Panels network
Create a new project for the first server panel, connecting the
desired device and develop it as per a normal project taking
care to check the box "allow the tag value to be visible on the
network".
732
Chapter 12
Panels network
Chapter 12
733
Panels network
Click on
the three points at the end of the white box to add,
by means of the normal window of Windows, the first project.
Following click on Add and insert the other three projects
developed previously.
734
Chapter 12
Panels network
Make sure that in the section "share tag" the check "Enable
share tag device" is enabled
Shared tags password: a password can be determined to
protect the shared tags
Shared tags gate: the gate for the shared tags can be
determined
At this point, double click on the first client tag and using the
section link associate the client tag with that of the server.
Chapter 12
735
Panels network
736
Chapter 12
Panels network
A.
737
Description
Type
String
SYS_Machine
Name
SYS_IPAddress
IP address of terminal
String
SYS_OSName
String
SYS_Screen_Hor_
Dim
Int
SYS_Screen_Vert
_Dim
Int
String
SYS_Project
Version
SYS_Author
String
SYS_Author_Org
String
738
Description
Type
SYS_Project_
Name
String
SYS_AlarmPath
String
SYS_RecipePath
String
SYS_TrendPath
String
SYS_UsrLog
String
SYS_PageNum
Int
SYS_UserNum
Int
SYS_TimerNun
Number of timers
Int
SYS_Pipelines
Num
Int
SYS_PWDDefault
Int
SYS_Font
String
Int
Int
SYS_LanguageX
SYS_CurrentPage
String
SYS_Page
String
SYS_ShowFocus
Boolea
n
SYS_Script
String
SYS_Language
Num
739
Description
Type
Long
Int
SYS_DateAnd
Time
SYS_AlarmNotOff
Int
SYS_AlarmNot
Ack
Int
SYS_History
Warning
Boolea
n
SYS_HistoryFull
Boolea
n
SYS_BufferFull
Boolea
n
SYS_AlarmNum
Int
Int
SYS_RecipeNum
Int
SYS_RecipeXNum
SYS_CurrentUser
String
SYS_CurrentLevel
Int
String
SYS_Current
Language
740
Description
Type
SYS_Current
LanguageID
ID of current language
Int
Boolea
n
SYS_TimerXYZ
Int
SYS_ContTimer
XYZ
SYS_LastError
Severity
Int
SYS_LastError
Module
Int
SYS_LastError
Message
Int
SYS_LastError
Text
String
SYS_ReportPage
Int
SYS_ReportPages
Int
String
SYS_ReportPath
String
SYS_DM_Name
String
True if DM is active
Boolea
na
SYS_DM_Error
String
SYS_DM_DBName
String
SYS_DM_Groups
Num
Long
SYS_ReportName
SYS_DM_Active
741
Description
Type
SYS_DM_Items
Num
Long
SYS_RCS_DB
Name
String
SYS_RCS_Status
Int
SYS_RCS_FW
Name
String
SYS_RCS_FW
Version
String
SYS_RCS_Hw
Version
String
SYS_RCS_BT
Version
String
SYS_RCS2_Status
Int
SYS_RCS2_Fw
Name
String
SYS_RCS2_FW
Version
String
SYS_RCS2_HW
Version
String
SYS_RCS2_BT
Version
String
SYS_NATE_
Status
Int
SYS_NATE_FW
Name
String
SYS_NATE_FW
Version
String
SYS_NATE_HW
Version
String
SYS_NATE_BT
Version
String
742
Description
Type
SYS_COM1_
DriverName
String
SYS_COM1_
DriverStatus
String
SYS_COM1_
DriverPresent
Boolea
na
SYS_COM1_
DriverVersion
String
SYS_COM1_
DriverAddress
String
SYS_COM2_
DriverName
String
SYS_COM2_
DriverStatus
String
SYS_COM2_
DriverPresent
Boolea
na
SYS_COM2_
DriverVersion
String
SYS_COM2_
DriverAddress
String
SYS_ETH_Driver
Name
String
SYS_ETH_Driver
Status
String
SYS_ETH_Driver
Present
Boolea
na
SYS_ETH_Driver
Version
String
SYS_ETH_Driver
Address
String
SYS_ETH2_Driver
Name
String
SYS_ETH2_Driver
Status
String
743
Description
Type
SYS_ETH2_Driver
Present
Boolea
na
SYS_ETH2_Driver
Version
String
SYS_ETH2_Driver
Address
String
SYS_ETH3_Driver
Name
String
SYS_ETH3_Driver
Status
String
SYS_ETH3_Driver
Present
Boolea
na
SYS_ETH3_Driver
Version
String
SYS_ETH3_Driver
Address
String
SYS_ETH4_Driver
Name
String
SYS_ETH4_Driver
Status
String
SYS_ETH4_Driver
Present
Boolea
na
SYS_ETH4_Driver
Version
String
SYS_ETH4_Driver
Address
String
744
B.
745
Description
ClearAlarmHistory
ExportAlarmHistory
ExportActiveAlarms
746
Description
UserLogin
UserLogout
ChangeUserPassword
Changes the password of the user currently logged-in; has no effect if no user is logged on when pressed.
ExportUserLog
Description
LoadRecipe
747
Description
DownloadRecipe
Buffer
DownloadRecipe
SaveRecipeBuffer
Saves the recipe buffer; POLYMATH requires the type of recipe (see chap. 5,
Creating and changing a Recipe type
page 210) to which this command refers to be specified.
ClearRecipeBuffer
Cancels the buffer containing the recipes; may be useful to insert a button
with this function near an alarm history table (see chap. 5, Creating and
changing a Recipe type page 210).
DeleteRecipe
Cancels one or more recipes; POLYMATH requires the type of recipe (see
chap. 5, Creating and changing a Recipe type page 210) to which this command refers to be specified. By
pressing in runtime the key associated
with this function, the list of the recipes of the type defined is provided and
the operator can choose which recipe
to download.
UploadBufferRecipe
748
Description
ExportRecipe
ImportRecipes
ExportRecipeType
ExportRecipeAllTypes
StopRecipeTransfer
Ends recipe transfer; POLYMATH requires the type of recipe (see chap. 5,
Creating and changing a Recipe type
page 210) to which this command refers to be specified
StopAllRecipe
Transfers
749
Description
ShowNextPage
ShowPreviousPage
ShowPageName
ShowPageNumber
ShowPreviousOpened
Page
CloseCurrentPopup
Page
ClosePopupPage
Name
ClosePopupPage
Number
CloseAllPopupPage
ShowHelp
Shows POLYMATH-defined Help relating to the page (full or pop-up) currently being displayed (see chap. 5,
Help pages page 173 and see chap.
5, Help pages page 173)
750
Description
ShowFocus
HideFocus
Description
ChangeNextLanguage
Changes the project language currently being used to the next one in the list
defined in POLYMATH (see chap. 5,
Languages page 166); all the elements subject to translation are displayed in the new language.
ChangeLanguage
Changes the project language currently being used to the defined one; all
the elements subject to translation are
displayed in the new language.
ExitRuntime
Minimize
LightUp
LightDown
LightSet
751
Description
RunApplication
It launches an application that has been installed on the device (PC, XS)
ShowCalculator
It shows calculator
ShutDown
DownloadPanasonic
PlcProgram
ChangeModbusSlave
Address
RunExcel
RunInternetExplorer
RunMediaPlayer
RunPDF
RunWord
752
Note: The "Run" functions allow to launch applications such as "Excel" , "Internet Explorer" , "Media Player" , "Acrobat Reader"
and "Word" . These functions are only available on ESA terminals with "Windows CE Professional Plus" license (for example in
code IT110T1112 the "Professional Plus" license can be identified
by "1" in position "7" of the code).
Note: The "Run Application" function, that can be used only with PC
and XS, allows launching an external application; it is possible to
directly insert path to be executed in order to open a file (1) in the
configuration mask, otherwise it is possible to look for the executable file (".exe") of the application to be launched using Windows
explorer (2).
753
(2) :
Description
TrendAcquireSample
754
Description
TrendExport
TrendEnable
Enables acquisition of the trend indicator; the trend buffer the command relates to must be defined as an input
parameter (see chap. 5, In runtime
the system supplies the support for the
acquisition and accumulation of numerical values and for their graphic
presentation in the form of a trend
curve. page 221)
TrendDisable
Disables acquisition of the trend indicated; the trend buffer that the command relates to must be defined as an
input parameter (see chap. 5, In runtime the system supplies the support
for the acquisition and accumulation of
numerical values and for their graphic
presentation in the form of a trend
curve. page 221)
TrendReset
Clears the buffer of the trend indicated; the trend buffer that the command
relates to must be defined as an input
parameter (see chap. 5, In runtime
the system supplies the support for the
acquisition and accumulation of numerical values and for their graphic
presentation in the form of a trend
curve. page 221)
Description
SetBit
755
Description
ResetBit
ToggleBit
Set
Add
Used to increase a variable by one value; must indicate the variable to which
the command and the increase value
should be applied.
Subtract
Used to decrease a variable by one value; must indicate the variable to which
the command and the decrease value
should be applied.
And
Or
Xor
756
Description
StartPipeline
StopPipeline
Stops the pipeline defined from working; in POLYMATH the name of the
Pipeline to be stopped must be specified.
WritePipeline
Description
StartTimer
Starts the count of the selected Timers; need to specify the name of the
timer to which the command refers
(see chap. 5, Timers page 274).
StopTimer
Starts the count of the selected Timers; need to specify the name of the
timer to which the command refers
(see chap. 5, Timers page 274).
SuspendTimer
SetTimerValue
757
Description
PrinterSetup
HardCopy
ReportPrint
ReportPrintSave
ReportSave
This function saves the Report contents into an PDF file; specify the name
of the Report to be printed and the
name of the PDF file in which the contents of the Report will be saved (if the
file already exists, the contents will be
overwritten).
758
Description
DataLogAcquire
Sample
DataLogExport
DataLogEnable
DataLogDisable
DataLogReset
Description
SendMsg
Sends notification messages to a previously created user list via email, SMS
or Proxy (see chap. 5, Remote Notifications page 246)
759
Description
SetManual
Temperature
760
C.
761
The terminal can be set to write information regarding its status and functioning onto defined memory areas. This information can be used by the device while it is carrying out its work.
Unlike in the case of command areas, here the panel supplies
information to the device. There are four types of status information that the terminal can write to these memory areas:
status of VT: informs the device of the display and operating status of the terminal.
status of keyboard
status of recipes (new style)
status of recipes (old style - VTWIN-compatible mode)
The memory area reserved for the status area will depend on
the type of information to be supplied by the terminal: the VT
status requires 6 Words, the Keyboard status 2 Words and the
Recipes status areas are 2 Words and 1 Word respectively.
In POLYMATH, the status areas can be defined in the course
of the general configuration of the panel (see chap. 5, Exchange areas a pag. 132).
VT Status area
Description
762
Description
VT_STATUS values
Tabella 2: Meaning of VT_STATUS bit values
Bit
Description
EDITING_MODE: set at 1 when any active base page field is in editing mode
ALARM_BUFFER_WLEVEL: set at 1 if
the alarm history has reached its
threshold (percentage determined by
the maximum capacity available)
763
Description
CONTEXT_VALUE values
Tabella 3: Meaning of CONTEXT_VALUE bit values
Bit
Description
Default value
Keyboard
status area
Status area of
recipes - new
style (noncompatible
mode)
764
Status area of
recipes - old
style
(compatible
mode)
Bit
Description
14
15
Description
13
14
15
D.
765
Description
766
Description
Parameters
PARAMETER_1:sequence ID
PARAMETER_2:page ID
PARAMETER_3:
PARAMETER_1:page ID
PARAMETER_2:
PARAMETER_3:
PARAMETER_1:index tab
PARAMETER_2:
PARAMETER_3:
PARAMETER_1:language ID
PARAMETER_2:
PARAMETER_3:
767
Description
Parameters
14
PARAMETER_1:
PARAMETER_2:
PARAMETER_3:
15
PARAMETER_1:
PARAMETER_2:
PARAMETER_3:
16
Sets time specified in parameters; parameters contain time in BCD with the
format HHmmss00
PARAMETER_1: HHmm
PARAMETER_2: ss00
PARAMETER_3:
17
Sets date specified in parameters; parameters contain date in BCD with the
format DDMMYYYY
PARAMETER_1: DDMM
PARAMETER_2: YYYY
PARAMETER_3:
18
PARAMETER_1: trend ID
PARAMETER_2:
PARAMETER_3:
PARAMETER_1:
PARAMETER_2:
PARAMETER_3:
PARAMETER_1: syncro_cmd
PARAMETER_2:
PARAMETER_3:
20
Recipe synchronization:
syncro_cmd is bit-structured:
bit 15: confirms transfer
from VT to PLC
bit 14: confirms end of
transfer from VT to PLC
bit 13: transfer time-out
elapsed
PARAMETER_1: name (2
char)
PARAMETER_2: name (2
char)
PARAMETER_3: type_id
21
19
768
Description
Parameters
PARAMETER_1: name (2
char)
PARAMETER_2: name (2
char)
PARAMETER_3: type_id
22
PARAMETER_1: name (2
char)
PARAMETER_2: name (2
char)
PARAMETER_3: type_id
23
26
PARAMETER_1: pipeline_id
PARAMETER_2:
PARAMETER_3:
27
PARAMETER_1: trend_id
PARAMETER_2:
PARAMETER_3:
28
PARAMETER_1: trend ID
PARAMETER_2:
PARAMETER_3:
29
PARAMETER_1: trend ID
PARAMETER_2:
PARAMETER_3:
PARAMETER_1: trend ID
PARAMETER_2:
PARAMETER_3:
PARAMETER_1:
PARAMETER_2:
PARAMETER_3:
30
36
769
Description
Parameters
37
Requests (HARDCOPY)
printing of the screen; if text
mode flag is at 1 printing
will be in text mode, otherwise in graphic mode
PARAMETER_1:
PARAMETER_2:
PARAMETER_3:
39
PARAMETER_1:
PARAMETER_2:
PARAMETER_3:
43
PARAMETER_1:
PARAMETER_2:
PARAMETER_3:
46
PARAMETER_1: flag
PARAMETER_2:
PARAMETER_3:
50
PARAMETER_1: recipe_id
PARAMETER_2: type_id
PARAMETER_3:
51
PARAMETER_1: recipe_id
PARAMETER_2: type_id
PARAMETER_3:
52
PARAMETER_1 : pipeline id
PARAMETER_2 :
PARAMETER_3 :
53
PARAMETER_1 : pipeline id
PARAMETER_2 :
PARAMETER_3 :
54
PARAMETER_1 :
PARAMETER_2 :
PARAMETER_3 :
38
770
Description
Parameters
55
PARAMETER_1 :
PARAMETER_2 :
PARAMETER_3 :
PARAMETER_1 : buffer id
PARAMETER_2 :
PARAMETER_3 :
58
PARAMETER_1 : buffer id
PARAMETER_2 :
PARAMETER_3 :
59
PARAMETER_1 : buffer id
PARAMETER_2 :
PARAMETER_3 :
60
PARAMETER_1 : buffer id
PARAMETER_2 :
PARAMETER_3 :
56
57
Note: Commands number 54, 55 and 56 are used only for terminals
with backlight LED.
Description
Parameters
14
PARAMETER_1: HHmm
PARAMETER_2: ss00
PARAMETER_3:
15
PARAMETER_1: DDMM
PARAMETER_2: YYYY
PARAMETER_3:
Command area
for New Style
(non
compatible)
recipes
771
Command area
for Old style
(compatible)
recipes
Bit
Description
If the bit is high (1) indicates request for nonsynchronized transfer from panel to device
If the bit is high (1) indicates request for synchronized transfer from panel to device
772
E.
773
774
ter on page
); in the file selection window, look through
the files with. vts extension.
775
Note: when editing a project for VTxxxW terminals with POLYMATH, a more modern and simpler interface is offered, which allows to
make use of useful tools in the editing phase. However, new functionalities at Runtime level are not introduced.
Esplora
Progetto
Project Explore
The "Esplora Progetto" (Project Explore) contains all of the data relative to the project being edited. Its functioning has
already been specified in the relative section of this manual
(see chapter , "
" on page
).
In general, the editing windows of each element of the "Esplora Progetto" (Project Explore) will have the same options contained in the VTWIN application windows.
776
F.
777
Use the
icon to change path where is placed the new OS
image to download to the terminal.
778
779
780