45 lines
1.9 KiB
XML
45 lines
1.9 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<configuration>
|
|
<appSettings>
|
|
<!-- Serilog 日志配置 -->
|
|
<add key="Serilog:LogPath" value="logs" />
|
|
<add key="Serilog:MinimumLevel" value="Information" />
|
|
<add key="Serilog:EnableConsole" value="true" />
|
|
<add key="Serilog:RollingInterval" value="Day" />
|
|
<add key="Serilog:FileSizeLimitMB" value="100" />
|
|
<add key="Serilog:RetainedFileCountLimit" value="30" />
|
|
|
|
<!-- 射线源配置(key 格式: RaySource:xxx,与 ConfigLoader 一致) -->
|
|
<add key="RaySource:PlcIpAddress" value="192.168.1.100" />
|
|
<add key="RaySource:PlcPort" value="11160" />
|
|
<add key="RaySource:StationNumber" value="1" />
|
|
<add key="RaySource:CpuName" value="X20CP1584" />
|
|
<add key="RaySource:ConnectionTimeout" value="5000" />
|
|
<add key="RaySource:MinVoltage" value="20" />
|
|
<add key="RaySource:MaxVoltage" value="225" />
|
|
<add key="RaySource:MinCurrent" value="10" />
|
|
<add key="RaySource:MaxCurrent" value="1000" />
|
|
<add key="RaySource:WarmUpTimeout" value="300000" />
|
|
<add key="RaySource:StartUpTimeout" value="180000" />
|
|
<add key="RaySource:StatusPollingInterval" value="500" />
|
|
<add key="RaySource:EnableAutoStatusMonitoring" value="true" />
|
|
|
|
<!-- SQLite 数据库配置 -->
|
|
<add key="Sqlite:DbFilePath" value="Data\XP.db" />
|
|
<add key="Sqlite:ConnectionTimeout" value="30" />
|
|
<add key="Sqlite:CreateIfNotExists" value="true" />
|
|
<add key="Sqlite:EnableWalMode" value="true" />
|
|
<add key="Sqlite:EnableSqlLogging" value="false" />
|
|
|
|
<!-- 探测器配置 -->
|
|
<add key="Detector.Type" value="Varex4343"/>
|
|
<add key="Detector.IPAddress" value="192.168.1.101"/>
|
|
<add key="Detector.Port" value="8080"/>
|
|
|
|
<!-- PLC 配置 -->
|
|
<add key="PLC.Type" value="B&R"/>
|
|
<add key="PLC.StationName" value="PLC_STATION"/>
|
|
<add key="PLC.ConnectionTimeout" value="5000"/>
|
|
</appSettings>
|
|
</configuration>
|