<?xml version="1.0" encoding="utf-8"?>
<protocol name="Bridge" caption="Шлюз" module="ModExt.ModBridge" driver="TcpServer" version="2.0"
  redundancy="bridge" priority="0"
	IPaddress="127.0.0.1" port="1412"	password="" 
  tuwait="10000" delimiter="."
  timeShiftS="0" timeShiftW="0" startDelay="0"        
  t0="3000" t1="1000" t2="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,
      password=password,tuwait=tuwait,delimiter=delimiter,
      timeShiftS=timeShiftS,timeShiftW=timeShiftW,startDelay=startDelay,
      t0=t0,t1=t1,t2=t2,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="false" visible="true" key="false">
      <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="password" caption="Пароль"
      type="text"	editing="true" visible="true" key="false"/>
    <property name="tuwait" caption="Таймаут ТУ (ms)"
      type="int"	editing="true" visible="true" key="false"/>
    <property name="delimiter" caption="Символ разделитель"
      type="text"	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="false" key="false"/>
    <property name="t1" caption="Периодический контроль (ms)"
      type="int"	editing="true" visible="false" key="false"/>
    <property name="t2" caption="Кеширование значений (ms)"
      type="int"	editing="true" visible="true" key="false"/>
    <property name="t14" caption="Таймаут ожидания не в overlaped режиме (ms)"
      type="int" editing="false" visible="false" key="false"/>
    <property name="tagname" caption="Адрес тэга. Имя свойства"
      type="text" editing="false" visible="false" key="false"/>
    <property name="tagtype" caption="Тип значения тэга. Имя свойства"
      type="text" editing="false" visible="false" key="false"/>
  </properties>
  <remoteunit name="" caption="Группа тэгов" path="">
    <properties title="caption" format="%s">
      <property name="caption" caption="Наименование"
        type="text"	editing="true" visible="true" key="false"/>
      <property name="name" caption="Имя"
        type="text"	editing="true" visible="true" key="true" rep="rtu_%d"/>
      <property name="path" caption="path" type="text" editing="false" visible="true" key="false"/>
    </properties>
    <source tagname="" tagtype="6" caption="">
      <properties title="tagname, caption" format="%s, %s"
        rdx="informationObject(tagname=tagname,tagtype=tagtype,unitname=remoteunit.name)">
        <property name="caption" caption="Наименование"
          type="text"	editing="true" visible="true" key="false"/>
        <property name="tagname" caption="Имя тэга (.)"
          type="text"	editing="true" visible="true" key="true" rep="tag_%d"/>
        <property name="tagtype" caption="Тип значения"
          type="text"	editing="true" visible="true" key="false">
          <enum item="1" caption="BOOL"/>
          <enum item="2" caption="BYTE (UI1)"/>
          <enum item="3" caption="INT16 (I2)"/>
          <enum item="4" caption="WORD (U2)"/>
          <enum item="5" caption="INT32 (I4)"/>
          <enum item="6" caption="DWORD (U4)"/>
          <enum item="7" caption="INT64 (I8)"/>
          <enum item="8" caption="FLOAT (R4)"/>
          <enum item="9" caption="DOUBLE (R8)"/>
          <enum item="10" caption="TEXT"/>
          <enum item="11" caption="BLOB"/>
        </property>
      </properties>
    </source>
    <pass tagname="" tagtype="6" caption="">
      <properties title="tagname,caption" format="%s, %s"
        rdx="crt(tagname=tagname,tagtype=tagtype,unitname=remoteunit.name)">
        <property name="caption" caption="Наименование"
          type="text"	editing="true" visible="true" key="false"/>
        <property name="tagname" caption="Имя тэга (.)"
          type="text"	editing="true" visible="true" key="true" rep="tag_%d"/>
        <property name="tagtype" caption="Тип значения"
          type="text"	editing="true" visible="true" key="false" rep="%d">
          <enum item="1" caption="BOOL"/>
          <enum item="2" caption="BYTE (UI1)"/>
          <enum item="3" caption="INT16 (I2)"/>
          <enum item="4" caption="WORD (U2)"/>
          <enum item="5" caption="INT32 (I4)"/>
          <enum item="6" caption="DWORD (U4)"/>
          <enum item="7" caption="INT64 (I8)"/>
          <enum item="8" caption="FLOAT (R4)"/>
          <enum item="9" caption="DOUBLE (R8)"/>
          <enum item="10" caption="TEXT"/>
          <enum item="11" caption="BLOB"/>
        </property>
      </properties>
    </pass>
    <controlsource tagname="" tagtype="1" caption="">
      <properties title="tagname,caption" format="%s, %s"
        rdx="informationObject(tagname=tagname,tagtype=tagtype,unitname=remoteunit.name)">
        <property name="caption" caption="Наименование"
          type="text"	editing="true" visible="true" key="false"/>
        <property name="tagname" caption="Имя тэга (.)"
          type="text"	editing="true" visible="true" key="true" rep="tag_%d"/>
        <property name="tagtype" caption="Тип значения"
          type="text"	editing="false" visible="false" key="false"/>
      </properties>
    </controlsource>
    <controlpass tagname="" tagtype="1" caption="">
      <properties title="tagname,caption" format="%s, %s"
        rdx="crt(tagname=tagname,tagtype=tagtype,unitname=remoteunit.name)">
        <property name="caption" caption="Наименование"
          type="text"	editing="true" visible="true" key="false"/>
        <property name="tagname" caption="Имя тэга (.)"
          type="text"	editing="true" visible="true" key="true" rep="tag_%d"/>
        <property name="tagtype" caption="Тип значения"
          type="text"	editing="false" visible="false" key="false"/>
      </properties>
    </controlpass>
  </remoteunit>
</protocol>

