<?xml version="1.0" encoding="utf-8"?>
<protocol name="Iec101" caption="МЭК-101" module="Iec101" driver="Async"
  version="2.0"
  redundancy="iec" 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="0"
  timeShiftS="0" timeShiftW="0" startDelay="0" runDelay="0" maxFrameSize="228" overLapped="0" ugSystem="0" summerTime="0"
  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,timeStampGi=timeStampGi,
      timeShiftS=timeShiftS,timeShiftW=timeShiftW,startDelay=startDelay,runDelay=runDelay,maxFrameSize=maxFrameSize,overLapped=overLapped,
      t0=t0,t1=t1,t2=t2,t3=t3,t4=t4,t5=t5,t6=t6,t10=t10,t11=t11,t12=t12,t13=t13,t14=t14,ugSystem=ugSystem,summerTime=summerTime)">
    <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="true" visible="true" key="false">
      <enum item="Iec101" caption="Iec101-master"/>
      <enum item="Iec101Slave" caption="Iec101Slave-slave"/>
      <enum item="Iec101b" caption="Iec101-balance"/>
    </property>
    <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="100" caption="100"/>
      <enum item="110" caption="110"/>
      <enum item="200" caption="200"/>
      <enum item="300" caption="300"/>
      <enum item="600" caption="600"/>
      <enum item="1200" caption="1200"/>
      <enum item="2400" caption="2400"/>
      <enum item="4800" caption="4800"/>
      <enum item="9600" caption="9600"/>
      <enum item="14400" caption="14400"/>
      <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"/>
      <enum item="128000" caption="128000"/>
      <enum item="256000" caption="256000"/>
    </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="true" visible="true" key="false">
      <enum item="0" caption="0 (от B к A)"/>
      <enum item="1" caption="1 (от A к B)"/>
    </property>
    <property name="linkAddressLength" caption="Длина поля адреса канала"
      type="int"  editing="true" visible="true"  key="false"/>
    <property name="timeStampGi" caption="Метка времени для общего опроса"
      type="int" editing="true" visible="true"  key="false">
      <enum item="0" caption="0-Метка времени нижнего уровня"/>
      <enum item="1" caption="1-Текущая метка времени"/>
      <enum item="2" caption="2-Без метки времени"/>
    </property>
    <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="overLapped" caption="Режим драйвера"
      type="bool" editing="false" visible="false" 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="ugSystem" caption="Синхронизация времени ведомым" 
      type="bool"	editing="true" visible="true" key="false"/>
    <property name="summerTime" caption="Сдвиг летнего времени (протокольный)"
      type="int" editing="true" visible="true" key="false"/>
  </properties>
  <remoteunit asduAddressLength="2" NoLength="3" cotLength="2" linkAddress="0" asduAddress="1" modeGI="1" utcLocal="0" repeat="1" caption="Устройство" path="">
    <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="true" visible="true" key="false"/>
      <property name="NoLength" caption="Длина адреса объекта информации" type="int"	editing="true" visible="true" key="false"/>
      <property name="cotLength" caption="Длина поля причины передачи" type="int"	editing="true" 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="false" visible="false" key="false"/>
      <property name="path" caption="path" type="text" editing="false" visible="true" key="false"/>
    </properties>
    <source caption="" function="0" no="1" no_ts="0" mode="0" duration="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,function=function,no=no,no_ts=no_ts,mode=mode,duration=duration)">
        <property name="caption" caption="Наименование" type="text" editing="true" visible="true" key="false"/>
        <property name="function" caption="Идентификатор типа" type="int" editing="true" visible="true" key="false">
          <enum item="0" caption="0,автоопределение"/>
          <enum item="138" caption="138,состояние"/>
        </property>
        <property name="no" caption="Адрес объекта информации" type="int" editing="true" visible="true" key="true" rep="%d"/>
        <property name="no_ts" caption="Адрес дополнительного ts" type="int" editing="true" visible="true" key="true"/>
        <property name="mode" caption="Одношаговое телеуправление" type="bool" editing="false" visible="false" key="false"/>
        <property name="duration" caption="Длительность импульса" type="int" editing="false" visible="false" key="false">
          <enum item="0" caption="Не определено"/>
          <enum item="2" caption="Короткий импульс"/>
          <enum item="4" caption="Длиный импульс"/>
          <enum item="6" caption="Постоянный выход"/>
        </property>
      </properties>
    </source>
    <pass caption="" function="1" no="1" no_ts="0" mode="0" duration="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,function=function,no=no,no_ts=no_ts,mode=mode,duration=duration)">
        <property name="caption" caption="Наименование" type="text" editing="true" visible="true" key="false"/>
        <property name="function" caption="Идентификатор типа" type="int" editing="true" visible="true" key="false">
          <enum item="1" caption="1,ТС1"/>
          <enum item="3" caption="3,ТС2"/>
          <enum item="7" caption="7,ТС4"/>
          <enum item="9" caption="9,ТИ2,нормализованное"/>
          <enum item="11" caption="11,ТИ2,масштабируемое"/>
          <enum item="13" caption="13,ТИ4"/>
          <enum item="15" caption="15,Интегральное ТИ"/>
          <enum item="30" caption="30,ТС1 с MВ"/>
          <enum item="31" caption="31,ТС2 с MВ"/>
          <enum item="34" caption="34,ТИ2,нормализованное с MВ"/>
          <enum item="35" caption="35,ТИ2,масштабируемое с MВ"/>
          <enum item="36" caption="36,ТИ4 с MВ"/>
          <enum item="37" caption="37,Интегральное ТИ с MВ"/>
        </property>
        <property name="no" caption="Адрес объекта информации" type="int" editing="true" visible="true" key="true" rep="%d"/>
        <property name="no_ts" caption="Адрес дополнительного ts" type="int" editing="true" visible="false" key="true"/>
        <property name="mode" caption="Одношаговое телеуправление" type="bool" editing="false" visible="false" key="false"/>
        <property name="duration" caption="Длительность импульса" type="int" editing="false" visible="false" key="false">
          <enum item="0" caption="Не определено"/>
          <enum item="2" caption="Короткий импульс"/>
          <enum item="4" caption="Длиный импульс"/>
          <enum item="6" caption="Постоянный выход"/>
        </property>
      </properties>
    </pass>
    <controlsource caption="" function="45" no="1" no_ts="0" mode="0" duration="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,function=function,no=no,no_ts=no_ts,mode=mode,duration=duration)">
        <property name="caption" caption="Наименование" type="text"	editing="true" visible="true" key="false"/>
        <property name="function" caption="Идентификатор типа" type="int" editing="true" visible="true" key="false">
          <enum item="45" caption="45,однопозиционное ТУ"/>
          <enum item="46" caption="46,двухпозиционное ТУ"/>
          <enum item="58" caption="58,однопозиционное ТУ с МВ"/>
          <enum item="59" caption="59,двухпозиционное ТУ с МВ"/>
        </property>
        <property name="no" caption="Адрес объекта информации" type="int" editing="true" visible="true" key="true" rep="%d"/>
        <property name="no_ts" caption="Адрес дополнительного ts" type="int" editing="true" visible="false" key="true"/>
        <property name="mode" caption="Одношаговое телеуправление" type="bool" editing="false" visible="false" key="false"/>
        <property name="duration" caption="Длительность импульса" type="int" editing="false" visible="false" key="false">
          <enum item="0" caption="Не определено"/>
          <enum item="2" caption="Короткий импульс"/>
          <enum item="4" caption="Длиный импульс"/>
          <enum item="6" caption="Постоянный выход"/>
        </property>
      </properties>
    </controlsource>
    <controlpass caption="" function="45" no="1" no_ts="0" mode="0" duration="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,function=function,no=no,no_ts=no_ts,mode=mode,duration=duration)">
        <property name="caption" caption="Наименование" type="text" editing="true" visible="true" key="false"/>
        <property name="function" caption="Идентификатор типа" type="int" editing="true" visible="true" key="false">
          <enum item="45" caption="45,однопозиционное ТУ"/>
          <enum item="46" caption="46,двухпозиционное ТУ"/>
          <enum item="47" caption="47"/>
          <enum item="48" caption="48"/>
          <enum item="49" caption="49"/>
          <enum item="50" caption="50"/>
          <enum item="58" caption="58,однопозиционное ТУ с МВ"/>
          <enum item="59" caption="59,двухпозиционное ТУ с МВ"/>
          <enum item="60" caption="60"/>
          <enum item="61" caption="61"/>
          <enum item="62" caption="62"/>
          <enum item="63" caption="63"/>
          <enum item="145" caption="145, однопозиционное ТУ / 2 адреса"/>
        </property>
        <property name="no" caption="Адрес объекта информации" type="int" editing="true" visible="true" key="true" rep="%d"/>
        <property name="no_ts" caption="Дополнительный адрес" type="int" editing="true" visible="true" key="true"/>
        <property name="mode" caption="Одношаговое телеуправление" type="bool" editing="true" visible="true" key="false"/>
        <property name="duration" caption="Длительность импульса" type="int" editing="true" visible="true" key="false">
          <enum item="0" caption="Не определено"/>
          <enum item="2" caption="Короткий импульс"/>
          <enum item="4" caption="Длиный импульс"/>
          <enum item="6" caption="Постоянный выход"/>
        </property>
      </properties>
    </controlpass>
  </remoteunit>
</protocol>
