Содержание

Настройка Автоматизации

WebConsole

Файл: C:\inetpub\wwwroot\Web.config

Настройки веб консоли

Пример:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  ...
  <appSettings>
    <add key="webpages:Version" value="3.0.0.0" />
    <add key="webpages:Enabled" value="false" />
    <add key="ClientValidationEnabled" value="true" />
    <add key="UnobtrusiveJavaScriptEnabled" value="true" />
    <add key="connectionstring" value="Server=localhost;Port=3306;Database=chromosflow;Uid=chromosflow;Pwd=password;" />
    <add key="PathChromosCalc" value="C:\ChromosFlow\Chromos.Calc.dll" />
    <add key="PathChromosModBus" value="C:\ChromosFlow\Chromos.ModBus.dll" />
    <add key="PathChromosMapper" value="C:\ChromosFlow\Chromos.Mapper.dll" />
    <add key="PathChromosFlow" value="C:\ChromosFlow\Chromos.Flow.exe" />
    <add key="PathChromosWebConsole" value="C:\inetpub\wwwroot\bin\Chromos.WebConsole.dll" />
    <add key="PathChromosDataBase" value="C:\ChromosFlow\Chromos.DataBase.dll" />
    <add key="SchedulerHiddenActions" value="ChangeFlow;AnalysisAbsoluteCalibrationFlow1:AnalysisAbsoluteCalibrationFlow2" />
  </appSettings>
  ...
</configuration>

Shell.config

Файл: C:\ChromosShell\Chromos.Shell.exe.config

Настройки оболочки

Пример:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <appSettings>
    <add key="ChromosPath" value="c:\Program Files\Chromos\Chromos.exe"/>
    <add key="ChromosFlowPath" value="c:\ChromosFlow\Chromos.Flow.exe"/>
 
    <add key="OskPath" value="c:\Windows\System32\osk.exe"/>
    <add key="TaskManager" value="c:\Windows\System32\taskmgr.exe"/>
    <add key="ControlPanel" value="c:\Windows\System32\control.exe"/>
    <add key="FileManager" value="c:\Windows\explorer.exe"/>
    <add key="SiteUrl" value="http://localhost"/>
 
    <add key="ChromosFlowProcessName" value="Chromos.Flow"/>
    <add key="ChromosProcessName" value="Chromos"/>
    <add key="WebConsoleProcessName" value="Chromos.Shell"/>
 
    <add key="TimerInterval" value="3000"/>
    <add key="UserPasswordHash" value="d77004646e27365ae0e4fc90cf8d8a6958a75a1e"/>
    <add key="ProcessStorage" value="True"/>
 
    <add key="InitializationTimeSleep" value="60000"/>
  </appSettings>
</configuration>

Bot

Файл: C:\ChromosFlow\Chromos.Flow.exe.config

Настройки параметров автоматизации

Пример:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <appSettings>
    <add key="connectionstring" value="Server=localhost;Port=3306;Database=chromosflow;Uid=chromosflow;Pwd=password;" />
    <add key="DelayTime" value="60000" />
    <add key="EventTime" value="60000" />
    <add key="ResetTime" value="60000" />
    <add key="EventType" value="1" />
    <add key="MethodCooling" value="Охлаждение" />
    <add key="MethodConditioning" value="Кондиционирование" />
    <add key="MethodFlow1Channel1" value="УВ" />
    <add key="MethodFlow1Channel2" value="О2" />
 
    <add key="ConditioningTimeout" value="600" />
    <add key="LogicTimeout" value="55" />
    <add key="LogicThreads" value="2" />
    ...
  </appSettings>
  ...
</configuration>

Выбор особой пробоподготовки

Пример:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <appSettings>
    ...
    <add key="Preparation" value="ComplexPreparation" />
    ...
  </appSettings>
  ...
</configuration>

Настройки для пробоподготовки на основе ET-7242:

Пример:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <appSettings>
    ...
    <add key="Preparation" value="NetPreparation" />
    <add key="NetPreparationHostName" value="192.168.255.1" />
    <add key="NetPreparationPort" value="502" />
    <add key="NetPreparationStartAddress" value="0" />
    <add key="NetPreparationFlowCount" value="16" />
    <add key="NetPreparationLinear" value="True" />
    ...
  </appSettings>
  ...
</configuration>

Настройка частоты опроса датчиков (индикаторов)

Пример:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <appSettings>
    ...
    <add key="PollingRate" value="30" />
    ...
  </appSettings>
  ...
</configuration>

Настройки индикатора водорода на основе NSENSOR2_0:

Пример:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <appSettings>
    ...
    <add key="HydrogenSensor" value="True" />
    <add key="HydrogenSensorSlaveId" value="126" />
    <add key="HydrogenSensorPortName" value="COM3" />
    <add key="HydrogenSensorBaudRate" value="9600" />
    <add key="HydrogenSensorDataBits" value="8" />
    <add key="HydrogenSensorParity" value="None" />
    <add key="HydrogenSensorStopBits" value="One" />
    <add key="HydrogenSensorReadTimeout" value="500" />
    <add key="HydrogenSensorWriteTimeout" value="500" />
    ...
  </appSettings>
  ...
</configuration>

Настройки индикатора температуры на основе NSENSOR2_0:

