API 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 4.1.3 Global constants 4.1.3.1 Global_Version All libraries have a specific version. This version is shown in the PLC library repository too. A global constant contains the library version information:
VAR_GLOBAL CONSTANT stLibVersion_Tc2_SPA : ST_LibVersion; END_VAR To compare the existing version to a required version the function F_CmpLibVersion (defined in Tc2_System library) is offered. Use only this query All other possibilities known from TwinCAT 2 libraries to query a library version are obsolete. TF3900 22 Version: 1.1.1