If I understand correctly you want to repeat a message at a variable interval. If so then this flow demonstrates one way of doing that.
[{"id":"79629368.aee43c","type":"function","z":"6dc690a3.1abc88","name":"Repeater","func":"// Repeatedly sends the last message passed in\n// pass message with topic \"interval\" to specify repeate time in ms \n\nif (msg.topic === \"interval\") {\n context.set(\"interval\", msg.payload);\n} else {\n // and save it in the node context\n context.set(\"msg\", msg);\n}\n// have we got a message to repeat?\nmsg = context.get(\"msg\");\nif (msg) {\n // make a local clone of the message to pass on\n var msgClone = RED.util.cloneMessage(msg);\n var repeatInterval = context.get(\"interval\");\n if (repeatInterval === undefined) repeatInterval = 5000; // default interval ms\n // pass the message on\n node.send(msgClone);\n // loop at given interval re-sending it\n var tick = context.get('tick') || 0;\n // clear the repeater and restart\n if (tick) {\n \tclearInterval(tick);\n }\n tick = setInterval(function() {\n \tnode.send(msgClone);\n }, repeatInterval); // re-send at appropriate rate\n context.set('tick', tick);\n}\nreturn null;","outputs":1,"noerr":0,"x":363,"y":57,"wires":[["255b6bab.07560c"]]},{"id":"2cb59265.11dcee","type":"inject","z":"6dc690a3.1abc88","name":"","topic":"interval","payload":"2000","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":129,"y":35,"wires":[["79629368.aee43c"]]},{"id":"4ca75529.d5e9dc","type":"inject","z":"6dc690a3.1abc88","name":"","topic":"","payload":"Message to be repeated","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":152,"y":145,"wires":[["79629368.aee43c"]]},{"id":"d5b5c9dd.d867c","type":"inject","z":"6dc690a3.1abc88","name":"","topic":"interval","payload":"3000","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":73,"wires":[["79629368.aee43c"]]},{"id":"255b6bab.07560c","type":"debug","z":"6dc690a3.1abc88","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":554,"y":59,"wires":[]}]