Skip to main content

Dialog: Select Function Block

Function: The dialog is used to select a function block for I/O mapping. The function block should be mapped to the I/O channel selected on the <device name> I/O Mapping tab or to the object selected on the <device name> IEC Objects tab.

Call:

  • <device name> I/O Mapping tab, _cds_icon_add_fb.png Add FB for I/O Channel command button

  • <device name> IEC Objects, _cds_icon_add_fb.png Add command button

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 which provides multiple matching parameters, only the first one is mapped automatically to the channel. The others can only be mapped manually on the <device name> I/O Mapping tab.

After the function block is mapped, the parameter of the function block instance is entered in the Variable column of the mapping table. Then the path is composed of the follows:

<application name>.<device channel name>_<FB name>_<incremented FB instance number>.<FB parameter name>

Example: App1.Out_4_Int_myScale_Output_Int_1.iOutput for the iOutput parameter of the first inserted instance of the myScale_Output function block

Find

Input field for searching for function block names

Type

Function blocks in the tree structure which 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

For more information, see: io_function_block, io_function_block_mapping