The function block must be called with both conditions of the signal so it can detect the edge. One frequent application error occurs by skipping the function block call (i.e. by IF statements).Another frequent error is calling the same function block several times in the same program sweep. The output is appropriately set when the function block is first called. An edge does not occur until the second call, and the output is set to FALSE.