增加射线源探测器Z轴锁定联动功能,增加对应plc信号和配置。

This commit is contained in:
QI Mingxuan
2026-05-07 20:24:55 +08:00
parent 5e14fe3d9b
commit bb1b76ee7a
17 changed files with 404 additions and 114 deletions
@@ -66,6 +66,11 @@ namespace XP.Hardware.MotionControl.Config
// 运行参数 | Runtime parameters
config.PollingInterval = Int(get($"{P}:PollingInterval", "100"));
config.DefaultVelocity = Int(get($"{P}:DefaultVelocity", "100"));
// 射线源与探测器Z轴联动配置 | Source-Detector Z-axis linkage configuration
config.SourceDetectorZLinkage.Enabled = bool.TryParse(get($"{P}:SourceDetectorZLinkage:Enabled", "false"), out var enabled) && enabled;
config.SourceDetectorZLinkage.TriggerThreshold = Dbl(get($"{P}:SourceDetectorZLinkage:TriggerThreshold", "1.0"));
config.SourceDetectorZLinkage.SpeedPercent = Int(get($"{P}:SourceDetectorZLinkage:SpeedPercent", "100"));
}
private static LinearAxisConfig LoadLinear(string name, Func<string, string, string> get)