beckhoff TF3900 — 4.1.1.1 FB_SPA

API Outputs VAR_OUTPUT fZenith :LREAL; (* topocentric zenith angle [degrees] *) fAzimuth :LREAL; (* topocentric azimuth angle (eastward from north) [ 0 to 360 degrees] *) fAzimuth180 :LREAL; (* topocentric azimuth angle (westward from south) [-180 to 180 degrees]*) fIncidence :LREAL; (* surface incidence angle [degrees] *) fSuntransit :LREAL; (* local sun transit time (or solar noon) [fractional hour] *) fSunrise :LREAL; (* local sunrise time (+/- 30 seconds) [fractional hour] *) fSunset :LREAL; (* local sunset TIME (+/- 30 seconds) [fractional hour] *) bError :BOOL; (* error flag *) iErrorCode :UINT; (* error code *) END_VAR TF3900 19 Version:

1.1.1 Name Type Description fAtmos refract _ LREAL Refraction in the atmosphere can have a significant effect on the zenith angle of the sun, particularly for shallow sun angles. The input variable fAtmos refract is used as a _ correction factor for the atmospheric distraction at sunrise and sunset. A default value for this is 0.5667. eFunction E SPA FunctionCode _ _ [} 21] Via this enumeration value the type of calculations can be selected. For example, the calculation can be limited to the sun angles, if information on sunrise etc. is not required.