I don't know Wago in depth, but I do know that the new ones with e!COCKPIT are based on Codesys 3.5, if this is your case:
It is possible to include comments for use within the IDE and there is a standardized form of documentation that you can find here (I never used it to generate documentation, only as comments).
Codesys 3.5 - Library Documentation
Codesys 3.5 - Library Documentation - Formatting Commands (Overview)
In a very simple way, inserting comments as in the example below will already provide help while programming in the IDE, this works with any declaration, in function blocks or in Variable List (VAR
):
//This is a FunctionBlock
//Bla bla bla
FUNCTION_BLOCK FB_Test
VAR_INPUT
MyInput1 : BOOL; //This is a boolean input (TRUE or FALSE)
MyInput2 : INT; //my grandma asked me to add this input
MyInput3 : LREAL; //more bla bla bla
END_VAR
VAR_OUTPUT
MyOutput1 : BOOL; //brrrrrrrr
MyOutput2 : BOOL; //more bla x 486739^2
END_VAR
VAR
END_VAR

