I am currently using Wago’s e!cockpit environment to write my plc project in ST. I know that for Python, C++ there are programs for docstring for easier and cleaner documentation. I wondered if there is such a thing for structured text? Or even in Wago’s e!cockpit?
I have not found such a feature yet, only for more common programming languages.
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):