Add/Remove connectors
You can create an input/output by dragging a connection line from a block to the left or right side of the UDF edit rectangle area:
To remove an input/output, select the yellow connector figure and select "①" in the context menu. The corresponding connection line(s) will be deleted as well:
Configure UDF properties
UDF properties include information such as identifier, password, connector names, parameters, comments and so on. To edit the UDF properties, double-click the identifier text above the UDF edit box or use menu command "Edit -> Edit UDF properties". LOGO!Soft Comfort displays the following dialog:
The dialog includes three tabs:
I/O
Parameters
Comment
The I/O-specific tab
From this tab, you can configure the identifier, the UDF password, and the names of input connectors and output connectors:
In Field "①" of the above dialog, you can enter an identifier for your UDF. The identifier is "UDF" by default.
UDF password offers the capability to hide the details of a UDF such that a UDF library can be distributed without the details. In the use mode, you can right-click the UDF, and select "②" in the following context menu list to expand the UDF and view its details:
|
Note
The UDF circuit diagram password rule is as follows:
|
If you did not configure a password for the UDF, LOGO!Soft comfort displays the expanded UDF content when you select "①":
If you did configure a password for the UDF and select "①", you must first enter the password before LOGO!Soft comfort displays the expanded UDF content:
The parameter-specific tab
In this tab, you can configure the parameters of the UDF:
You can reference the available parameters of the function blocks used in the UDF as the parameters of the UDF. "④" shows the function blocks, while "⑤" shows the parameters that the selected block includes. Double-click a parameter or use "②" to move a parameter from "⑤" to "①".
To remove a parameter from ①, select the parameter and click ③. The parameter then re-appears in ⑤.
Use the first column in ① to identify each parameter. Set a unique identifier for each parameter:
The comment-specific tab
You can use this tab to add a description of your UDF.
The comment can describe how to use the UDF, the function of the inputs and outputs, and any other details. By default, the comment appears to the right of the UDF edit box, but you can place it wherever you choose:
UDF identifier
The UDF identifier appears on the UDF edit box as an easy, short identifier of the UDF, and also appears in the block tree:
Double-click the UDF identifier above the expanded UDF to open the following properties dialog. You can enter up to eight characters for the UDF name. You can also password-protect the UDF in the following dialog:
User-defined name for a UDF block
You can also configure a user-defined name for a UDF. It is the block name which appears above the UDF block as other function blocks in a circuit program.
To configure a user-defined name for the UDF, double-click the UDF block and LOGO!Soft Comfort displays the following dialog:
Enter a name for the UDF, and click "①" in the above dialog. Then LOGO!Soft Comfort displays the new UDF block name :