FB_RuntimeMeasurement - End (Method)

Overview

Type:

Method

Available as of:

V1.0.0.0

Versions:

Current version

Task

The method End completes a presently running time measurement.

Description

The presently running time measurement is being completed and evaluated. The statistical data of the function block are being updated.

Interface

Output

Data type

Description

q_etResult

ET_Result

Provides diagnostic and status information as an enumeration value.

q_sResultMsg

STRING [80]

Provides additional diagnostic and status information as a text message.

Return Value

Data type

Description

BOOL

Indicates whether or not the execution of the method was successful.

Diagnostic Messages

The following elements of ET_Result are used for q_etResult.

Name

Data type

Value

Description

Ok

UDINT

0

Operation completed successfully.

StartMethodNotCalled

UDINT

22

Start method has not yet been executed.

CheckSumOverflow

UDINT

23

Checksum overflow.

NOTE: To calculate the return value of the property udiAverageTime, the checksum is calculated each time the method End is called. The limit of the total sum is 4294967295 (based on the UDINT data type).

Verify the q_etResult output each time the method End is called. If q_etResult = CheckSumOverflow, the method Reset must be called.