using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MegaRobo.C00225155.Entities.Entity_DB
{
    /// <summary>
    /// 
    /// </summary>
    public static class PlcPoints_MaterialDose
    {
        /// <summary>
        /// 1s周期 0和1切换
        /// </summary>
        public readonly static ushort R_PLCHeartPluse = 3000;
        /// <summary>
        /// 0：None 1：手动  2：自动
        /// </summary>
        public readonly static ushort R_PLCMode = 3001;
        /// <summary>
        /// 0：None 1:停止  2：运行中 
        /// </summary>
        public readonly static ushort R_PLCRunStatus = 3002;
        /// <summary>
        /// 初始化状态 0：None 1：初始化中 2：初始化失败  3：初始化完成
        /// </summary>
        public readonly static ushort R_PLCInitialStatus = 3003;
        /// <summary>
        /// 消息状态  0：无消息  1：有消息
        /// </summary>
        public readonly static ushort R_PLCInfoStatus = 3004;
        /// <summary>
        /// 处理中任务队列序号
        /// </summary>
        public readonly static ushort R_TransferPlate_inProcessingTaskNo = 3100;
        /// <summary>
        /// 0：需初始化；
        /// 1：硬件故障中；
        /// 2：初始化中；
        /// 3：初始化失败；
        /// 4：功能完全屏蔽中；
        /// 5：准备就绪，空闲中；
        /// 6：与其他单元任务冲突，自主去往避让位置中；
        /// 10：此任务与其他单元任务冲突，是否继续等待？
        /// 11：运行上位机任务中；
        /// 12：运行上位机任务中，但在等待其他单元到避让位置；
        /// 15：运行上位机任务中，部分功能屏蔽；
        /// 16：任务暂停中；
        /// 21：失败；
        /// 22：完成；
        /// 99：任务撤销；
        /// </summary>
        public readonly static ushort R_TransferPlate_RunResult = 3101;

        public readonly static ushort R_TransferPlate_BoxPos = 3102;



        /// <summary>
        /// 机械手处理中任务队列序号
        /// </summary>
        public static ushort R_Robot_inProcessingTaskNo = 3200;
        /// <summary>
        /// 机械臂执行结果  
        /// </summary>
        public readonly static ushort R_Robot_RunResult = 3201;
        public readonly static ushort R_MetAddPowderModuleDoorState = 3220;
        public readonly static ushort R_Robot_ArriveScanPos = 3221;
        public readonly static ushort R_Robot_ArriveSideScanPos = 3222;
        public readonly static ushort R_Robot_ArrivePreWeightPos = 3223;


        /// <summary>
        /// 开关盖&移液枪处理中任务队列序号
        /// </summary>
        public readonly static ushort R_BottleLidAndPipette_inProcessingTaskNo = 3300;
        /// <summary>
        /// 开关盖&移液执行结果
        /// </summary>
        public readonly static ushort R_BottleLidAndPipette_RunResult = 3301;
        /// <summary>
        /// 1ml移液枪Z轴初始化
        /// </summary>
        public readonly static ushort R_1mlPipetteZInit = 3320;
        /// <summary>
        /// 1ml移液枪初始化
        /// </summary>
        public readonly static ushort R_1mlPipetteInit = 3321;


        public readonly static Dictionary<ushort, ushort> W_PCHeartPluse = new Dictionary<ushort, ushort> {
            { (ushort)DeviceNames.Plc1, 2000 }, { (ushort)DeviceNames.Plc2, 2000 }};

        /// <summary>
        /// 模式切换 间隔200ms
        /// </summary>
        public readonly static ushort W_PCMode = 2001;
        /// <summary>
        /// 1:停止  2：运行中 
        /// </summary>
        public readonly static ushort W_PCRunStatus = 2002;
        /// <summary>
        /// 整机初始化
        /// </summary>
        public readonly static ushort W_Initial = 2003;
        /// <summary>
        /// 消息确认
        /// </summary>
        public readonly static ushort W_InformationConfirm = 2004;

        /// <summary>
        /// 上位机有报警提示 0：无  1：有（用于触发蜂鸣器响）
        /// </summary>
        public readonly static ushort W_PCErrorTip = 2008;

        /// <summary>
        /// 上位机有警告提示 0：无  1：有（用于触发蜂鸣器响）
        /// </summary>
        public readonly static ushort W_PCAlarmTip = 2009;

        /// <summary>
        /// 传送平台任务队列序号
        /// </summary>
        public readonly static ushort W_TransferPlate_TaskQueue = 2100;
        /// <summary>
        /// 传送平台任务号
        /// </summary>
        public readonly static ushort W_TransferPlate_TaskNo = 2101;
        /// <summary>
        /// 传送平台任务撤销
        /// </summary>
        public readonly static ushort W_TransferPlate_TaskCancel = 2199;


        /// <summary>
        /// 机械臂任务队列序号
        /// </summary>
        public readonly static ushort W_Robot_TaskQueue = 2200;
        /// <summary>
        /// 机械臂任务号
        /// </summary>
        public readonly static ushort W_Robot_TaskNo = 2201;
        /// <summary>
        /// 目标区域
        /// 1：手套箱传送平台； 2：Tip托盘存放平台；12：托盘存放平台；
        /// </summary>
        public readonly static ushort W_Robot_Param1 = 2202;
        /// <summary>
        /// 目标托盘位置号
        /// </summary>
        public readonly static ushort W_Robot_Param2 = 2203;
        /// <summary>
        /// 托盘类型：1:40mL瓶; 2:12mL瓶; 3:5mL瓶; 4:TIP头;
        /// </summary>
        public readonly static ushort W_Robot_Param3 = 2204;

        public readonly static ushort W_Robot_Param4 = 2205;
        public readonly static ushort W_Robot_Param5 = 2206;

        /// <summary>
        /// 扫码完成  1：ok 2:ng
        /// </summary>
        public readonly static ushort W_Robot_ScanResult = 2221;
        /// <summary>
        /// 侧面扫码完成  1：ok 2:ng
        /// </summary>
        public readonly static ushort W_Robot_SideScanResult = 2222;
        /// <summary>
        /// 预称重完成
        /// </summary>
        public readonly static ushort W_Robot_PreWeightFinish = 2223;

        /// <summary>
        /// 机械臂任务撤销
        /// </summary>
        public readonly static ushort W_Robot_TaskCancel = 2299;

        /// <summary>
        /// 开关盖&移液枪 任务队列序号
        /// </summary>
        public readonly static ushort W_BottleLidAndPipette_TaskQueue = 2300;
        /// <summary>
        /// 开关盖&移液枪任务号
        /// </summary>
        public readonly static ushort W_BottleLidAndPipette_TaskNo = 2301;

        public readonly static ushort W_BottleLidAndPipette_Param1 = 2302;
        public readonly static ushort W_BottleLidAndPipette_Param2 = 2303;
        public readonly static ushort W_BottleLidAndPipette_Param3 = 2304;
        public readonly static ushort W_BottleLidAndPipette_Param4 = 2305;


        /// <summary>
        /// 1ml移液枪Z轴初始化结果 1：OK  2:NG
        /// </summary>
        public readonly static ushort W_1mlPipetteZInitResult = 2320;
        /// <summary>
        /// 1ml移液枪初始化结果 1：OK  2:NG
        /// </summary>
        public readonly static ushort W_1mlPipetteInitResult = 2321;

        /// <summary>
        /// 开关盖&移液枪任务撤销
        /// </summary>
        public readonly static ushort W_BottleLidAndPipette_TaskCancel = 2399;

    }
}