Пример:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <appSettings>
    ...
    <add key="TempSensor" value="True" />
    <add key="TempSensorLevel" value="70" />
    <add key="TempSensorSlaveId" value="126" />
    <add key="TempSensorPortName" value="COM3" />
    <add key="TempSensorBaudRate" value="9600" />
    <add key="TempSensorDataBits" value="8" />
    <add key="TempSensorParity" value="None" />
    <add key="TempSensorStopBits" value="One" />
    <add key="TempSensorReadTimeout" value="500" />
    <add key="TempSensorWriteTimeout" value="500" />
    ...
  </appSettings>
  ...
</configuration>

CalibrationSwitchToFlow - Поток для переключения после окончания градуировки (от нуля; для переключения на предыдущий значение -1)

Пример:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <appSettings>
    ...
    <add key="CalibrationSwitchToFlow" value="0" /> 
    ...
  </appSettings>
  ...
</configuration>

Настройки для команд через Modbus

Пример:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <appSettings>
    ...
    <add key="AnalysisActionName" value="SchedulerAction.AnalysisGost3137172008"/>
    <add key="CalibrationActionName" value="SchedulerAction.CalibrationGost3137172008"/>
    ...
  </appSettings>
  ...
</configuration>

PathDatabaseDumps - Каталог для экспорта базы данных

Пример:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <appSettings>
    ...
    <add key="PathDatabaseDumps" value="C:\tmp\dumps\" />
    ...
  </appSettings>
  ...
</configuration>

Modbus

Файл: C:\ChromosFlow\modbus.xml

Карта modbus

Пример:

?xml version="1.0" encoding="utf-8" ?>
<modbus xsi:noNamespaceSchemaLocation="http://kb.has.ru/_media/dev:modbus.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <group flow="0">
    <command addr="0"   data_type="Coil"  name="InCommand.StartAnalysis"/>
    <command addr="1"   data_type="Coil"  name="InCommand.StartCalibration"/>
    <command addr="2"   data_type="Coil"  name="InCommand.PreparationComplete"/>
    <command addr="3"   data_type="Coil"  name="InCommand.PreparationError"/>
    <command addr="0"   data_type="Input" name="OutCommand.StartPreparation"/>
    <command addr="1"   data_type="Input" name="OutCommand.AnalysisEnded"/>
 
    <param addr="1"   data_type="InputRegister" reverse_bytes="false" reverse_words="false" type="ui16"  name="Error.Chromos" />
    <param addr="2"   data_type="InputRegister" reverse_bytes="false" reverse_words="false" type="ui16"  name="Error.Bot" />
    <param addr="49"  data_type="InputRegister" reverse_bytes="false" reverse_words="true"  type="float" name="Property.Gost313692008WobbeV" />
    <param addr="70"  data_type="InputRegister" reverse_bytes="false" reverse_words="true"  type="float" name="Component.methane" />
    <param addr="72"  data_type="InputRegister" reverse_bytes="false" reverse_words="true"  type="float" name="Component.difference" />
 
    <param addr="200" data_type="InputRegister" reverse_bytes="false"  reverse_words="true" type="float"  name="Mixture.1.Ro" />
    <param addr="202" data_type="InputRegister" reverse_bytes="false"  reverse_words="true" type="float" operator="avg_hour"  name="Component.propane" />
    <param addr="204" data_type="InputRegister" reverse_bytes="false"  reverse_words="true" type="float" operator="avg_day"  name="Component.neopentane" />
    <param addr="206" data_type="InputRegister" reverse_bytes="false"  reverse_words="false" type="ui16" operator="avg_hour"  name="AvgFromDate.Hour" />
    <param addr="207" data_type="InputRegister" reverse_bytes="false"  reverse_words="false" type="ui16" operator="avg_day"  name="AvgFromDate.Day" />
    <param addr="208" data_type="InputRegister" reverse_bytes="false"  reverse_words="false" type="ui16" operator="avg_day"  name="AvgToDate.Minute" />
    <param addr="212" data_type="InputRegister" reverse_bytes="false"  reverse_words="true" type="float"  name="Mixture.1.HmolN" />
    <param addr="214" data_type="InputRegister" reverse_bytes="false"  reverse_words="true" type="float"  name="Mixture.1.n_butane" />
    ...
  </group>
  ...
</modbus>

Mapper

Файл: C:\ChromosFlow\mapper.xml

Настройки аналоговых и цифровых выводов через дополнительные устройства с modbus интерфейсом

Пример:

<?xml version="1.0" encoding="utf-8" ?>
<mapper xsi:noNamespaceSchemaLocation="http://kb.has.ru/_media/dev:mapper.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <device host="192.168.255.1" port="502">
        <group addr="0" flow="0" type="rs420">
            <param vmin="35" vmax="45" name="Component.isobutylene" />
            <param vmin="50" vmax="60" name="Component.iso_butane" />
        </group>
        <group addr="2" flow="1" type="rs420" dmin="0" dmax="65535" vmin="0.1" vmax="0.7" operator="sum">
            <param name="Component.propane" />
            <param name="Component.propylene" />
            <param name="Component.propadiene" />
        </group>
     </device>
     <device host="192.168.255.2" port="502">
        <group addr="0" flow="0" data_type="Coil">
           <param vmin="0" vmax="1" name="Error.Chromos" />
           <param vmin="0" vmax="1" name="Error.Bot" />
       </group>
    </device>
</mapper>