Creating USERFBs
USERFBs are user-customizable function blocks. Their use is encouraged to make the Ladder program less voluminous and cluttered, abstracting information that is not frequently worked with and systematizing complex tasks.
In these blocks, the inputs and outputs are defined by the user, who manipulates them in the Ladder diagram associated with the block. See below how to create your USERFB.
- In the Projects window, in the resource where you want to create the USERFB, right-click User Function Block and click New Folder.
- In the configuration wizard, enter a name for the library that the USERFB will be part of and click Next.

- Enter a valid name for the USERFB and click Next.

- If you want to enter a password to protect the block, select the Encrypt source code binary checkbox and enter a password. Otherwise, deselect the checkbox. Click Finish.

That's it! USERFB has been successfully created. You should see the following menu in the Projects window: