Vous pouvez exporter un fichier modèle XML pour tous les éléments d'un configurateur. Le fichier modèle contient toutes les variables de configuration dont vous avez besoin pour configurer l'élément dans le Project Builder. Si vous remplissez les variables de configuration avec des valeurs dans le fichier modèle XML, vous pouvez les importer pour la configuration dans le Project Builder. Cela vous permet de réduire considérablement le processus de configuration.
Exemple : Fichier modèle XML pour le configurateur 'Sample project (step-by-step)'
<?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>
Conditions préalables
- Vous avez appelé le Designer et ouvert le projet de macro contenant le configurateur pour lequel vous souhaitez effectuer un export.
- Vous avez sélectionné le configurateur dans l'onglet Configurateurs dans la barre latérale.
Exporter un fichier modèle XML
- Dans la liste des éléments, cliquez sur le bouton de commande pour exporter un fichier modèle XML pour l'élément correspondant.
- Le dialogue système Enregistrer le fichier apparaît.
- Enregistrez le fichier dans le répertoire souhaité.
Remarques
- Un fichier modèle XML contient des commentaires sur les noms de variables, les types de variables et les valeurs prédéfinies. Cela vous permet d'identifier immédiatement les valeurs que vous pouvez saisir pour un élément de structure spécifique. Chaque commentaire commence par <!-- et se termine par -->.
- L'export d'un fichier modèle XML est disponible à partir du module supplémentaire Advanced.