<?xml version="1.0" encoding="utf-8"?>
<protocol name="Iec103" caption="МЭК-103" module="Iec103" driver="Async" version="2.0"
  redundancy="103" priority="0"
  IPaddress="127.0.0.1" port="2406"
  portNumber="1" baudRate="19200" dataBits="8" parity="2" stopBits="0"
  portCfg="0" timeoutCfg="0" 
  direction="0" linkAddressLength="1"
  timeShiftS="0" timeShiftW="0" startDelay="0" runDelay="0" maxFrameSize="228"       
  t0="3000" t1="1000" 
  t2="2000" t3="3000" 
  t4="60000" t5="0"
  t6="900"        
  t10="100" t11="3600000" t12="100"
  t13="100" t14="50">
  <properties title="number,caption,name" format="%s, %s (%s)"
    rdx="line(index=number,name=name,type=module,driver=driver,redLine=priority,
      IPaddress=IPaddress,port=port,portLocal=portLocal,
      portNumber=portNumber,baudRate=baudRate,dataBits=dataBits,parity=parity,stopBits=stopBits,
	  portCfg=portCfg,timeoutCfg=timeoutCfg,
      direction=direction,linkAddressLength=linkAddressLength,
      timeShiftS=timeShiftS,timeShiftW=timeShiftW,startDelay=startDelay,runDelay=runDelay,maxFrameSize=maxFrameSize,
      t0=t0,t1=t1,t2=t2,t3=t3,t4=t4,t5=t5,t6=t6,t10=t10,t11=t11,t12=t12,t13=t13,t14=t14)">
    <property name="name" caption="Протокол"
      type="text"	editing="false" visible="false" key="false"/>
    <property name="caption" caption="Наименование"
      type="text"	editing="true" visible="true" key="false"/>
    <property name="module" caption="Модуль"
          type="text"	editing="false" visible="true" key="false"/>
    <property name="driver" caption="Драйвер"
      type="text"	editing="true" visible="true" key="false">
      <enum item="Async" caption="COM-порт (Serial)"/>
      <enum item="Tcp" caption="Tcp-master"/>
      <enum item="TcpServer" caption="TcpServer-slave"/>
      <enum item="Udp" caption="Udp"/>
    </property>
    <property name="redundancy" caption="Резервирование"
   	  type="text"	editing="false" visible="false" key="false"/>
    <property name="priority" caption="Приоритет"
      type="int"	editing="true" visible="true" key="false">
      <range min="0" max="100"/>
    </property>
    <property name="IPaddress" caption="IP-адрес"
      type="text"	editing="true" visible="true" key="false"/>
    <property name="port" caption="Порт абонента"
      type="int"	editing="true" visible="true" key="false"/>
    <property name="portLocal" caption="Порт драйвера"
      type="int"	editing="true" visible="true" key="false"/>
    <property name="portNumber" caption="COM-порт"
      type="int"	editing="true" visible="true" key="false"/>
    <property name="baudRate" caption="Скорость"
      type="int"	editing="true" visible="true" key="false">
      <enum item="9600" caption="9600"/>
      <enum item="19200" caption="19200"/>
      <enum item="38400" caption="38400"/>
      <enum item="56000" caption="56000"/>
      <enum item="57600" caption="57600"/>
      <enum item="115200" caption="115200"/>
    </property>
    <property name="dataBits" caption="Длина слова"
      type="int"	editing="true" visible="false" key="false">
      <enum item="5" caption="5"/>
      <enum item="6" caption="6"/>
      <enum item="7" caption="7"/>
      <enum item="8" caption="8*"/>
    </property>
    <property name="parity" caption="Паритет"
      type="int"	editing="true" visible="true" key="false">
      <enum item="0" caption="0-NOPARITY"/>
      <enum item="1" caption="1-ODDPARITY"/>
      <enum item="2" caption="2-EVENPARITY*"/>
      <enum item="3" caption="3-MARKPARITY"/>
    </property>
    <property name="stopBits" caption="Количество стоп-бит"
      type="int"	editing="true" visible="true" key="false">
      <enum item="0" caption="0-ONESTOPBIT*"/>
      <enum item="1" caption="1-ONE5STOPBITS"/>
      <enum item="2" caption="2-TWOSTOPBITS"/>
    </property>
    <property name="portCfg" caption="Удаленное конфигурирование (TCP-порт)"
      type="int"	editing="true" visible="true" key="false"/>
    <property name="timeoutCfg" caption="Удаленное конфигурирование (таймаут, сек)"
      type="int"	editing="true" visible="true" key="false"/>
    <property name="direction" caption="Физическое направление передачи"
      type="int" editing="false" visible="true" key="false"/>
    <property name="linkAddressLength" caption="Длина поля адреса канала"
      type="int" editing="false" visible="true" key="false"/>
    <property name="timeShiftS" caption="Сдвиг летнего времени(s)"
      type="int"	editing="true" visible="true" key="false"/>
    <property name="timeShiftW" caption="Сдвиг зимнего времени(s)"
      type="int"	editing="true" visible="true" key="false"/>
    <property name="t0" caption="Период попыток открытия порта (ms)"
      type="int" editing="true" visible="true" key="false"/>
    <property name="t1" caption="Таймаут ожидания ответа (ms)"
      type="int" editing="true" visible="true" key="false"/>
    <property name="maxFrameSize" caption="Максимальная длина пакета данных"
      type="int" editing="true" visible="true" key="false"/>
    <property name="runDelay" caption="Задержка опроса при чтении данных (ms)"
      type="int" editing="true" visible="true" key="false"/>
    <property name="t2" caption="Таймаут проверки соединения в балансном режиме (ms)"
      type="int" editing="true" visible="true" key="false"/>
    <property name="t3" caption="Таймаут ожидания ответа в балансном режиме (ms)"
      type="int" editing="true" visible="true" key="false"/>
    <property name="t4" caption="Период синхронизации часов КП (ms)"
      type="int"	editing="true" visible="true" key="false"/>
    <property name="t5" caption="Период общего опроса (ms)"
      type="int"	editing="true" visible="true" key="false"/>
    <property name="t6" caption="Таймаут передачи тестового APDU при резервировании (t6,ms)"
      type="int"	editing="true" visible="true" key="false"/>
    <property name="t10" caption="ТУ. Таймаут внутреннего протокола (ms)"
      type="int"	editing="true" visible="false" key="false"/>
    <property name="t11" caption="Таймаут подтверждения ТУ (ms)"
      type="int"	editing="true" visible="true" key="false"/>
    <property name="t12" caption="Таймаут синхронизации времени (ms)"
      type="int"	editing="true" visible="false" key="false"/>
    <property name="t13" caption="Таймаут обмена по TCP/IP (ms)"
      type="int"	editing="true" visible="false" key="false"/>
    <property name="t14" caption="Таймаут ожидания не в overlaped режиме (ms)"
      type="int" editing="false" visible="false" key="false"/>
    <property name="no" caption="Адрес тэга. Имя свойства"
      type="text" editing="false" visible="false" key="false"/>
    <property name="function" caption="Тип значения тэга. Имя свойства"
      type="text" editing="false" visible="false" key="false"/>
  </properties>
 	<remoteunit asduAddressLength="1" cotLength="1" NoLength="1" linkAddress="1" asduAddress="1" modeGI="1" utcLocal="0" repeat="3" caption="Устройство" oscPath="">
    <properties title="caption" format="%s">
      <property name="caption" caption="Наименование" type="text"	editing="true" visible="true" key="false"/>
      <property name="asduAddressLength" caption="Размер общего адреса ASDU" type="int"	editing="false" visible="true" key="false"/>
      <property name="cotLength" caption="Длина поля причины передачи" type="int"	editing="false" visible="true" key="false"/>
      <property name="NoLength" caption="Длина адреса объекта информации" type="int"	editing="false" visible="true" key="false"/>
      <property name="linkAddress" caption="Адрес канала" type="int"	editing="true" visible="true" key="true"/>
      <property name="asduAddress" caption="Общий адрес ASDU" type="int"	editing="true" visible="true" key="true"/>
      <property name="modeGI" caption="Общий опрос" type="bool"	editing="true" visible="true" key="false"/>
      <property name="utcLocal" caption="Синхронизация времени" type="int"	editing="true" visible="true" key="false">
        <enum item="0" caption="0, отсутствует"/>
        <enum item="1" caption="1, локальное время"/>
        <enum item="2" caption="2, UTC время"/>
      </property>
      <property name="repeat" caption="Количество повторных запросов" type="int" editing="true" visible="true" key="false"/>
      <property name="oscPath" caption="Папка для осциллограмм" type="text" editing="true" visible="true" key="false"/>
    </properties>
    <!-- Master принимает значение -->
    <source caption="" function="1" function103="1" no="1" no_ts="0" element="0">
      <properties title="no,caption" format="%s, %s"
     	  rdx="rtu(asduAddressLength=remoteunit.asduAddressLength, cotLength=remoteunit.cotLength, NoLength=remoteunit.NoLength, 
          linkAddress=remoteunit.linkAddress, asduAddress=remoteunit.asduAddress, modeGI=remoteunit.modeGI, 
          utcLocal=remoteunit.utcLocal, repeat=remoteunit.repeat, oscPath=remoteunit.oscPath, 
          function=function, function103=function103, no=no, element=element,no_ts=no_ts)">
        <property name="caption" caption="Наименование" type="text"	editing="true" visible="true" key="false"/>
        <property name="function" caption="Идентификатор типа" type="int"	editing="true" visible="true" key="false"/>
        <property name="function103" caption="Тип функции" type="int"	editing="true" visible="true" key="false"/>
        <property name="no" caption="Номер информации" type="int"	editing="true" visible="true" key="true" rep="%d"/>
        <property name="element" caption="Элемент информации" type="int"	editing="true" visible="true" key="true"/>
        <property name="no_ts" caption="Адрес дополнительного ts" type="int" editing="false" visible="false" key="true"/>
      </properties>
    </source>
    <!-- Slave принимает значение -->
    <pass caption="" function="1" function103="1" element="1" no="1" no_ts="0">
      <properties title="no,caption" format="%s, %s "
     	  rdx="crt(asduAddressLength=remoteunit.asduAddressLength, cotLength=remoteunit.cotLength, NoLength=remoteunit.NoLength, 
          linkAddress=remoteunit.linkAddress, asduAddress=remoteunit.asduAddress, modeGI=remoteunit.modeGI, 
          utcLocal=remoteunit.utcLocal, repeat=remoteunit.repeat, oscPath=remoteunit.oscPath, 
          function=function, function103=function103, no=no, element=element,no_ts=no_ts)">
        <property name="caption" caption="Наименование" type="text"	editing="true" visible="true" key="false"/>
        <property name="function" caption="Идентификатор типа" type="int"	editing="true" visible="true" key="false"/>
        <property name="function103" caption="Тип функции" type="int"	editing="true" visible="true" key="false"/>
        <property name="element" caption="Номер информации" type="int"	editing="true" visible="true" key="false"/>
        <property name="no" caption="Адрес объекта информации" type="int"	editing="true" visible="true" key="true" rep="%d"/>
        <property name="no_ts" caption="Адрес дополнительного ts" type="int" editing="false" visible="false" key="true"/>
      </properties>
    </pass>
    <!-- Slave посылает команду -->
    <controlsource caption="" function="1" function103="1" element="1" no="1" no_ts="0">
      <properties title="no,caption" format="%s, %s"
     	  rdx="rtu(asduAddressLength=remoteunit.asduAddressLength, cotLength=remoteunit.cotLength, NoLength=remoteunit.NoLength, 
          linkAddress=remoteunit.linkAddress, asduAddress=remoteunit.asduAddress, modeGI=remoteunit.modeGI, 
          utcLocal=remoteunit.utcLocal, repeat=remoteunit.repeat, oscPath=remoteunit.oscPath, 
          function=function, function103=function103, no=no, element=element,no_ts=no_ts)">
        <property name="caption" caption="Наименование" type="text"	editing="true" visible="true" key="false"/>
        <property name="function" caption="Идентификатор типа" type="int"	editing="true" visible="true" key="false"/>
        <property name="function103" caption="Тип функции" type="int"	editing="true" visible="true" key="false"/>
        <property name="element" caption="Номер информации"  type="int"	editing="true" visible="true" key="false"/>
        <property name="no" caption="Адрес объекта информации" type="int"	editing="true" visible="true" key="true" rep="%d"/>
        <property name="no_ts" caption="Адрес дополнительного ts" type="int" editing="false" visible="false" key="true"/>
      </properties>
    </controlsource>
    <!-- Master посылает команду -->
    <controlpass caption="" function="1" function103="1" element="1" no="1" no_ts="0">
      <properties title="no,caption" format="%s, %s "
     	  rdx="crt(asduAddressLength=remoteunit.asduAddressLength, cotLength=remoteunit.cotLength, NoLength=remoteunit.NoLength, 
          linkAddress=remoteunit.linkAddress, asduAddress=remoteunit.asduAddress, modeGI=remoteunit.modeGI, 
          utcLocal=remoteunit.utcLocal, repeat=remoteunit.repeat, oscPath=remoteunit.oscPath, 
          function=function, function103=function103, no=no, element=element,no_ts=no_ts)">
        <property name="caption" caption="Наименование" type="text"	editing="true" visible="true" key="false"/>
        <property name="function" caption="Идентификатор типа" type="int"	editing="true" visible="true" key="false"/>
        <property name="function103" caption="Тип функции" type="int"	editing="true" visible="true" key="false"/>
        <property name="element" caption="Номер информации"  type="int"	editing="true" visible="true" key="false"/>
        <property name="no" caption="Номер информации" type="int"	editing="true" visible="true" key="false"/>
        <property name="no_ts" caption="Адрес дополнительного ts" type="int" editing="false" visible="false" key="true"/>
      </properties>
    </controlpass>
  </remoteunit>
</protocol>
