<?xml version="1.0" encoding="utf-8"?>
<DeviceDescription xmlns="http://www.3s-software.com/schemas/DeviceDescription-1.0.xsd"
  xmlns:ts="http://www.3s-software.com/schemas/TargetSettings-0.1.xsd"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Types namespace="localTypes">

	
     <EnumType basetype="std:BYTE" name="OpenBit">
      <Enum identifier="1">
        <Value>0</Value>
        <VisibleName name="local:关闭从站">关闭从站</VisibleName>
      </Enum>
      <Enum identifier="2">
        <Value>1</Value>
        <VisibleName name="local:打开从站t">打开从站</VisibleName>
      </Enum>
    </EnumType>

     <EnumType basetype="std:BYTE" name="PortID">
      <Enum identifier="1">
        <Value>0</Value>
        <VisibleName name="local:eth0">eth0</VisibleName>
      </Enum>
      <Enum identifier="2">
        <Value>1</Value>
        <VisibleName name="local:eth1">eth1</VisibleName>
      </Enum>
    </EnumType>

<RangeType basetype="std:BYTE" name="SlaveID">
<Min>1</Min>
<Max>247</Max>
<Default>1</Default>
</RangeType>
  </Types>

  <Strings namespace="local">
    <Language lang="en">
      <String identifier="ModelName">LCTModbusTCPSlave</String>
      <String identifier="DeviceDescription">LCTModbusTCPSlave</String>
      <String identifier="VendorName">LCT</String>
    </Language>
    <Language lang="zh-CHS">
      <String identifier="ModelName">LCTModbusTCPSlave</String>
      <String identifier="DeviceDescription">Modbus TCP从站</String>
      <String identifier="VendorName">LCT</String>
    </Language>
  </Strings>
  <Device hideInCatalogue="false">
    <DeviceIdentification>
      <Type>33600</Type>
      <Id>17da 0001</Id>
      <Version>1.0.0.2</Version>
    </DeviceIdentification>
    <DeviceInfo>
      <Name name="local:ModelName">LCTModbusTCPSlave</Name>
      <Description name="local:DeviceDescription">LCTModbusTCPSlave</Description>
      <Vendor name="local:VendorName">LCT</Vendor>
      <OrderNumber>*</OrderNumber>
    </DeviceInfo>
    <Connector moduleType="33600" interface="Common.PCI" role="child" explicit="false"
      connectorId="4" hostpath="-1" hideInStatusPage="false">
      <Slot count="1" allowEmpty="false">
      </Slot>
      <InterfaceName name="localStrings:InterfaceName">LCT MODBUS TCP_Slave</InterfaceName>
      <HostParameterSet>
       <Parameter ParameterId="69999" type="localTypes:OpenBit">
          <Attributes channel="none" download="true" functional="false" offlineaccess="readwrite"
            onlineaccess="read" />
          <Name name="local:打开从站">打开从站</Name>
          <Description name="local:打开从站">打开从站</Description>
          <Default>0</Default>
        </Parameter>

      <Parameter ParameterId="70000" type="localTypes:PortID">
          <Attributes channel="none" download="true" functional="false" offlineaccess="readwrite"
            onlineaccess="read" />
          <Name name="local:网口选择">网口选择</Name>
          <Description name="local:网口选择">网口选择</Description>
          <Default>0</Default>
        </Parameter>

        <Parameter ParameterId="70002" type="std:WORD">
          <Attributes channel="none" download="true" functional="false" offlineaccess="read"
            onlineaccess="read" />
          <Name name="local:端口号">端口号</Name>
          <Description name="local:端口号">端口号</Description>
          <Default>502</Default>
        </Parameter>
        

        <Parameter ParameterId="71000" type="std:BIT">
          <Attributes channel="input" download="true" functional="false" offlineaccess="readwrite" onlineaccess="read" />
          <Default>0</Default>
          <Name name="local:Id10000.Desc">从站已打开</Name>
        </Parameter>

        <Parameter ParameterId="71001" type="std:BYTE">
          <Attributes channel="input" download="true" functional="false" offlineaccess="readwrite" onlineaccess="read" />
          <Default>0</Default>
          <Name name="local:Id10000.Desc">从站连接主站数量</Name>
        </Parameter>

      </HostParameterSet>

    </Connector>
    <ExtendedSettings>
      <ts:TargetSettings>
        <ts:section name="deviceconfiguration">
          <ts:setting name="createBitChannels" type="boolean" access="visible">
            <ts:value>1</ts:value>
          </ts:setting>
        </ts:section>
      </ts:TargetSettings>
    </ExtendedSettings>
  </Device>
</DeviceDescription> 