Section: MetaData
The section MetaData contains the description, category and icons (with size 16x16 pixel and 32x32 pixel).
SEC MetaData //optional: yes, modifier: [UPDATE]]
Desc := <description>; //optional: no, type: text
Category := <category name>; //optional: no, type: CategoryPath
Icon_16 := <icon16 name>; //optional: no, type: image
Icon_32 := <icon32 name>; //optional: no, type: image
Inst_Prefix := <instance prefix>; //optional: yes, type: IDOrNothing
Default_Inst_Name := <instance name>; //optional: yes, type: text
Links := ['<link1>','<link2>',...] //optional: Yes, type: UriCollection
END_SECDetails regarding the syntax of definition types are described in the section Module Declaration.
If the section
MetaDatais missing, this module will be used as base module which cannot be instantiated.Categorydefines a topic for modules belonging to the same subject. The character|creates a hierarchic structure of the elements in the "Add module" dialog. The characters|andnewlineorcarriage returnare not allowed in the structure names.Icon_16defines the name of the icon with resolution 16 x 16 pixels. The images for the icons must be defined in an image pool. The iconIcon_16is used for the module tree and the iconIcon_32for the information dialog.Inst_Prefixdefines the default prefix for the names of generated FB instances and submodule instances. Empty prefix (Inst_Prefix :=) are also possible, which however may cause a intersection with other variable names of the function block. This presetting can be overwritten in the sectionSlot.If deriving from a module class with
IMPORTS, the sectionMetaDatamust be updated if this section exists in the base module. To do this the section must be declared with the modifierUPDATEand the description must be redefined.Default_Inst_Namecan be used to define a default name for module instances being children of this slot. Each module which is added will get this name by default using text list entry defined by "Default_Inst_Name". If there is a default name of a parent slot, this name is preferred to the one in the meta data of the moduleLinksdefines a list of links. The links are displayed in the module editor in the Information tab. The content of the first URL of link list is displayed in theInformationtab.
SEC MetaData
Desc := TL.Desc_Drives ;
Category := 'Mechatronics'|'Drives' ;
Icon_16 := IP.Drive_Icon_16 ;
Icon_32 := IP.Drive_Icon_32 ;
Default_Inst_Name := IDrive ;
Links := ['file:///d:\Document1.pdf', 'https://www.codesys.com', 'mailto:info@codesys.com'];
END_SECCategory := 'Mechatronics'|'Drives creates the following structure:
