The method SetTimePeriod sets a time period that is used to perform the flow estimation.
A large time period would allow a more stable estimation that would not be much affected by local oscillations in the observed flow.
A small time period would allow the average estimated flow to quickly change in case of variations of the observed flow.
Input |
Data type |
Description |
---|---|---|
i_timValue |
TIME |
Time period to configure. |
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 |
POU-specific output on the diagnostic:
|
|
q_sMsg |
STRING(80) |
Event-triggered message that gives additional information on the diagnostic state. |
q_etDiag |
q_etDiagExt |
Enumeration value of q_etDiagExt |
Description |
---|---|---|---|
Ok |
Ok |
0 |
Ok |
Ok |
TimePeriodChanged |
177 |
The time period has been changed. |
InputParameterInvalid |
TimePeriodRange |
175 |
The time period value is invalid. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Success |
Status message: Reading the data was successful.