FB_FlowEstimation - Notify (Method)

Overview

Type:

Method

Available as of:

V1.6.0.0

This chapter provides information on:

Task

Notify that one or more objects has been detected.

Description

The method Notify increases the count of detected objects within the current time period by the input value. Before calling this method, the Update method must be called at least once to initialize the internal timer.

Interface

Input

Data type

Description

i_udiNumberOfObjects

UDINT

Number of objects to notify.

This input can have either a zero or positive value. In case of a zero value, the Notify call has no effect on the flow estimation value.

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

UpdateNotCalled

178

The Update method has not been called.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Success

Status message: Reading the data was successful.

UpdateNotCalled

Enumeration name:

UpdateNotCalled

Enumeration value:

178

Description:

The Update method has not been called.

Issue

Cause

Solution

The new object was not successfully notified.

The Update method has not been called at least once before calling this method.

Make sure that the Update is called at least once before calling this method.