Command: Create Module from FB
This command (Category "Composer") creates a module description from a function block.
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
.
All variables
var_input constant
are defined as module parameter. There the attributesparameterCategory
,parameterMinValue
, andparameterMaxValuehere
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 typeInterface
become single slots, if they are marked with theac_single_slot
attribute.To create a multi slot a pair of
var_input
is required, consisting of aPointer 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.