115 lines
4.3 KiB
ReStructuredText
115 lines
4.3 KiB
ReStructuredText
.. _safety_flags:
|
|
|
|
Safety Flags
|
|
============
|
|
|
|
The safety flags are represented in software by the following enums
|
|
|
|
.. doxygenenum:: safety_flag
|
|
|
|
The safety flags can be temporarily or permanent. Some temporary flags are reset automatically, once the error condition disappears. Others have to be explicitly cleared.
|
|
The safety weights (if a flag stops the PID controller, or triggers the panic mode) are configured by default as described below. However, it will be possible to override these weights by
|
|
setting config entries in the safety memory.
|
|
|
|
.. todo:: Change docu of config entires in memory
|
|
|
|
----------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
.. _safety_flags_adc_overflow:
|
|
|
|
ERR_FLAG_MEAS_ADC_OVERFLOW
|
|
--------------------------
|
|
|
|
``ERR_FLAG_MEAS_ADC_OVERFLOW`` is triggered in case of an overflow in the signal path of the measurement ADC. This should never happen unless there is a bug in the software.
|
|
|
|
========== ============= ============= ===========
|
|
persistent self-clearing Stops PID Panic Mode
|
|
========== ============= ============= ===========
|
|
yes no yes no
|
|
========== ============= ============= ===========
|
|
|
|
----------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
.. _safety_flags_adc_off:
|
|
|
|
ERR_FLAG_MEAS_ADC_OFF
|
|
---------------------
|
|
|
|
``ERR_FLAG_MEAS_ADC_OFF`` signals that the measurement ADC for the PT1000 sensor is deactivated. This flag is automatically cleared by the firmware
|
|
once the ADC is started.
|
|
|
|
========== ============= ============= ===========
|
|
persistent self-clearing Stops PID Panic Mode
|
|
========== ============= ============= ===========
|
|
no yes yes no
|
|
========== ============= ============= ===========
|
|
|
|
----------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
.. _safety_flags_adc_watchdog:
|
|
|
|
ERR_FLAG_MEAS_ADC_WATCHDOG
|
|
--------------------------
|
|
|
|
``ERR_FLAG_MEAS_ADC_WATCHDOG`` is used as a wire break detection mechanism. This flag is set when the PT1000 measurement ADC detects an invalid resistance measurement.
|
|
|
|
.. seealso:: :ref:`ADC Watchdog<firmware_meas_adc_watchdog>`
|
|
|
|
========== ============= ============= ===========
|
|
persistent self-clearing Stops PID Panic Mode
|
|
========== ============= ============= ===========
|
|
no no yes no
|
|
========== ============= ============= ===========
|
|
|
|
----------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
.. _safety_flags_adc_unstable:
|
|
|
|
ERR_FLAG_MEAS_ADC_UNSTABLE
|
|
--------------------------
|
|
|
|
``ERR_FLAG_MEAS_ADC_UNSTABLE`` is set after startup of the PT1000 measuremnt or after reconfiguring the filter settings.
|
|
|
|
.. seealso:: :ref:`firmware_meas_adc_filter`
|
|
|
|
========== ============= ============= ===========
|
|
persistent self-clearing Stops PID Panic Mode
|
|
========== ============= ============= ===========
|
|
no yes no no
|
|
========== ============= ============= ===========
|
|
|
|
|
|
.. _safety_flags_safety_mem_corrupt:
|
|
|
|
ERR_FLAG_SAFETY_MEM_CORRUPT
|
|
---------------------------
|
|
|
|
``ERR_FLAG_SAFETY_MEM_CORRUPT`` is set during the initialization of the controller, in case a corrupted safety memory is encountered.
|
|
In this case the error memory is reinitialized and the flag is set in the error memory. Afer a reboot it will stay asserted until the
|
|
safety backup memory is cleared
|
|
|
|
.. seealso:: :ref:`backup_ram`
|
|
|
|
========== ============= ============= ===========
|
|
persistent self-clearing Stops PID Panic Mode
|
|
========== ============= ============= ===========
|
|
yes no yes no
|
|
========== ============= ============= ===========
|
|
|
|
|
|
.. _safety_flags_stack:
|
|
|
|
ERR_FLAG_STACK
|
|
---------------------------
|
|
|
|
``ERR_FLAG_STACK`` ialization of the controller, in case a corrupted safety memory is encountered.
|
|
This error is not recoverable and will trigger the panic mode.
|
|
|
|
.. seealso:: :ref:`safety_stack_checking`
|
|
|
|
========== ============= ============= ===========
|
|
persistent self-clearing Stops PID Panic Mode
|
|
========== ============= ============= ===========
|
|
yes no yes yes
|
|
========== ============= ============= ===========
|