E_SPA_ErrorCode
TYPE E_SPA_ErrorCode :(
(* 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. //
//////////////////////////////////////////////////////////////////////// *)
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
The enumeration E_SPA_ErrorCode defines constant values
for the different errors that can be generated internally in the
library.
These values can be found in the output variable iErrorCode
again, which indicates the associated integer value at the output
of the PLC SPA function block FB_SPA in the event of an error.