<?xml version="1.0" encoding="utf-8"?>
<protocol name="Iec104" caption="МЭК-104" module="Iec104" driver="Tcp" version="2.0"
  redundancy="iec" priority="0"
  IPaddress="127.0.0.1" port="2404"
  transmittingK="12" receivingW="8" direction="0" timeStampGi="2" linkAddressLength="0"
  timeShiftS="0" timeShiftW="0" startDelay="0" maxFrameSize="228" overLapped="0" ugSystem="0"
  t0="3000" t1="15000" t2="10000" t3="20000" 
  t4="60000" t5="0" t10="100" t11="5000" t12="100" t14="50" t15="0" t16="0" timeStampCyclic="2" summerTime="0" connectionOscillationRate="0" connectionOscillationCount="0">
  <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,
    transmittingK=transmittingK,receivingW=receivingW,direction=direction,linkAddressLength=linkAddressLength,timeStampGi=timeStampGi,
    timeShiftS=timeShiftS,timeShiftW=timeShiftW,startDelay=startDelay,maxFrameSize=maxFrameSize,overLapped=overLapped,
    t0=t0,t1=t1,t2=t2,t3=t3,t4=t4,t5=t5,t10=t10,t11=t11,t12=t12,t14=t14,ugSystem=ugSystem,t15=t15,t16=t16,timeStampCyclic=timeStampCyclic,summerTime=summerTime,connectionOscillationRate=connectionOscillationRate,connectionOscillationCount=connectionOscillationCount)">
    <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="Iec104" caption="Iec104-master"/>
      <enum item="Iec104Slave" caption="Iec104Slave-slave"/>
    </property>
    <property name="driver" caption="Драйвер"
      type="text"	editing="true" visible="true" key="false">
      <enum item="Tcp" caption="Tcp-master"/>
      <enum item="TcpServer" caption="TcpServer-slave"/>
    </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="TCP-порт"
      type="int"	editing="true" visible="true" key="false"/>
    <property name="linkAddressLength" 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="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="transmittingK" caption="Макс. количество неподтвержденных APDU (k)"
      type="int"	editing="true" visible="true" key="false"/>
    <property name="receivingW" caption="Макс. количество последних подтверждающих APDU (w)"
      type="int"	editing="true" 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="maxFrameSize" caption="Максимальная длина пакета данных"
      type="int" editing="true" visible="true" key="false"/>
    <property name="overLapped" caption="Режим драйвера"
      type="bool" editing="false" visible="false" key="false"/>
    <property name="t0" caption="Таймаут установления соединения (t0,ms)"
      type="int"	editing="true" visible="true" key="false"/>
    <property name="t1" caption="Таймаут при посылке или тестировании APDU (t1,ms)"
      type="int"	editing="true" visible="true" key="false"/>
    <property name="t2" caption="Таймаут для подтверждения принятых APDU (t2,ms)"
      type="int"	editing="true" visible="true" key="false"/>
    <property name="t3" caption="Таймаут передачи тестового APDU (t3,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="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="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="t15" caption="Таймаут циклической передачи (ms)"
      type="int" editing="true" visible="true" key="false"/>
    <property name="t16" caption="Таймаут опроса счетчиков (ms)"
      type="int" editing="true" visible="true" key="false"/>
    <property name="timeStampCyclic" 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="summerTime" caption="Сдвиг летнего времени (протокольный)"
      type="int" editing="true" visible="true" key="false"/>
    <property name="connectionOscillationRate" caption="Таймаут дребезга канала (сек)"
      type="int" editing="true" visible="true" key="false"/>
    <property name="connectionOscillationCount" 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>
