Commands and functions
P.
271 of 349
Configuration
compact
An example without „compact“
mode
generates a clearance under the 4-
way multi button
The design of the web server is integrated into the Enertex
®
EibPC in a fixed way. The scheme
according to page 265, Figure 9 can be extended to ten columns. The web server administers up to
60 (IDs from 0 to 59) web elements on one web page.
The configuration of the web server takes place in the section
[WebServer]
in the user program. For
this, the elements which are arranged in a line simply have to be - separated by one or more space
or tab characters - configured as follows. The compiler detects the number of elements per line and
configures the “checkerboard pattern” automatically (Figure 9). Each element must be indexed so
that it can be accessed by the user program via the respective functions.
Element
Compact
●
compact
(STATE)
Arguments
●
State value of 0 / 1 or ON/OFF
The web server is built in unit sizes. All elements fit into this grid or are integer multiples thereof, as
already explained in Figure 9 . Therefore, when a four-fold height element (e.g., mpchart) is
configured next to a simple-height element,
[
WebServer]
page(1) [$Demo$,$Compact$]
// the next command is default
compact(off)
// Two elements
mpchart(1) [DOUBLE, SXY]($Description1$,LINE) mpshifter(2) [$Basement$,$OG$][WEATHER, ICE, NIGHT, CLOCK]
$Multi$
a clearance is created in the representation as shown in Figure 11.
Figure 11: Clearance
When configuring the Web server, each line of the text configuration represents a web server display
line. In the "switched off" (compact (off)) mode, the elements of different heights are always arranged
in one line, that is, the actual line height of the representation is indicated by the max. Height of all
elements in the respective line. This creates the clearance in the web server. In other words, in the
representation additional non-visible elements are placed under the elements. Figure 12 shows this
"allocation" of the unit sizes (shown in blue) of the above web configuration.
Figure 12: Illustration of the unit sizes
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]