Monitoring UDFBs
The real time values for UDFBs can be shown in the workspace while the program is running. Double clicking on a UDFB "User Defined Function Block"
UDFB can be used as a sub-function block in another program of the application. It is described using FBD, LD, ST or IL language. Input / output parameters of a UDFB (as well as private variables) are declared in the variable editor as local variables of the UDFB in the Project View's Subprograms list will open the UDFB in the workspace. You will first be presented with a list of the UDFB's instances if it is instantiated more than once or declared inside of a structure.
If the UDFB is open in the Workspace before running the program it will not automatically animate because there may be more than once instance of the UDFB. To start the animation double click the entry in the Project View. If there is only one instance, it will open; if there are multiple instances the list will be presented.