Using USERFBs
Finally, we'll see how to use the USERFB block and call it in other diagrams.
- In the Projects window, double-click the file in which you want to use USERFB to open the Ladder Editor for that file.
- In the Palette window, select the USERFB block from the Module category and drag it to the position where you want to use it in the Ladder Diagram.
- Double-click the question marks above the block (???) to insert the USERFB instance variable. Enter the variable name and click Edit. In the confirmation window, click Yes to create the new variable.
- In the window that appears, enter a name for the variable and select its parameters. In the Type field, choose the name of your USERFB (if you only have one, the field cannot be edited).
For example, if your USERFB is MYUSERFB, the correct type to select is $USERFB_MYUSERFB.
Finished! Your USERFB is now inserted into the diagram and ready to work!