beckhoff TS3900 — 7.2.2 E_SPA_ErrorCode

Data types 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. The time required for a calculation strongly depends on the choice of function code. 7.2.2 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 [ } 13] in the event of an error. TS3900 19 Version: 1.1