Commands and functions
P.
217 of 349
Lighting scenes
Scene actuator - scene
Presetscene
Up to 64 scenes per scene function (“scene actuator”) can be stored and recalled. The number of
scene functions (“scene actuators”) is not limited - only by the number of maximum possible group
addresses in the ets.
Stored scenes also persist when interrupting the Enertex
®
EibPC's power supply or after changing
the application program. Only a change of the group addresses relevant to the scenes requires
resetting the scenes (menu E
IB
PC → D
ELETE
S
CENES
...).
Definition
●
Function
scene
(
GroupAddressSceneActuator
,
Act1, Act2, ...., ActN
)
Arguments
●
GroupAddressSceneActuator
of data type u08, the other arguments group addresses of
arbitrary data types
●
ActXX
, XX from 0 to max. 65000: A group address or variable (see Example
presetscene
p. 217).
Effect
●
A KNX
TM
scene actuator with the group address defined in
ActXX
(XX 1 to 65000) is
implemented. It can be accessed by means of KNX
TM
switches and an appropriate ETS
parametrization or via the below-mentioned functions
storescene
or
callscene
.
●
You can define an arbitrary number of scene actuators.
●
You can preset the scenes with
presetscene
p. 217.
Data type result (Return)
●
none
Note:
1.
It is possible to deactivate inputs differently in each scene number, see
presetscene
p.
2.
You can (like other functions) define an arbitrary number of scene actuators.
3.
Please see page 62 for detailed application information.
Example: Lighting scenes
You want to realize a scene actuator for a dimmer and a lamp.
Implementation in the user program:
scene(“SceneActuator-1/4/3“u08, “Dimmer-1/1/2“, “DimmerValue-1/1/3“, “Lamp-1/1/1“)
Definition
●
Function
presetscene
(
GroupAddressSceneActuator, SceneNumber, OptionOverwrite,
ValVar1,KonfVar1,[ValVar2,KonfVar2,..., ValVarN,KonfVarN])
Arguments
●
GroupAddressSceneActuator
and
SceneNumber
of data type u08
●
OptionOverwrite
of data type b01
●
ValVarXX
with the same data type as
Variable
respectively
GroupaddressActor
which is
defined in function
scene
●
KonfVar
of data type b01
Effect
●
Create default settings for the sceneactuator with the group address
GroupAddressSceneActuator
and
SceneNumber.
●
If
OptionOverwrite
is set to 1b01, an existing dataset will be overwritten on restart of the
programm. By a setting to 0b01, a previously saved scene is not pre-written.
●
SceneNumber
a value 0 to 63 of data type u08, which indicates the szene number, which
is to be pre-defined.
●
KonfVarXX,
XX from 0 to max. 65000,
indicates, if the corresponding input object is active
in this scene number. Active at 1b01, inactive at 0b01. If acitve, the Value
ValVarXX
is the
corresponding preset value.
Data type result (Return)
●
none
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]