구성기의 각 요소에 대해 XML 템플릿 파일을 내보낼 수 있습니다. 템플릿 파일에는 요소 구성을 위해 Project Builder에 필요한 모든 구성 변수가 포함되어 있습니다. XML 템플릿 파일에 값으로 구성 변수를 채우는 경우 구성을 위해 Project Builder로 값을 가져올 수 있습니다. 이렇게 하면 구성 프로세스가 현저하게 줄어듭니다.
<?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 템플릿 파일의 내보내기 기능은 고급 모듈 패키지부터 제공됩니다.