将Feature/XP.Common和Feature/XP.Hardware分支合并至Develop/XP.forHardwareAndCommon,完善XPapp注册和相关硬件类库通用类库功能。
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
namespace XP.Hardware.RaySource.Comet.Messages.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// 全部电压自动定心命令
|
||||
/// </summary>
|
||||
public class AutoCenterCommand : RaySourceCommand
|
||||
{
|
||||
public override string CommandType => "AutoCenter";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace XP.Hardware.RaySource.Comet.Messages.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// 连接 PVI 变量命令
|
||||
/// </summary>
|
||||
public class ConnectVariablesCommand : RaySourceCommand
|
||||
{
|
||||
public override string CommandType => "ConnectVariables";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace XP.Hardware.RaySource.Comet.Messages.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// 断开连接命令
|
||||
/// </summary>
|
||||
public class DisconnectCommand : RaySourceCommand
|
||||
{
|
||||
public override string CommandType => "Disconnect";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace XP.Hardware.RaySource.Comet.Messages.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// 灯丝校准命令
|
||||
/// </summary>
|
||||
public class FilamentCalibrationCommand : RaySourceCommand
|
||||
{
|
||||
public override string CommandType => "FilamentCalibration";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
namespace XP.Hardware.RaySource.Comet.Messages.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// 初始化命令,包含 PVI 连接参数
|
||||
/// </summary>
|
||||
public class InitializeCommand : RaySourceCommand
|
||||
{
|
||||
public override string CommandType => "Initialize";
|
||||
|
||||
/// <summary>
|
||||
/// PLC IP 地址
|
||||
/// </summary>
|
||||
public string IpAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// PLC 端口号
|
||||
/// </summary>
|
||||
public int Port { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// CPU 名称
|
||||
/// </summary>
|
||||
public string CpuName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 源端口号
|
||||
/// </summary>
|
||||
public int SourcePort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 源站号
|
||||
/// </summary>
|
||||
public int StationNumber { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
namespace XP.Hardware.RaySource.Comet.Messages.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// 射线源命令抽象基类
|
||||
/// 所有从主进程发往 Host 进程的请求均继承此类
|
||||
/// </summary>
|
||||
public abstract class RaySourceCommand
|
||||
{
|
||||
/// <summary>
|
||||
/// 命令类型标识
|
||||
/// </summary>
|
||||
public abstract string CommandType { get; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace XP.Hardware.RaySource.Comet.Messages.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// 读取电流命令
|
||||
/// </summary>
|
||||
public class ReadCurrentCommand : RaySourceCommand
|
||||
{
|
||||
public override string CommandType => "ReadCurrent";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace XP.Hardware.RaySource.Comet.Messages.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// 读取错误命令
|
||||
/// </summary>
|
||||
public class ReadErrorsCommand : RaySourceCommand
|
||||
{
|
||||
public override string CommandType => "ReadErrors";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace XP.Hardware.RaySource.Comet.Messages.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// 读取系统状态命令
|
||||
/// </summary>
|
||||
public class ReadSystemStatusCommand : RaySourceCommand
|
||||
{
|
||||
public override string CommandType => "ReadSystemStatus";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace XP.Hardware.RaySource.Comet.Messages.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// 读取电压命令
|
||||
/// </summary>
|
||||
public class ReadVoltageCommand : RaySourceCommand
|
||||
{
|
||||
public override string CommandType => "ReadVoltage";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace XP.Hardware.RaySource.Comet.Messages.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// 设置电流命令
|
||||
/// </summary>
|
||||
public class SetCurrentCommand : RaySourceCommand
|
||||
{
|
||||
public override string CommandType => "SetCurrent";
|
||||
|
||||
/// <summary>
|
||||
/// 目标电流值(μA)
|
||||
/// </summary>
|
||||
public float Current { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace XP.Hardware.RaySource.Comet.Messages.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// 设置功率模式命令
|
||||
/// </summary>
|
||||
public class SetPowerModeCommand : RaySourceCommand
|
||||
{
|
||||
public override string CommandType => "SetPowerMode";
|
||||
|
||||
/// <summary>
|
||||
/// 功率模式值:1=Micro Focus,2=High Power
|
||||
/// </summary>
|
||||
public int Mode { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace XP.Hardware.RaySource.Comet.Messages.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// 设置电压命令
|
||||
/// </summary>
|
||||
public class SetVoltageCommand : RaySourceCommand
|
||||
{
|
||||
public override string CommandType => "SetVoltage";
|
||||
|
||||
/// <summary>
|
||||
/// 目标电压值(kV)
|
||||
/// </summary>
|
||||
public float Voltage { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace XP.Hardware.RaySource.Comet.Messages.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// 训机设置命令
|
||||
/// </summary>
|
||||
public class TrainingCommand : RaySourceCommand
|
||||
{
|
||||
public override string CommandType => "Training";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace XP.Hardware.RaySource.Comet.Messages.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// 关闭高压命令
|
||||
/// </summary>
|
||||
public class TurnOffCommand : RaySourceCommand
|
||||
{
|
||||
public override string CommandType => "TurnOff";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace XP.Hardware.RaySource.Comet.Messages.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// 开启高压命令
|
||||
/// </summary>
|
||||
public class TurnOnCommand : RaySourceCommand
|
||||
{
|
||||
public override string CommandType => "TurnOn";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace XP.Hardware.RaySource.Comet.Messages.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// TXI 关闭命令
|
||||
/// </summary>
|
||||
public class TxiOffCommand : RaySourceCommand
|
||||
{
|
||||
public override string CommandType => "TxiOff";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace XP.Hardware.RaySource.Comet.Messages.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// TXI 开启命令
|
||||
/// </summary>
|
||||
public class TxiOnCommand : RaySourceCommand
|
||||
{
|
||||
public override string CommandType => "TxiOn";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace XP.Hardware.RaySource.Comet.Messages.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// 暖机设置命令
|
||||
/// </summary>
|
||||
public class WarmUpCommand : RaySourceCommand
|
||||
{
|
||||
public override string CommandType => "WarmUp";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user