FB_FlowEstimation - Update (Method)

Overview

Type:

Method

Available as of:

V1.6.0.0

This chapter provides information on:

Task

Update the flow estimation.

Description

The method Update verifies if the configured time period has elapsed and, if it is the case, it updates the flow estimation based on the number of Notify calls performed over the last time period.

NOTE: The internal timer is initialized on the first call of the Update method after the initialization or after a call of the Reset method.

Interface

Output

Data type

Description

q_etDiag

GD.ET_Diag

General library-independent statement on the diagnostic. A value unequal to ET_Diag.Ok corresponds to a diagnostic message.

q_etDiagExt

ET_DiagExt

POU-specific output on the diagnostic:

  • q_etDiag = ET_Diag.Ok -> Status message

  • q_etDiag <> ET_Diag.Ok -> Diagnostic message

q_sMsg

STRING(80)

Event-triggered message that gives additional information on the diagnostic state.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value of q_etDiagExt

Description

Ok

Ok

0

Ok

ExecutionAborted

TimePeriodNotConfigured

176

The time period value is not configured.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Success

Status message: Reading the data was successful.

TimePeriodNotConfigured

Enumeration name:

TimePeriodNotConfigured

Enumeration value:

176

Description:

The time period value is not configured.

Issue

Cause

Solution

Updating was not possible.

The time period is not configured.

Make a successful call of SetTimePeriod before calling this method. Refer to FB_FlowEstimation - SetTimePeriod (Method).