Vai al contenuto

Checks on run times

It is possible to configure checks on observance of the run times in the system.The possible checks are:check on the maximum run duration (complete running); error at first occurrence of the event (GPV_ALARMTIME_xxx)check on the maximum run duration (incomplete running, endless loop check); error at first occurrence of the event (GPV_PERIOD_xxx)check on the maximum repeated run duration (complete running); error at first occurrence of the event due to a configurable number of consecutive cycles (GPV_WARNINGTIME_xxx)The checks can all be configured for every single PLC task.The configuration of the checks takes place at run time through system variables.Note: as reference for the checks described is made to the task run times, remember that these are shown in the time diagrams with “t”, while the relative values are contained in the variables “GPV_CYCDURxxx”.GPV_ALARMTIME_xxx and GPV_WARNINGTIME_xxx parameters are best suited for accurate control; default value for both is 0 (disabled).Parameter GPV_PERIOD_xxx is optimal to check never ending loop task condition and should be typically configured with values multiple of the requested task period; default value is 10 * requested task period.FAST TaskControl configuration variables (all wr)
Name Description
GPV_ALARMTIME_WDOG1131Maximum run time of the PLC FAST task before watch dog intervention. Time base 100 us
GPV_PERIOD_WDOG1131Maximum run time of tasks with priority equal to or less than the PLC FAST task. Time base 100 us.
GPV_WARNINGTIME_WDOG1131Enabling warning time control and check on exceeding limits for the PLC FAST task. Time base 100 us
GPV_WARNINGCYCLE_WDOG1131Number of consecutive cycles for which it is possible to exceed GPV_WARNINGTIME_WDOG1131
Control supervision or status variables
Name Description
GPV_WARNCOUNT_WDOG1131Value that contains the number of consecutive cycles causing intervention of GPV_WARNINGTIME_WDOG1131
GPV_MAXWARNCOUNT_WDOG1131Value that contains the latch of the maximum number of consecutive cycles causing intervention of GPV_WARNINGTIME_WDOG1131 (wr)
GPV_ABSWARNCOUNT_WDOG1131Value that contains the total number of PLC cycles (not necessarily consecutive) causing intervention of GPV_WARNINGTIME_WDOG1131
NORMAL TaskControl configuration variables (all wr)
Name Description
GPV_ALARMTIME_WDOG1131_NORMALMaximum run time of the PLC NORMAL task before watch dog intervention. Time base 100 us
GPV_PERIOD_WDOG1131_NORMALMaximum run time of tasks with priority equal to or less than the PLC NORMAL task. Time base 100 us.
GPV_WARNINGTIME_WDOG1131_NORMALEnabling warning time control and check on exceeding limits for the PLC NORMAL task. Time base 100 us
GPV_WARNINGCYCLE_WDOG1131_NORMALNumber of consecutive cycles for which it is possible to exceed GPV_WARNINGTIME_WDOG1131_NORMAL
Control supervision or status variables
Name Description
GPV_WARNCOUNT_WDOG1131_NORMALValue that contains the number of consecutive cycles causing intervention of GPV_WARNINGTIME_WDOG113_NOMRAL
GPV_MAXWARNCOUNT_WDOG1131_NORMALValue that contains the latch of the maximum number of consecutive cycles causing intervention of GPV_WARNINGTIME_WDOG1131_NORMAL (wr)
GPV_ABSWARNCOUNT_WDOG1131_NORMALValue that contains the total number of PLC cycles (not necessarily consecutive) causing intervention of GPV_WARNINGTIME_WDOG1131_NORMAL
SLOW TaskControl configuration variables (all wr)
Name Description
GPV_ALARMTIME_WDOG1131_SLOWMaximum run time of the PLC SLOW task before watch dog intervention. Time base 100 us
GPV_PERIOD_WDOG1131_SLOWMaximum run time of tasks with priority equal to or less than the PLC SLOW task. Time base 100 us.
GPV_WARNINGTIME_WDOG1131_SLOWEnabling warning time control and check on exceeding limits for the PLC SLOW task. Time base 100 us
GPV_WARNINGCYCLE_WDOG1131_SLOWNumber of consecutive cycles for which it is possible to exceed GPV_WARNINGTIME_WDOG1131_SLOW
Control supervision or status variables
Name Description
GPV_WARNCOUNT_WDOG1131_SLOWValue that contains the number of consecutive cycles causing intervention of GPV_WARNINGTIME_WDOG113_SLOW
GPV_MAXWARNCOUNT_WDOG1131_SLOWValue that contains the latch of the maximum number of consecutive cycles causing intervention of GPV_WARNINGTIME_WDOG1131_SLOW (wr)
GPV_ABSWARNCOUNT_WDOG1131_SLOWValue that contains the total number of PLC cycles (not necessarily consecutive) causing intervention of GPV_WARNINGTIME_WDOG1131_SLOW