<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <startup>
    
  <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/></startup>
  <appSettings>
    <add key="appName" value="MTConnect Adapter"/>
    <!--gestione TIMERS e periodi multipli x thread lenti-->
    <add key="startTimerMs" value="250"/>
    <add key="timerIntMs" value="5"/><!--invio da adapter ad agent: 5ms-->
    <add key="fastCount" value="20"/><!--100ms-->
    <add key="normCount" value="50"/><!--250ms-->
    <add key="slowCount" value="500"/><!--2.5 sec-->
    <add key="alarmSyncCount" value="6000"/><!--30 sec-->
    
    <!--parametri gestione watchdog-->
    <add key="maxAdapterLockSec" value="5"/>
    <!--AREA CONF IP FANUC-->
    <!--SIMULATORE LOCALE
    IP LOOPBACK: 192.168.211.5/255.255.255.0
    ipPLC = "192.168.211.5"-->
    <!--<add key ="ipPLC" value="192.168.211.5" />-->
    <!--SIM PC
    IP ETH: 192.168.139.201/255.255.255.0
    ipPLC = "192.168.139.100"-->
    <!--<add key="ipPLC" value="192.168.139.100" />-->
    <!--<add key="ipPLC" value="192.168.139.1" />-->
    <!--Sviluppo Steamware
    IP ETH: 10.74.82.110/255.255.255.0
    ipPLC = "10.74.82.110"-->
    <add key="ipPLC" value="192.168.157.2"/>
    <!--PRODUZIONE
    IP ETH: 192.168.139.201/255.255.255.0
    ipPLC = "192.168.139.1"-->
    <!--<add key ="ipPLC" value="192.168.139.1" />-->
    <!--OSAI DEV-->
    <!--<add key ="ipPLC" value="192.168.157.2" />-->
    
    <add key="recTime" value="true"/>
    <add key="verbose" value="true"/>
    <add key="loglevel" value="5"/>
    <add key="mode" value="prod"/>
    <!--Definizione avvio Adapter-->
    <add key="autoLoadConf" value="false"/>
    <add key="autoStartOnLoad" value="true"/>
    <add key="openDumpOnStart" value="true"/>
    <add key="startMinimized" value="false"/>
    <add key="windowCanMax" value="true"/>
    <add key="trayClose" value="true"/>
    <add key="autoSaveSec" value="60"/>
    <add key="waitRecMSec" value="10000"/>
    <add key="testCharSep" value="|"/>
    <add key="fattdecimale" value="1000"/>
    <add key="fattConvDistAssi" value="1000"/>
    <!--conf file-->
    <add key="dataPath" value="DATA"/>
    <add key="dataConfPath" value="DATA\CONF"/>
    <add key="dataDatPath" value="DATA\DAT"/>
    <add key="resxPath" value="Resources"/>
    <add key="AlarmList" value="AlarmList.map"/>
    <add key="AlarmListCNC" value="AlarmListCNC.map"/>
    <add key="defaultConfFile" value="Adapter_ItemList.xml"/>
    <add key="defaultPersLayerFile" value="PersistData.dat"/>
    <add key="maxNumDD" value="30"/>
    <add key="defaultEsaFile" value="EsaKvara.ini"/>
    <add key="CounterListFilePath" value="CounterList.map"/>
    <add key="StatusListFilePath" value="StatusList.map"/>
    <add key="SubModeListFilePath" value="SubModeList.map"/>
    <!--conf gestione "semplificata" accesso a tutta la memoria ogni volta-->
    <!--conf x CMS-->
    <add key="procIotMem" value="false"/>
    <!--conf x ESA-KVARA-->
    <!--<add key="procIotMem" value="true"/>-->
    <!--file configurazione IotMem (ESA KVARA)-->
    <add key="IOTByteFilePath" value="IOT_ByteList.map"/>
    <add key="IOTWordFilePath" value="IOT_WordList.map"/>
    <add key="IOTDWordFilePath" value="IOT_DWordList.map"/>
    <add key="IOTStringFilePath" value="IOT_StringList.map"/>
    <!--percorso file scambio dati "lenti" e conf MaintData memory area -->
    <add key="GeneralStatusFilePath" value="CmsGeneralStatus.mtc"/>
    <!--gestione trigger eventi da allarmi-->
    <add key="eStopCode" value="152"/>
    <!--gestione watchdog CMS-->
    <add key="sendWatchDog" value="true"/>
    <add key="ClientSettingsProvider.ServiceUri" value=""/>
  </appSettings>
  <system.web>
    <membership defaultProvider="ClientAuthenticationMembershipProvider">
      <providers>
        <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri=""/>
      </providers>
    </membership>
    <roleManager defaultProvider="ClientRoleProvider" enabled="true">
      <providers>
        <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400"/>
      </providers>
    </roleManager>
  </system.web>
  <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="OPENcontrol"/>
      </basicHttpBinding>
    </bindings>
    <client>
      <endpoint address="http://192.168.20.2:8080" binding="basicHttpBinding" bindingConfiguration="OPENcontrol" contract="OPENcontrol.OPENcontrolPortType" name="OPENcontrol"/>
    </client>
  </system.serviceModel>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <probing privatePath="lib;libs"/>
    </assemblyBinding>
  </runtime>
</configuration>
