- 15 -
5
Appendix A – Sample program
5.1
Notes EIB table
All actuators to be switched/set/controlled are to be introduced to the gateway. This is achieved with a table
structure.
If this table is generated with a help file (i.e. ‘EIB_Table.AXI’) it must only be observed, that all entries are
edited, meaning the last Switch_Case command (default:) is really edited last. There is to be no gap in the
counter. For the entries itself the order is irrelevant.
Recommendation: Use the version with help function (
example 1
, see below). In this version less typing errors
will occur and the compiler can perform several checks.
Poll triggers are only entered, if the polling and polled addresses are already entered. We recommend entering
the poll triggers at the end.
Alternatively, a table may be loaded from the master’s Compact Flash. The syntax is identical with
SEND_COMMAND “ADD=”. The send command and device address are omitted (
example 3
, see below).
5.2
Notes for programming
Predefined
functions are available for control to generate the SEND_COMMANDs for the virtual device.
We recommend to always use the functions of the EIB_Tools.AXI include file instead of directly using
Send Commands (Appendix B). Less typing errors will occur and the compiler can perform several
checks.