Skip to main content

Command: Create Module from FB

This command (Category "Composer") creates a module description from a function block.

. The following objects are created:
  • Module description with the name <NameOfTheFB>

  • Image pool with the name IP_<NameOfTheFB>

  • Text list with the name TL_<NameOfTheFB>

  • Interface with the name TL_<NameOfTheFB> I<NameOfTheFB>.

    This interface extends AC.IModule.

. The module description is created according to the following rules:
  • All variables var_input constant are defined as module parameter. There the attributes parameterCategory, parameterMinValue, and parameterMaxValuehere can be used to set categories and minimal / maximal values.

  • All numeric variables var_output are defined as module outputs.

  • All numeric variables var_input are defined as module inputs, unless they are marked as part of a multi slot.

  • All variables var_input of type Interface become single slots, if they are marked with the ac_single_slot attribute.

  • To create a multi slot a pair of var_input is required, consisting of a Pointer to Interface and an integer variable. Both must be marked with the 'ac_multi_slot' := '<ID>' attribute, where the <ID> of the two must match.