<?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
    ipFanuc = "192.168.211.5"-->
    <!--<add key ="ipFanuc" value="192.168.211.5" />-->

    <!--SIM PC
    IP ETH: 192.168.139.201/255.255.255.0
    ipFanuc = "192.168.139.100"-->
    <!--<add key="ipFanuc" value="192.168.139.100" />-->
    <add key="ipFanuc" value="192.168.139.1" />

    <!--PRODUZIONE
    IP ETH: 192.168.139.201/255.255.255.0
    ipFanuc = "192.168.139.1"-->
    <!--<add key ="ipFanuc" value="192.168.139.1" />-->

    <add key="recTime" value="true" />
    <add key="verbose" value="true" />
    <add key="logAll" value="false" />


    <add key="autoLoadConf" value="true"/>
    <add key="defaultConfFile" value="CMS_FANUC.xml"/>
    <add key="defaultPersLayerFile" value="PersistData.mtc" />
    <add key="defaultEsaFile" value="EsaKvara.ini" />
    <add key="autoStartOnLoad" value="true" />
    <add key="openDumpOnStart" value="false"/>
    <add key="startMinimized" value="true"/>

    <add key="autoSaveSec" value="60" />
    
    <add key="XmlHistFilePath" value="c:\IOT\log" />

    <add key="testCharSep" value="|" />

    <!--percorso file scambio dati "lenti" e conf MaintData memory area -->
    <add key="GeneralStatusFilePath" value="CmsGeneralStatus.mtc" />
    <add key="CmsMaintDataConfFilePath" value="CmsMaintDataConf.txt" />
    <add key="CmsStatusDataConfFilePath" value="CmsStatusDataConf.txt" />
    <add key="ScmProdFile" value="SCM_prodFile.pro" />

    <add key="fattdecimale" value="1000" />

    <add key="fattConvDistAssi" value="1000" />


    <add key="D1_NAME" value="CMS-ARES-SIM" />
    <add key="D1_ID" value="demo_123456" />
    <add key="D1_UUID" value="000123456" />
    <add key="D1_PROGRAM" value="PROG_DEMO_01" />
    <add key="PartID" value="Prod_0001" />

    <!--conf file-->
    <add key="adapterConfPath" value="AdapterConf" />
    <add key="AlarmList" value="AlarmList.txt" />
    <add key="SubMode" value="SubMode.txt" />
    
    <!--gestione trigger eventi da allarmi-->
    <add key="eStopCode" value="152" />
    
    <!--gestione watchdog CMS-->
    <add key="sendWatchDog" value="true" />
  </appSettings>
</configuration>