Commands and functions
P.
185 of 349
Elevation
Presun
Definition
●
Function
elevation
()
Arguments
●
None. However, the Enertex
®
EibPC should know the longitude and latitude of the
concerned location. These can be entered in Enertex
®
EibStudio (see page 184).
Effect
●
This function cyclically (time frame: 5 minutes) calculates the elevation angle of the sun in
degrees.
(Source: Wikipedia)
Data type result (Return)
●
Data type f32
Example 4: elevation
At 5:00, calculate the elevation angle of the sun at the location of the Enertex
®
EibPC.
The implementation in the user program then reads:
HAngle=0f32
if htime(5,00) then HAngle=elevation() endif
Note:
This function is needed in house awnings. In the library EnertexBeschattung.lib you will find detailed
examples.
Definition
●
Function
presun
(
hh,mm
)
hh
: hours (0... 23)
mm
: minutes (0... 59)
Arguments
●
two arguments of data type u08
Effect
●
Shows 1 to 0 in the specified time before chancing from day to night. The programm has to
know the geographics length an width of the specified location.
Data type result (Return)
●
Sun position, 1= Day, 0 = Night of data type u08
s=$$
if presun(1,30) then s=$Eine Stunde vor Sonnenaufgang$ endif
if !presun(0,20) then s=$20 Minuten vor Sonnenuntergang$ endif
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]