FB_MovingAverage - SetOrder (Method)
Type: |
Method |
Available as of: |
V1.0.7.0 |
Versions: |
Current version |
Define number of values for mean value generation
Define number of values from which the sliding-type mean value can be calculated. See FB_MovingAverage
The setting of the number of values to calculate the sliding-type mean value can be requested via the uiOrder property.
Input |
Data type |
Description |
---|---|---|
i_uiOrder |
UNIT |
Number of values from which the mean value is calculated |
Output |
Data type |
Description |
---|---|---|
q_etDiag |
General library-independent statement on the diagnostic. A value not equal to ET_Diag.Ok corresponds to an diagnostic message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = ET_Diag.Ok -> Status message q_etDiag <> ET_Diag.Ok -> Diagnostic message |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
0 |
Ok |
|
InputParameterInvalid |
261 |
The order is outside the valid range. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The number of values for the mean value calculation has been successfully changed. See FB_MovingAverage
Enumeration name: |
OrderRange |
Enumeration value: |
261 |
Description: |
The order is outside the valid range. |
Issue |
Cause |
Solution |
---|---|---|
- |
An invalid value has been transferred to the i_uiOrder input. |
A value with the following limits must be created at the i_uiOrder input: 0 < i_uiOrder <= Gc_uiMovingAverageMaxOrder |