提交代码修改

This commit is contained in:
ldh
2026-11-13 08:38:35 +08:00
parent aa5542b99b
commit 53701e1ad0
7 changed files with 182 additions and 46 deletions
+7 -3
View File
@@ -21,17 +21,18 @@ SilenceOnOpen=1
[ChannelMap]
; A 设备通道 -> B 设备通道(1..7,不能重复)
A1=B4
A1=B7
A2=B5
A3=B1
A4=B2
A4=B6
[Trigger]
; A 设备触发模式 -> B 设备 (TrigSel, FireMode)
; TrigSel: 0=内触发 1=外触发上升沿 2=外触发下降沿
; FireMode: 0=连续 1=单次
; A 主程序只使用 0(内部触发)与 2(软件触发)。
; 若 B 固件在 TrigSel=1 下 Fire 不产生脉冲,可把 Mode2TrigSel 改成 0 试试。
; 软件触发 = 外触发上升沿 + 单次,每次 Fire 前 DLL 会重新置一次单次模式;
; 如果现场确实接外部触发源,反向极性可用 2(下降沿)。
Mode0TrigSel=0
Mode0FireMode=0
Mode1TrigSel=1
@@ -48,6 +49,9 @@ Mode4FireMode=1
; 0=正脉冲 1=负脉冲 2=常高+5V 3=常低GND
OnMode=0
OffMode=3
; 总开关通道:默认 B7。映射到 B7 的 A 通道打开时,B1~B7 全部置为 OnMode;
; 关闭时 B1~B7 全部置为 OffMode。填 0 表示关闭该行为(各通道独立控制)。
MasterChannel=7
[Temperature]
; B 设备没有温度传感器,ts660_read_temperature 固定返回该值。