Programming - First steps
P.
33 of 349
The task...
... and what is the problem?
Requirements:
- The Enertex
®
EibPC is installed in
the LAN (see page17).
- Enertex
®
EibStudio is configured
(LAN setup page 135).
The area "user program" is the
integrated
text editor for creating programs
This "program" must be copied or
manually entered into the area "user
program"
Distinguish:
0 and O
„Zero“ and letter „O“
You now want to program the following functionality in your KNX™ network:
If the switch is pressed "ON", the lamp will turn on and the dimmer will go to 80%.
If it goes to "OFF", will the lights go out.
Background:
As you know, this cannot be achieved with KNX™ programming by allocating group addresses, because the
switching actuator and the dimmer expects a binary value ("On or "Off"). This means, the switch has to trigger two
different telegrams. But with the switch, you can at least only trigger a telegram. Most switches do not even have the
option to send a percentage value to the bus. As simple a task this may seem: Without automation it is not solvable.
Perhaps you think at this example also of scene actuators. We will get down to this later.
By means of the Enertex
®
EibPC, this task is simple to solve. We presume you have the
documentation of the KNX network at hand (so you know which actuator is configured with which
address), but you have no access to the ets or the original records.
First, you run the Enertex
®
EibStudio. Then you will see a window as shown in Figure 2.
Figure 2: Enertex
®
EibStudio
Look for the white left and still empty area "Application Program". This area of the Enertex®
EibStudio represents an integrated text editor, because the application program is a simple text.
Back to the problem: One switch - two telegrams. Simply read through the following program, we
explain it step by step. But you should already be able to recognize: It cannot be more simple.
[EibPC]
if ('1/0/0'b01==EIN) then write('1/1/1'b01,EIN); write('1/1/2'u08,80%) endif
if ('1/0/0'b01==AUS) then write('1/1/1'b01,AUS); write('1/1/2'u08,0%) endif
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]