E_SPA_FunctionCode

The enumeration E_SPA_FunctionCode defines constant values for the different functions, which can be executed with the function block FB_SPA. In addition to sun angles, sunrise and sunset can be calculated, depending on the selection. A detailed explanation of the terminology can be found on the overview page.

E_SPA_FunctionCode 1:

The time required for a calculation strongly depends on the choice of function code.

(* enumeration for function codes to select desired final outputs from SPA *)
TYPE E_SPA_FunctionCode :(
    eSPA_ZA,       (*calculate zenith AND azimuth     [default setting] *)
    eSPA_ZA_INC,   (*calculate zenith, azimuth, AND incidence         *)
    eSPA_ZA_RTS,   (*calculate zenith, azimuth, AND sun rise/transit/set values *)
    eSPA_ALL       (*calculate all SPA output values             *)
);
END_TYPE

eSPA_ZA :

If the function code eSPA_ZA is selected only the sun angles (zenith, azimuth, azimuth180) are calculated [DEFAULT].

eSPA_ZA_INC :

In addition to the sun angles the angle of incidence in relation to the specified surface is issued.

eSPA_ZA_RTS :

In addition to the sun angles, sunrise, solar apex and sunset is calculated.

eSPA_ALL :

All offered data are calculated and displayed at the output.