Commands and functions
P.
177 of 349
Reset of the time and the
date of the Enertex
®
EibPC
Writing the time and the date
of the Enertex
®
EibPC to the
KNX™ bus
Hour
Definition
●
Function
gettimedate
(
address
) with:
Arguments
●
1 argument of data type y64
Effect
●
The system clock and the system date of the Enertex
®
EibPC are overwritten with the time
and the date stored in
address
and thus reset.
Data type result (Return)
●
none
Note:
1.
There is no assignment of the form
a
=
gettimedate
(
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: GetTimeDate
Every six months, the system time and the system date is to be synchronized with a radio
clock existing in the KNX
TM
bus and to be reset.
Implementation in the user program:
if (month(1,1) or month(1,7)) then read(“RadioClock-1/2/3“) endif
if event (“RadioClock-1/2/3“) then gettimedate(“RadioClock-1/2/3“) endif
Definition
●
Function
settimedate
()
Arguments
●
none
Effect
●
The system time and system date are read from the Enertex® EibPC and assigned to a
variable as a value
Data type result (Return)
●
Data type y64
Example: SetDate
On the 1st day of each year, the address "RadioClock-1/2/1" is to be synchronized with the
system time and the system date of the Enertex
®
EibPC and to be reset.
Implementation in the user program:
if (month(1,1)) then write(“RadioClock-1/2/1“d24, settimedate()) endif
Definition
●
Function
hour
()
Arguments
●
none
Effect
●
The system time (hour) is stored in a variable
Data type result (Return)
●
Data type u08
Example:
Stop watch see page 178
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]