Component list file
The component list file supplied to the Add Component Tool is an XML file consisting of a list of component category headings and component file names.
The file has the following format. The
<category>
and <component>
sections can be repeating sections.<hmi> <category type="TYPE" folder="FOLDER"> <component file="NAME"/> </category> </hmi>
- TYPEis one of the component category types.
- FOLDERis the name of the folder where the component files in this category is located. This is an optional attribute. If this attribute is not present, the component files are assumed to be located in the same folder as this component list file. The folder attribute can be specified either as an absolute folder (for example,C:\MEFiles\gfx) or as a relative folder (for example,.\gfx). If it is a relative folder specification, it is assumed to be relative to the folder where this component list file is located.
- NAMEis the name of the component file without a folder specification (for example,pump.gfx).
Examples
Adding graphic displays, global object displays, and images to an existing application:
When adding graphic displays or global object displays, you can specify a folder to hold them. If the folder doesn't exist, it will create one for you.
<hmi> <category type="Graphics;Displays" folder="C:\MEFiles\Displays"> <component file="overview.gfx" folder="overview"/> <component file="pump house.gfx" folder="pumps"/> </category> <category type="Graphics;Global Objects" folder="C:\MEFiles\GOs"> <component file="button.ggfx" folder="buttons"/> <component file="panel.ggfx" folder="panels"/> </category> <category type="Graphics;Images" folder="C:\MEFiles\Images"> <component file="logo.bmp"/> <component file="pump.bmp"/> </category> </hmi>
Adding folders under Displays and Global Objects of an existing application:
<hmi> <category type="Graphics;DisplayFolders"> <component folder="line1"/> <component folder="line2"/> </category> <category type="Graphics;GlobalObjectsFolders"> <component folder="common1"/> <component folder="common2"/> </category> </hmi>
Adding XML files to an existing application:
<hmi> <category type="Graphics;Displays" folder="C:\MEFiles\Displays"> <component file="overview.xml"/> </category> <category type="Graphics;Global Objects" folder="C:\MEFiles\GOs"> <component file="common.xml"/> </category> </hmi>
Adding a language file to an existing application:
<hmi> <category type="Language;Files" folder="C:\MEFiles"> <component file="Excelname.xls"/> </category> </hmi>
Adding alarm setup files to an existing application:
<hmi> <category type="Alarm Setup;Files" folder="C:\MEFiles"> <component file="Alarmfiles.xml"/> </category> </hmi>
Adding information messages to an existing application:
<hmi> <category type="InfoMessages;Tables" folder="C:\TagFile\InfoMessages"> <component file="me_aa.ifm"/> </category> </hmi>
Adding recipe files to an existing application:
<hmi> <category type="RecipePlus;Editor" folder="C:\TagFile\RecipePlus"> <component file="ME_RecipePlus.rpp"/> </category> </hmi>
The component category types and their associated application tree folder names are defined in the following table.
Component Category Type | Application Tree Folder Name |
---|---|
Graphics;Displays | Displays |
Graphics;DisplayFolders | Displays |
Graphics;Images | Images |
Graphics;Global Objects | Global Objects |
Graphics;GlobalObjectsFolders | Global Objects |
Parameter;Files | Parameters |
MessageServer;Tables | Local Messages |
TagDb;Files | Tags |
Macro;Files | Macros |
Data Logging;Models | Data Log |
InfoMessages;Tables | Information Messages |
RecipePlus;Editor | Recipe Plus Editor |
Alarm Setup;Files | Alarm Setup |
Language;Files |
Provide Feedback