Incorrect use of function blocks

Just as shown in the picture, does anyone know how to declare these two functional blocks?

Hello,

You have to distinguish between ‘functions’ and ‘function blocks’.

Functions and function blocks

You mentionend both were ‘function blocks’ (which we can not see from your screenshot)

but you call them as they were ‘functions’.

If they are real ‘function blocks’ you have to define an ‘instance name/ instance variable’ and use that for calling.