FREQ_MEASUREΒΆ
This function block ( The library UTIL.Library\ \) measures the (average) frequency (Hz) of a boolean input signal. You can specify over how many periods it should be averaged. A period is the time between two rising edges of the input signal.
FREQ_MEASURE in FBD
Input variables:
| Variable | Data type | Description | 
|---|---|---|
| IN | BOOL | Input signal | 
| PERIODS | INT | Number of periods, that is the time intervals between the rising edges, over which the average frequency of the input signal should be calculated. Possible values: 1 to 10 | 
| RESET | BOOL | Reset of all parameters to 0 | 
Output variables:
| Variable | Data type | Description | 
|---|---|---|
| OUT | REAL | resulting frequency in [Hz] | 
| VALID | BOOL | FALSE until the first measure has been finished, or if the period > 3*OUT (indicating something wrong with the inputs) | 
