Du kan eksportere en XML-filskabelon for alle elementer i en konfigurator. Filskabelonen indeholder alle konfigurationsvariabler, som du har behov for til at konfigurere elementet i Project Builder. Hvis du fylder konfigurationsvariablerne i XML-filskabelonen med værdier, kan du importere dem i konfigurationen i Project Builder. På denne måde forkortes konfigurationsprocessen betydeligt.
Eksempel: XML-filskabelon til konfiguratoren 'Projekteksempel (trin for trin)'
<?xml version="1.0" encoding="utf-8"?>
<Configuration typical="Sample project (step-by-step)">
<ConfigurationVariables>
<!-- Name: 'OP_Power_supply_400V' | Type: Boolean -->
<ConfigurationVariable name="OP_Power_supply_400V"></ConfigurationVariable>
<!-- Name: 'OP_Measurement_transformer' | Type: Boolean -->
<ConfigurationVariable name="OP_Measurement_transformer"></ConfigurationVariable>
<!-- Name: 'SE_Light_power' | Type: Boolean -->
<ConfigurationVariable name="SE_Light_power"></ConfigurationVariable>
<!-- Name: 'SE_Receptacle_power' | Type: Integer | Selection Values: 0; 1; 2; 3 -->
<ConfigurationVariable name="SE_Receptacle_power"></ConfigurationVariable>
<!-- Name: 'OP_Power_supply_24V' | Type: Boolean -->
<ConfigurationVariable name="OP_Power_supply_24V"></ConfigurationVariable>
<!-- Name: 'SE_Light_control' | Type: Boolean -->
<ConfigurationVariable name="SE_Light_control"></ConfigurationVariable>
<!-- Name: 'SE_Receptacle_control' | Type: Integer | Selection Values: 0; 1; 2; 3 -->
<ConfigurationVariable name="SE_Receptacle_control"></ConfigurationVariable>
<!-- Name: 'OP_Transport_1' | Type: Boolean -->
<ConfigurationVariable name="OP_Transport_1"></ConfigurationVariable>
<!-- Name: 'OP_Positioning_1' | Type: Boolean -->
<ConfigurationVariable name="OP_Positioning_1"></ConfigurationVariable>
<!-- Name: 'OP_Transport_2' | Type: Boolean -->
<ConfigurationVariable name="OP_Transport_2"></ConfigurationVariable>
<!-- Name: 'OP_Positioning_2' | Type: Boolean -->
<ConfigurationVariable name="OP_Positioning_2"></ConfigurationVariable>
<!-- Name: 'OP_Positioning_3' | Type: Boolean -->
<ConfigurationVariable name="OP_Positioning_3"></ConfigurationVariable>
<!-- Name: 'OP_Grinding_right' | Type: Boolean -->
<ConfigurationVariable name="OP_Grinding_right"></ConfigurationVariable>
<!-- Name: 'OP_Grinding_left' | Type: Boolean -->
<ConfigurationVariable name="OP_Grinding_left"></ConfigurationVariable>
<!-- Name: 'OP_Transport_3' | Type: Boolean -->
<ConfigurationVariable name="OP_Transport_3"></ConfigurationVariable>
<!-- Name: 'OP_Machine_protection' | Type: Boolean -->
<ConfigurationVariable name="OP_Machine_protection"></ConfigurationVariable>
<!-- Name: 'OP_Switch_Panel' | Type: Boolean -->
<ConfigurationVariable name="OP_Switch_Panel"></ConfigurationVariable>
<!-- Name: 'OP_Machine_operation' | Type: Boolean -->
<ConfigurationVariable name="OP_Machine_operation"></ConfigurationVariable>
<!-- Name: 'OP_Panel_Enclosure' | Type: Boolean -->
<ConfigurationVariable name="OP_Panel_Enclosure"></ConfigurationVariable>
<!-- Name: 'OP_Panel_Control' | Type: Boolean -->
<ConfigurationVariable name="OP_Panel_Control"></ConfigurationVariable>
<!-- Name: 'OP_Infrastructure' | Type: Boolean -->
<ConfigurationVariable name="OP_Infrastructure"></ConfigurationVariable>
</ConfigurationVariables>
</Configuration>
Forudsætninger
- Du har åbnet Designer og har åbnet det makroprojekt, der indeholder den konfigurator, for hvilken du vil gennemføre en eksport.
- Du har valgt konfiguratoren i tabulatoren Konfiguratorer i Sideliste.
Eksport af XML-filskabelon
- I listen med Elementer klikker du på trykknappen for at eksportere en XML-filskabelon for det pågældende element.
- Systemdialogboksen Gem fil vises.
- Gem filen i den ønskede mappe.
Anvisninger
- En XML-filskabelon indeholder kommentarer til variabelnavne, variabeltyper og foruddefinerede værdier. Derved kan du straks se, hvilke værdier du kan indtaste ved et bestemt strukturelement. Alle kommentarer starter med <!-- og slutter med -->.
- Du har adgang til at eksportere en XML-skabelonfil fra og med det versionsrelaterede modul Advanced.