You can use the Retentive Timer function block to set an output to True when an oscillating input signal has been True for a specified time.