Process execution timing data, Trusted, Toolset suite t8082 – Rockwell Automation T8082 Trusted Toolset Suite User Manual
Page 71

Trusted
TM
Toolset Suite T8082
Issue 14 Feb 10
PD-T8082
71
6.7. Process Execution Timing Data
Detailed information on the timed operations carried out on each scan are available via the SYSTEM
function block. This function block is available in the FBD program menu and has an application note
available from the ‘Note’ button on the SYSTEM function block ‘Info’ window. This application note
gives detailed information on configuration in FBD and structured text programs.
The function block allows access to a variety of information by passing a category keyword to the Mode
input and an argument number to the Arg input. The category keyword SYS_PE_TIMES (value 128) is
an addition which provides the following data:
Argument
Arg input value
PE_INIT
0
Returns 0 on the first scan of the application (i.e. each time the
application is started), or 1 otherwise. When it returns 0, none of the
elapsed times are valid.
PE_ALL
1
Returns the elapsed time from the start of one scan to the start of the
next scan.
PE_CYC
2
Returns the elapsed time from the last start of the APPLICATION
processing to this current start of the APPLICATION processing.
PE_IO
3
Returns the elapsed time from the start to the IO scan to the end of
the IO scan. Includes all IMB transactions such as NIO output
processing, NIO input processing, TIO processing, REGENT
processing, COMMUNICATION module processing, STANDBY MP
processing, etc.
PE_INP
4
returns the elapsed time from the start of INPUT processing to the end
of INPUT processing. Includes updating OEM boards, lock counts, i2k,
nvm updates, and conversions.
PE_APP
5
returns the elapsed time from the start of the APPLICATION
processing to the end of the APPLICATION processing.
PE_COM
6
returns the elapsed time from the start of the COMMS processing to
the end of the COMMS processing. Includes all OSE signals directed
to the ISaGRAF kernel such as INI changes, ACT/STDBY signals,
communication requests from the ISaGRAF comms task, etc.
PE_OUT
7
returns the elapsed time from the start of the OUTPUT processing to
the end of the OUTPUT processing. Includes updates from OEM
boards (i.e. generating the FOB), i2k, nvm, SOE, PH
Notes:
All calls to SYS_PE_TIMES other than PE_INIT return elapsed time in milliseconds.
All calls to SYS_PE_TIMES other than PE_INIT are invalid on the initial scan.
All time data calls to SYS_PE_TIMES return the elapsed times from the PREVIOUS scan, except
PE_CYC which is valid for the current scan (except the initial scan).
Figure 54 below shows a schematic of the timing data described above.