Commands and functions
P.
254 of 349
Setpeslider
Timebufferconfig
Timebufferadd
Definition
●
function
setpeslider
(
ID, Value, Icon, State, PageID
)
Arguments
●
ID, Icon, State, PageID
of data type u08
●
Value
of data type f32
Effect
●
The function addresses the page-related peslider at the
ID
of the Page
PageID
and sets it
to the value of
Value.
If
ID
occurs multiple times, then all elements of this ID on the
website with the
PageID
are addressed.
●
When calling the function, the icon is also placed on the icon with the number (type u08)
Icon
.Possible graphics are shown on page 291 and the graphics are selected via pre-
defined values (u08). In addition, predefined constants facilitate the selection. The
assignment of this is listed in Table 2 (Page 291).
●
Each icon has at least the states ACTIVE (== 1), INACTIVE (== 2), DARKRED (== 0) and
brightred (== 9). One of these states can be passed as the argument
State
. An overview of
the possible states are Table 3 (Page 291).
Datentyp Ergebnis (Rückgabe)
●
no
Definition
●
Function
timebufferconfig
(
ChartBufferID, MemTyp, Laenge, DataTyp
)
Arguments
●
ID
of data type u08
●
MemTyp
Memory Type, with "0" ring memory and "1" represents a linear memory.
●
Length
of the data in the puffer. Maximum 65535 records with max. 4 bytes in length. The
data type has to be u16.
●
The memory is of data type
DataTyp
of the input object.
●
Effect
●
There is a pair of values buffer is created or configured here. It can be set using the
memory type, if this becomes full after filling with the values or if the oldest value is
discarded.
●
CAUTION: The EibPC has a RAM of 64MB, of which about 40 MB can be used by the
user maximum.
To ensure proper operation, the buffer and arts must be sized so that the memory of the
EibPC is not overloaded. Using the function to buffer 255 for storing history data can be
defined. The following applies for the necessary storage capacity = (number of values) * 12
Thus, for example, has a buffer with 65000 values about 780 kB.
●
You can store them in the Flash buffer at any time, so when you restart the values are not
lost, see time buffer gates 256 and timebufferread 256.
Data type result (Return)
●
Values: 0 success, 1 Error: exceeded maximum number of time buffers, 2 Error: time
buffer already defined.
Detailed Example: P. 115
Definition
●
Function
timebufferadd
(
ChartBufferID, Daten
)
Arguments
●
ID
of data type u08
●
Data
Value (max 32 bits), which has to be inserted into the memory at the end.
●
Effect
●
There is a pair of values inserted into the buffer at the end of time here.
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]