Programming - First steps
P.
81 of 349
By means of global elements, alarm
messages or time displays for every
page can be realized.
Control element and
selection
The
button
with
LightID
is global, it is identical on every page. Therefore, if you change its status icon
or status text line by
display
or
webdisplay
, respectively, it changes on all pages. This is different
with the local element
pbutton
with
PlugID
. On change of the group address ('1/2/5'b01), only the
element with
PlugID
and the page ID
CentralHeatingRoomPageID
(i.e. the element with
PlugID
on this
page) is changed. To achieve a change of the graphic or the text, respectively, here one has to use
the function
pdisplay
. We point it out again by way of the following figure:
Figure 38: Global and local (page-oriented) elements
When requesting the status by means of the functions
button
and
pbutton
, respectively, it has to be
differentiated between global and page-oriented elements (prefix „p“). The former function refers to
the state of a global button, the second to a page-oriented (=local) one.
The fundamental advantage of a global element is its property of being displayed identically on all
pages. This way, alarm messages and status displays (e.g. time) can be generated that are to be
utilized for all pages in the same manner. Solely by their appearance, global and local elements
cannot be distinguished.
This is true in the same way for all further elements the names of which differ in the prefix
p
.
The
mbutton
constitutes another interesting element (Figure 38).
To begin with, we look at its “global” variant. This element has two control levels.
1.
The button with symbol display on the left.
2.
A configurable listbox with up to 255 elements.
Figure 39:mbutton
The concept presents itself to the operator as follows: By pressing on the listbox, the control element
can be configured or selected, respectively. If the web page e.g. visualizes a room with four
switchable sockets, the socket to be switched when the button on the left is being pressed can be
selected here. By pressing the button, the requested action will be performed.
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]
page
:1
[CentralHeatingRoomPageID=1]
pbutton
: ID =1
[PlugID]
pbutton
: ID =1
[PlugID]
button
: ID =1
[LightID]
button
: ID =1
[LightID]
page
: 2
[BedroomPageID=2]
pbutton
: ID =1
[PlugID]
pbutton
: ID =1
[PlugID]
button
: ID =1
[LightID]
button
: ID =1
[LightID]
if button(LightID) …
… display(LightID .... )
if
button
(LightID) …
…
display
(LightID .... )
if pbutton(LightID,CentralHeatingRoom
PageID … ) …
… pdisplay(LightID ...,
CentralHeatingRoomPageID. )
if
pbutton
(LightID,CentralHeatingRoom
PageID … ) …
…
pdisplay
(LightID ...,
CentralHeatingRoomPageID. )
if pbutton(LightID,BedroomPageID … ) …
… pdisplay(LightID ..., BedroomPageID)
if
pbutton
(LightID,BedroomPageID … ) …
…
pdisplay
(LightID ..., BedroomPageID)