Function: The dialog is used for selecting a function block for I/O mapping. The function block should be mapped to the I/O channel selected in the “<device name> I/O Mapping” tab or to the object selected in the “<device name> IEC Objects” tab.
Call:
-
Tab “<device name> I/O Mapping”, command button
“Add FB for I/O channel”
-
Tab “<device name> IEC Objects”, command button
“Add”
The dialog provides all function blocks from the active application and the libraries included in the project which fulfill the following:
-
The function block has the
{attribute 'io_function_block'}
attribute. -
The function block contains input or output parameters that match the channel type (input, output, data type) and has the
{attribute 'io_function_block_mapping'}
attribute.
When a function block is selected that provides multiple matching parameters, only the first one is mapped automatically to the channel. The others can only be assigned manually in the “<device name> I/O Mapping” tab.
After the function block is assigned, the parameter of the function block instance is entered in the “Variable” column of the mapping table. Then the path is composed as follows:
<application name>.<device channel name>_<FB name>_<continuous FB instance number>.
<FB parameter name>
Example: App1.Out_4_Int_myScale_Output_Int_1.iOutput
for the parameter iOutput
of the first inserted instance of the function block myScale_Output
.
“Find” |
Input field for searching for function block names |
“Type” |
Function blocks in the tree structure that match the channel type. Nodes: application, library name(s) |
“Documentation” |
Shows the available documentation for the library selected in the tree or the library block. |