コンフィギュレーターの要素ごとに、XML テンプレート ファイルをエクスポートできます。テンプレート ファイルには Project Builder で要素の構成に必要なすべての構成変数が含まれています。XML テンプレート ファイル内の構成変数に値を設定した場合、これらを構成用に Project Builder にインポートできます。この方法によって構成プロセスが明らかに短縮されます。
例: コンフィギュレーター 'Sample project (step-by-step)' 用 XML テンプレート ファイル
<?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>
必須条件
- [Designer] を開き、エクスポートを実行するコンフィギュレーターが格納されているマクロ プロジェクトを開いていること。
- サイド バーの [コンフィギュレーター] タブでコンフィギュレーターを選択していること。
XML テンプレート ファイルのエクスポート
- 対応する要素の XML テンプレート ファイルをエクスポートするには、[要素] リストで ボタンをクリックします。
- [ファイルの保存] システム ダイアログが表示されます。
- 任意のディレクトリにファイルを保存します。
注記
- XML テンプレート ファイルには変数名、変数タイプ、定義済みの値に関するコメントが含まれています。このため、特定の構造要素に入力可能な値をただちに把握できます。各コメントは <!-- で始まり --> で終わります。
- XML テンプレートのエクスポートは Advanced モジュール パッケージで実行できます。