Programming - First steps
P.
56 of 349
Variant 2:
Replace after by delay
[EibPC]
if systemstart() then write('1/1/1'b01,OFF) endif
SwitchingOperation=OFF
Counter=0u32
EmptyString=$ Nothing yet! $c14
if event('1/0/0'b01) and (SwitchingOperation==OFF) then \\
SwitchingOperation=ON; \\
write('1/1/1'b01,ON); \\
Counter=1u32\\
endif
if (delay(SwitchingOperation==ON, 180000u64)) then
\\
write('1/1/1'b01,AUS);
\\
SwitchingOperation=OFF;
\\
write('1/2/2'c14,convert(Counter,EmptyString)) \\
endif
At this point, please note again: The number of delay timers used in the program is not limited. This
function can be used repeatedly. For each called delay function, a new object is created. Therefore,
the delay-functions do not limit each other in use. This is always true and also for all other functions
when programming with the Enertex
®
EibStudio.
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]