FB_MovingAverage - Insert (Method)

Overview

Type:

Method

Available as of:

V1.0.7.0

Versions:

Current version

Task

Insert value in the buffer for sliding-type mean value generation

Description

Inserts a value for the calculation of the sliding-type mean value into the buffer for FB_MovingAverage

Interface

Input

Data type

Description

i_lrValue

LREAL

Value that will be inserted into the buffer of FB_MovingAverage

Output

Data type

Description

q_etDiag

GD.ET_Diag

General library-independent statement on the diagnostic.

A value not equal to ET_Diag.Ok corresponds to an 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

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

ExecutionAborted

InitMethodNotCalled

93

The Init method has not been called up.

InitMethodNotCalled

Enumeration name:

InitMethodNotCalled

Enumeration value:

93

Description:

The Init method has not been called up.

Issue

Cause

Solution

-

The Init method has not been called up yet.

Prior to the first call-up of the Insert method, the Init method must have been called up.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

A value has been inserted successfully into the buffer of FB_MovingAverage