Commands and functions
P.
186 of 349
Sunrisehour - hour at sunrise
Sunriseminute - minute at
sunrise
Sunsethour - hour at sunset
Sunsetminute - minute at
sunset
Definition
●
Function
sunrisehour
()
Arguments
●
none
Effect
●
The hour (0 to 23) at sunrise is returned.
Data type result (Return)
●
Data type u08
Definition
●
Function
sunriseminute
()
Arguments
●
none
Effect
●
The minute (0 to 59) at sunrise is returned.
Data type result (Return)
●
Data type u08
Example: Visualize the sunrise
Write the time at sunrise to the group address 1/4/4 (data type c14).
The implementation in the user program then reads:
if htime(sunrisehour(),sunriseminute(),0) then \\
write('1/4/4'c14, convert(sunrisehour(),$$c14)+$:$c14+convert(sunriseminute(),$$c14)) \\
endif
Definition
●
Function
sunsethour
()
Arguments
●
none
Effect
●
The hour (0 to 23) at sunset is returned.
Data type result (Return)
●
Data type u08
Definition
●
Function
sunsetminute
()
Arguments
●
none
Effect
●
The minute (0 to 59) at sunset is returned.
Data type result (Return)
●
Data type u08
Example: see the above example “visualize the sunrise”
if htime(sunsethour(),sunsetminute(),0) then \\
write('1/4/4'c14, convert(sunsethour(),$$c14)+$:$c14+convert(sunsetminute(),$$c14)) endif
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]