FB_RunTimeMeasurement - General Information

Overview

Type:

Function block

Available as of:

V1.0.3.0

Inherits from:

-

Implements:

-

Versions:

Current version

Task

Runtime measurement of program code.

Description

The function block is used for diagnostic. Interruptions by higher priority tasks or system tasks are not taken into account.

Interface

NOTE: POU is not addressable!

The POU must not be called up.

The function block can be used by calling it up over methods and properties.

Methods

Name

Description

End

Completes a currently running time measurement

Reset

Resets the function block to its initial state

Start

Starts a new measurement

Properties

Name

Data type

Accessing

Description

udiActTime

UDINT

Read

Duration of the last measurement. Unit: ns

udiAverageTime

UDINT

Read

Mean duration of the measurements performed since the last reset Unit: ns

udiCycleCount

UDINT

Read

Number of measurements performed since the last reset

udiMaxTime

UDINT

Read

Longest measured period since the last reset. Unit: ns

udiMinTime

UDINT

Read

Shortest measured period since the last reset. Unit: ns