combine the two flows I gave you and add a reset.
Only takes a little imagination...
[{"id":"eb862e26.25a2d","type":"change","z":"4ee0e132.e7df2","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"FAIL","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":260,"wires":[["71243006.b8b14"]]},{"id":"31f462f.376889e","type":"inject","z":"4ee0e132.e7df2","name":"set 277ms delay","topic":"","payload":"277","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":140,"y":40,"wires":[["a9095cd3.3bb64"]]},{"id":"4aa9a154.13781","type":"inject","z":"4ee0e132.e7df2","name":"set 5s delay","topic":"","payload":"5000","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":80,"wires":[["a9095cd3.3bb64"]]},{"id":"71243006.b8b14","type":"debug","z":"4ee0e132.e7df2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":610,"y":180,"wires":[]},{"id":"a9095cd3.3bb64","type":"change","z":"4ee0e132.e7df2","name":"","rules":[{"t":"set","p":"maxtime","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":360,"y":40,"wires":[[]]},{"id":"d83ed7d3.dc4ed8","type":"inject","z":"4ee0e132.e7df2","name":"set 1m delay","topic":"","payload":"60000","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":120,"wires":[["a9095cd3.3bb64"]]},{"id":"d7293d4a.22f75","type":"inject","z":"4ee0e132.e7df2","name":"fake pulse train","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":140,"y":180,"wires":[["4f608851.67b078","5b828c11.6e0874"]]},{"id":"4f608851.67b078","type":"function","z":"4ee0e132.e7df2","name":"on time?","func":"var maxtime = flow.get(\"maxtime\") || 20000;//default to 20s\nvar thisTimestamp = Date.now();\nvar lastTimestamp = flow.get(\"lastmsg\") || thisTimestamp;\nvar diffMS = thisTimestamp - lastTimestamp;\nflow.set(\"lastmsg\",thisTimestamp);\nif(diffMS < maxtime){\n msg.payload = \"OK\";\n} else {\n return null;\n}\nreturn msg;","outputs":1,"noerr":0,"x":340,"y":180,"wires":[["71243006.b8b14","b6114284.392cd"]]},{"id":"4d5ce745.142e28","type":"delay","z":"4ee0e132.e7df2","name":"variable delay","pauseType":"delayv","timeout":"0","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":360,"y":260,"wires":[["eb862e26.25a2d"]]},{"id":"5b828c11.6e0874","type":"change","z":"4ee0e132.e7df2","name":"","rules":[{"t":"set","p":"delay","pt":"msg","to":"maxtime","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":160,"y":260,"wires":[["4d5ce745.142e28"]]},{"id":"b6114284.392cd","type":"change","z":"4ee0e132.e7df2","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":380,"y":220,"wires":[["5b828c11.6e0874"]]}]