It is always possible to use optional inputs in TwinCAT when you call a funcion block. When you program your function as a method within a function block you can give you input variables a default value. Those inputs are optional.