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_MICROSEC | Measurement of the run time of the PLC FAST task. Time base 1 us |
GPV_TEMAXC_MICROSEC | Latch max measurement of GPV_TEREC_MICROSEC (wr) |
GPV_TEREC_MICROSEC_NORMAL | Measurement of the run time of the PLC NORMAL task. Time base 1 us |
GPV_TEMAXC_MICROSEC_NORMAL | Latch max measurement of GPV_TEREC_MICROSEC_NORMAL (wr) |
GPV_TEREC_MICROSEC_SLOW | Measurement of the run time of the PLC SLOW task. Time base 1 us |
GPV_TEMAXC_MICROSEC_SLOW | Latch max measurement of GPV_TEREC_MICROSEC_SLOW (wr) |
GPV_CYCDURMICROSEC | Duration of the PLC FAST task in us |
GPV_CYCMAXDURMICROSEC | Latch max measurement of GPV_CYCDURMICROSEC (wr) |
GPV_CYCDURMICROSEC_NORMAL | Duration of the PLC NORMAL task in us |
GPV_CYCMAXDURMICROSEC_NORMAL | Latch max measurement of GPV_CYCDURMICROSEC_NORMAL (wr) |
GPV_CYCDURMICROSEC_SLOW | Duration of the PLC SLOW task in us |
GPV_CYCMAXDURMICROSEC_SLOW | Latch max measurement of GPV_CYCDURMICROSEC_SLOW (wr) |