Vai al contenuto

Measuring run times

Within the PLC program there are certain system variables that allow verification of the effective run times of PLC tasks.The measurements are run on the period and duration of code 1131 and the resulting values are made available to the user program via system variables.The variables GPV_TEREC_MICROSEC_xxx give us the effective run time of the PLC tasks; the value recorded is in microseconds (us).The peak value of this measurement is also memorised, in variables GPV_TEMAXC_MICROSEC_xxx. The user can reset this value from code 1131 (see the paragraph on updating system variables).The variables GPV_CYCDURMICROSEC_xxx give us the effective duration of running the PLC tasks; the value recorded is in microseconds (us).The peak value of this measurement is also memorised, in variables GPV_MAXCYCDURMICROSEC_xxx. The user can reset this value from code 1131 (see the paragraph on updating system variables).Summary of the variables and matched tasks: the indication “(wr)” in the Description column indicates that the variable can be written from the applicative program.
Name Description
GPV_TEREC_MICROSECMeasurement of the run time of the PLC FAST task. Time base 1 us
GPV_TEMAXC_MICROSECLatch max measurement of GPV_TEREC_MICROSEC (wr)
GPV_TEREC_MICROSEC_NORMALMeasurement of the run time of the PLC NORMAL task. Time base 1 us
GPV_TEMAXC_MICROSEC_NORMALLatch max measurement of GPV_TEREC_MICROSEC_NORMAL (wr)
GPV_TEREC_MICROSEC_SLOWMeasurement of the run time of the PLC SLOW task. Time base 1 us
GPV_TEMAXC_MICROSEC_SLOWLatch max measurement of GPV_TEREC_MICROSEC_SLOW (wr)
GPV_CYCDURMICROSECDuration of the PLC FAST task in us
GPV_CYCMAXDURMICROSECLatch max measurement of GPV_CYCDURMICROSEC (wr)
GPV_CYCDURMICROSEC_NORMALDuration of the PLC NORMAL task in us
GPV_CYCMAXDURMICROSEC_NORMALLatch max measurement of GPV_CYCDURMICROSEC_NORMAL (wr)
GPV_CYCDURMICROSEC_SLOWDuration of the PLC SLOW task in us
GPV_CYCMAXDURMICROSEC_SLOWLatch max measurement of GPV_CYCDURMICROSEC_SLOW (wr)