增加射线源探测器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
@@ -23,6 +23,24 @@ namespace XP.Hardware.MotionControl.Config
/// <summary>默认速度| Default velocity</summary>
public int DefaultVelocity { get; set; } = 100;
/// <summary>射线源与探测器Z轴联动配置 | Source-Detector Z-axis linkage configuration</summary>
public SourceDetectorZLinkageConfig SourceDetectorZLinkage { get; set; } = new();
}
/// <summary>
/// 射线源与探测器Z轴联动配置 | Source-Detector Z-axis linkage configuration
/// </summary>
public class SourceDetectorZLinkageConfig
{
/// <summary>联动启用 | Linkage enabled</summary>
public bool Enabled { get; set; } = false;
/// <summary>联动触发的位置变化阈值(mm| Position change threshold for linkage trigger (mm)</summary>
public double TriggerThreshold { get; set; } = 1.0;
/// <summary>联动移动速度百分比(0-100| Linkage movement speed percentage (0-100)</summary>
public int SpeedPercent { get; set; } = 100;
}
/// <summary>