Originally Posted By: Tesdall
My mistake on where to inject the correct code.
If you're talking about placement of the ping() UDF, it's irrelevant. kix32 parses the script for Function blocks before running.

FWIW, I tend to place UDFs at the bottom of the script, keeping my own code at the top.