<?xml version="1.0" encoding="utf-8"?>
<protocol name="C37.118" caption="СВИ" module="C37.118" driver="Tcp" version="2.0"
  redundancy="" priority="0"
  IPaddress="127.0.0.1" port="4712" portLocal="0"
  timeShiftS="0" timeShiftW="0" startDelay="0"
  t0="2000" idCode="1" timeBase="16777215" dataRate="1">
  <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,
      timeShiftS=timeShiftS,timeShiftW=timeShiftW,startDelay=startDelay,
      t0=t0,idCode=idCode,timeBase=timeBase,dataRate=dataRate)">
    <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="C37client" caption="C37.118 клиент"/>
      <enum item="C37server" caption="C37.118 сервер"/>
    </property>
    <property name="driver" caption="Драйвер"
      type="text"	editing="false" visible="true" key="false">
      <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="false" 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="startDelay" caption="???"
      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="t0" caption="Таймаут подключения (ms)"
      type="int" editing="true" visible="true" key="false"/>
    <property name="idCode" caption="Идентификационный номер источника"
      type="int" editing="true" visible="true" key="false"/>
    <property name="timeBase" caption="Точность метки времени"
      type="int" editing="true" visible="true" key="false"/>
    <property name="dataRate" caption="Рейтинг передачи данных"
      type="int" editing="true" visible="true" key="false"/>
  </properties>
 	<remoteunit caption="Устройство" idcode="1" stn="Станция" format0="0" format1="0" format2="0" format3="0" fnom="1" cfgcnt="0">
    <properties title="caption" format="%s">
      <property name="caption" caption="Наименование"
        type="text"	editing="true" visible="true" key="false"/>
      <property name="idcode" caption="Идентификационный номер источника"
        type="int" editing="true" visible="true" key="true"/>
      <property name="stn" caption="Имя станции"
        type="text" editing="true" visible="true" key="false"/>
      <property name="format0" caption="Схема звезда / треугольник"
        type="bool" editing="true" visible="true" key="false"/>
      <property name="format1" caption="Плавающий формат векторных измерений"
        type="bool" editing="true" visible="true" key="false"/>
      <property name="format2" caption="Плавающий формат аналоговых измерений"
        type="bool" editing="true" visible="true" key="false"/>
      <property name="format3" caption="Плавающий формат частоты"
        type="bool" editing="true" visible="true" key="false"/>
      <property name="fnom" caption="Номинал частоты"
        type="int" editing="true" visible="true" key="false"/>
      <property name="cfgcnt" caption="Идентификационный номер конфигурации"
        type="int" editing="true" visible="true" key="false"/>
    </properties>
    <source caption=" " chnam="frame" type="1" unit="1">
      <properties title="chnam,caption" format="%s, %s"
     	  rdx="rtu(idcode=remoteunit.idcode,stn=remoteunit.stn,format0=remoteunit.format0,format1=remoteunit.format1,format2=remoteunit.format2,format3=remoteunit.format3,fnom=remoteunit.fnom,cfgcnt=remoteunit.cfgcnt,chnam=chnam,type=type,unit=unit)">
        <property name="caption" caption="Наименование" type="text" editing="true" visible="true" key="false"/>
        <property name="chnam" caption="Имя канала" type="text" editing="true" visible="true" key="true" rep="%d"/>
        <property name="type" caption="Тип канала" type="int" editing="true" visible="true" key="true">
          <enum item="1" caption="Кадр данных"/>
          <enum item="2" caption="Векторное измерение, complex"/>
          <enum item="3" caption="Векторное измерение, real"/>
          <enum item="4" caption="Векторное измерение, img."/>
          <enum item="5" caption="Аналоговое измерение"/>
          <enum item="6" caption="Цифровой вход"/>
          <enum item="7" caption="Частота"/>
        </property>
        <property name="unit" caption="Коэффициент" type="int" editing="true" visible="true" key="false" rep="%d"/>
      </properties>
    </source>
    <pass caption=" " chnam="frame" type="1" unit="1">
      <properties title="chnam,caption" format="%s, %s"
     	  rdx="rtu(idcode=remoteunit.idcode,stn=remoteunit.stn,format0=remoteunit.format0,format1=remoteunit.format1,format2=remoteunit.format2,format3=remoteunit.format3,fnom=remoteunit.fnom,cfgcnt=remoteunit.cfgcnt,chnam=chnam,type=type,unit=unit)">
        <property name="caption" caption="Наименование" type="text" editing="true" visible="true" key="false"/>
        <property name="chnam" caption="Имя канала" type="text" editing="true" visible="true" key="true" rep="%d"/>
        <property name="type" caption="Тип канала" type="int" editing="true" visible="true" key="true">
          <enum item="1" caption="Кадр данных"/>
          <enum item="2" caption="Векторное измерение, complex"/>
          <enum item="3" caption="Векторное измерение, real"/>
          <enum item="4" caption="Векторное измерение, img."/>
          <enum item="5" caption="Аналоговое измерение"/>
          <enum item="6" caption="Цифровой вход"/>
          <enum item="7" caption="Частота"/>
        </property>
        <property name="unit" caption="Коэффициент" type="int" editing="true" visible="true" key="false" rep="%d"/>
      </properties>
    </pass>
  </remoteunit>
</protocol>
