You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.2 KiB
C#
59 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Rs.MotionPlat.Flow
|
|
{
|
|
public enum EMachineStatus
|
|
{
|
|
/// <summary>
|
|
/// 未初始化
|
|
/// </summary>
|
|
NotInit,
|
|
/// <summary>
|
|
/// 未回原
|
|
/// </summary>
|
|
NotHomed,
|
|
/// <summary>
|
|
/// 回原中
|
|
/// </summary>
|
|
Homing,
|
|
/// <summary>
|
|
/// 回原完成
|
|
/// </summary>
|
|
Homed,
|
|
/// <summary>
|
|
/// 工作中
|
|
/// </summary>
|
|
Working,
|
|
/// <summary>
|
|
/// 暂停
|
|
/// </summary>
|
|
Stop,
|
|
/// <summary>
|
|
/// 报警中
|
|
/// </summary>
|
|
Warning
|
|
}
|
|
|
|
public class MachineManage
|
|
{
|
|
private static MachineManage instace;
|
|
public static MachineManage Instance
|
|
{
|
|
get
|
|
{
|
|
if (instace == null)
|
|
instace = new MachineManage();
|
|
return instace;
|
|
}
|
|
}
|
|
|
|
private MachineManage() { }
|
|
|
|
public EMachineStatus MachineStatus = EMachineStatus.NotInit;
|
|
}
|
|
}
|