将Feature/XP.Common和Feature/XP.Hardware分支合并至Develop/XP.forHardwareAndCommon,完善XPapp注册和相关硬件类库通用类库功能。
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<appSettings>
|
||||
<!-- PLC 连接配置 | PLC Connection Configuration -->
|
||||
<add key="Plc:IpAddress" value="192.168.1.100" />
|
||||
<add key="Plc:Port" value="102" />
|
||||
<add key="Plc:Rack" value="0" />
|
||||
<add key="Plc:Slot" value="1" />
|
||||
<!-- PlcType 可选值 | Available values: S200Smart, S300, S400, S1200, S1500 -->
|
||||
<add key="Plc:PlcType" value="S1200" />
|
||||
|
||||
<!-- 批量读取 DB 块配置 | Bulk Read DB Block Configuration -->
|
||||
<!--
|
||||
ReadDbBlock: 周期性批量读取的 DB 块标识(如 "DB1")
|
||||
信号地址落在 [ReadStartAddress, ReadStartAddress+ReadLength-1] 范围内时走缓存读取
|
||||
其他 DB 块或超出范围的信号自动走单点读取
|
||||
ReadDbBlock: DB block identifier for periodic bulk read (e.g. "DB1")
|
||||
Signals within [ReadStartAddress, ReadStartAddress+ReadLength-1] use cache read
|
||||
Other DB blocks or out-of-range signals use single-point read automatically
|
||||
-->
|
||||
<add key="Plc:ReadDbBlock" value="DB1" />
|
||||
<add key="Plc:ReadStartAddress" value="200" />
|
||||
<add key="Plc:ReadLength" value="200" />
|
||||
|
||||
<!--
|
||||
BulkReadIntervalMs: 批量读取周期(毫秒),控制 PLC 数据缓存刷新频率
|
||||
BulkReadIntervalMs: Bulk read interval (ms), controls PLC data cache refresh frequency
|
||||
-->
|
||||
<add key="Plc:BulkReadIntervalMs" value="100" />
|
||||
|
||||
<!--
|
||||
注意:WriteDbBlock 配置项已移除。
|
||||
写入地址由信号所属 Group 的 DBNumber 自动决定,无需单独配置。
|
||||
Note: WriteDbBlock config has been removed.
|
||||
Write address is determined automatically by the signal's Group DBNumber.
|
||||
-->
|
||||
|
||||
<!-- PLC 超时配置 | PLC Timeout Configuration -->
|
||||
<add key="Plc:ConnectTimeoutMs" value="5000" />
|
||||
<add key="Plc:ReadTimeoutMs" value="3000" />
|
||||
<add key="Plc:WriteTimeoutMs" value="3000" />
|
||||
|
||||
<!-- 自动重连(每 5 秒检测连接状态)| Auto Reconnection (checks every 5 seconds) -->
|
||||
<add key="Plc:bReConnect" value="true" />
|
||||
|
||||
<!--
|
||||
信号定义文件路径(可选,默认为运行目录下的 PlcAddrDfn.xml)
|
||||
Signal definition file path (optional, defaults to PlcAddrDfn.xml in app directory)
|
||||
-->
|
||||
<!-- <add key="PlcAddrDfnXmlPath" value="C:\Config\PlcAddrDfn.xml" /> -->
|
||||
</appSettings>
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user