E_SPA_ErrorCode
Die Enumeration E_SPA_ErrorCode definiert konstante Werte für die unterschiedlichen Fehler, welche bibliotheksintern generiert werden können.
Diese Werte finden sich in der Ausgangsvariablen iErrorCode wieder, welche im Fehlerfall am Ausgang des SPS Funktionsbausteines FB_SPA den entsprechenden Integerwert anzeigt.
(* enumeration for error codes returned as iErrorCode output of FB_SPA
////////////////////////////////////////////////////////////////////////
// Note: A non-zero return error code indicates that one of the //
// input values did not pass simple bounds tests. //
//////////////////////////////////////////////////////////////////////// *)
TYPE E_SPA_ErrorCode :(
eSPA_ERR_NoError := 0,
eSPA_ERR_InvalidYear,
eSPA_ERR_InvalidMonth,
eSPA_ERR_InvalidDay,
eSPA_ERR_InvalidHour,
eSPA_ERR_InvalidMinute,
eSPA_ERR_InvalidSecond,
eSPA_ERR_InvalidDeltaT,
eSPA_ERR_InvalidTimezone,
eSPA_ERR_InvalidLongitude,
eSPA_ERR_InvalidLatitude,
eSPA_ERR_InvalidElevation,
eSPA_ERR_InvalidPressure,
eSPA_ERR_InvalidTemperature,
eSPA_ERR_InvalidSlope,
eSPA_ERR_InvalidAZMRotation,
eSPA_ERR_InvalidAtmosRefract,
eSPA_ERR_InvalidFunctionCode
);
END_TYPE