ERROR - The program contains a DEF function block within another DEF function block. Remove the inner DEF block. A DEF cannot contain another DEF.