Variables andKNX™ group addresses
P.
167 of 349
Initga
Definition
●
initga(
GroupAddress
)
Arguments
●
GroupAddress
: Imported or manual KNX
TM
group address
●
The groupaddress can be optionally negated using the !-Sign.
Effect
●
The effect of this function is same as if the
GroupAddress
was listed in the [
InitGA
]-
section.
●
The function can be used top-level only, which means, that it can not be used in a then or
else branch of an if-query.
●
The function can also be used in related to the function
comobject
(p. 208)
Data type result (Return)
●
none
Alternatively to the syntax above the following is possible, too:
Example
[EibPC]
// Temperature manually defined
initGA('2/3/4'f16)
initGA(“Heating-2/3/4”)
initGA(“Lights-2/3/2”)
if “Lights-2/3/2” and '2/3/4'f16<10.0 then write(“Heating-2/3/4”,100%) endif
Example 2 - comobject
The following example shows the use in combination with the function
comobject
.
[EibPC]
initga(!"Licht KG Treppe-0/0/2")
initga(comobject("Licht EG -Decke Flur-0/0/14","Licht EG Speis-0/0/18"))
Both the use of negations and the function
comobject
are possible combined with the function
initga
.
This has significant advantages of the programming of macros.
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]