Commands and functions
P.
176 of 349
Reset of the date of the
Enertex
®
EibPC
Writing the date of the
Enertex
®
EibPC to the KNX™
bus
Definition
●
Function
getdate
(
Address
) with:
Arguments
●
1 Argument of data type d24.
Effect
●
The system clock of the Enertex
®
EibPC is overwritten with the time stored in
address
and
thus reset.
Data type result (Return)
●
none
Note:
1.
There is no assignment of the form
a
=
getdate
(
b
) possible (error message).
2.
The function will only be executed, if the function is in a then or else branch of an if
instruction.
Example: GetDate
All six months, the system date is to be synchronized with a radio clock existing in the KNX
bus and to be reset.
Implementation in the user program:
if (month(1,1) or month(1,7)) then read(“RadioClock-1/2/2“) endif
if event (“RadioClock-1/2/2“) then getdate(“RadioClock-1/2/2“) endif
Definition
●
Function
setdate
()
Arguments
●
none
Effect
●
The system date is read from the Enertex
®
EibPC. The return value is the time in the
format of type d24
Data type result (Return)
●
Data type d24
Example: SetDate
On the 1st day of each year, the address "Date-3/5/3" is to be synchronized with the date of
the Enertex® EibPC and to be reset.
Implementation in the user program:
if (month(1,1)) then write(“Date-3/5/3“d24, setdate()) endif
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]