slIdx914C_Hysteresis field in Cos404_AI_Config_ts: hysteresis for span and error limit detection (AI function block)
Changed
internal function ProcessLimits() reworked: status bits NOT_VALID, POS_OVERLOAD, NEG_OVERLOAD, and ERROR_LIMIT are now cleared only when the input has moved back past the threshold by the configured hysteresis amount
Fix scale offset (index 6127h) for int32_t data type: offset is now multiplied by powers of 10 based on the number of decimal digits of the process value (ubIdx6132_DecimalDigitsInt32PV)
Fix int32_t-to-int16_t divisor calculation: now derived from the difference between int32_t and int16_t decimal digit counts (separate limits COS404_AI_DECIMAL_DIGITS_INT16_MAX and COS404_AI_DECIMAL_DIGITS_INT32_MAX)
CO default parameter macros (COS_DS404_CO_XP1_DEFAULT, COS_DS404_CO_XP2_DEFAULT, COS_DS404_CO_TN1_DEFAULT) wrapped in preprocessor guards to allow user-side override