Files
Delay-WZ/TS660_Bridge.ini.sample
2026-11-13 08:38:35 +08:00

65 lines
2.1 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
; TS660_DLL(B 设备版)可选配置文件
;
; 用法:把本文件改名为 TS660_Bridge.ini,与 TS660_DLL.dll 放在同一目录。
; 不提供本文件时,DLL 使用下面列出的内置默认值,行为完全一致。
;
; 注意:所有数值都可用十进制;布尔值用 1/0。
[Bridge]
; 串口名覆盖。留空 = 使用主程序配置项 SelectedSPort_Delayer 里的端口(如 COM3)。
Port=
; 波特率。0 表示按 ts660_init 传入值,仍为 0 时用 9600。
Baud=9600
; 单条命令等待应答的超时(毫秒)。
ReadTimeoutMs=600
; 写命令后等待仪器处理的固定延时(毫秒),与 Tdg7ChlDriver 一致。
WriteSettleMs=10
; 写参数后回读校验;1=开启。
VerifyReadback=1
; 打开串口时先把 7 个通道输出全部置为 OffMode(GND),避免上电残留脉冲。
SilenceOnOpen=1
[ChannelMap]
; A 设备通道 -> B 设备通道(1..7,不能重复)
A1=B7
A2=B5
A3=B1
A4=B6
[Trigger]
; A 设备触发模式 -> B 设备 (TrigSel, FireMode)
; TrigSel: 0=内触发 1=外触发上升沿 2=外触发下降沿
; FireMode: 0=连续 1=单次
; A 主程序只使用 0(内部触发)与 2(软件触发)。
; 软件触发 = 外触发上升沿 + 单次,每次 Fire 前 DLL 会重新置一次单次模式;
; 如果现场确实接外部触发源,反向极性可用 2(下降沿)。
Mode0TrigSel=0
Mode0FireMode=0
Mode1TrigSel=1
Mode1FireMode=0
Mode2TrigSel=1
Mode2FireMode=1
Mode3TrigSel=2
Mode3FireMode=0
Mode4TrigSel=2
Mode4FireMode=1
[Output]
; 通道开启/关闭时写入 B 的 Ch{n}Out 值:
; 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 固定返回该值。
Celsius=25.0
[Log]
; 调试时置 1,会把每条收发命令写入日志,便于定位串口/协议问题。
Enable=0
; 留空 = DLL 同目录 TS660_Bridge.log;也可以写绝对路径(需可写目录)。
File=