FREQ_MEASURE¶
Provided by util.lib.
This function block 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.
Variable | Data Type | Description |
---|---|---|
IN | BOOL | Input signal |
PERIODS | INT | Number of periods, i.e. 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 |
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) |