XLRStore_Config.cs 2.0 KB
using log4net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace OnlineStore.LoadCSVLibrary
{
    /// <summary>
    /// 流水线配置
    /// </summary>
    public class XLRStore_Config : DeviceConfig
    {
        public XLRStore_Config()
            : base()
        {
        }
       
        public XLRStore_Config(int id, string cid, string type, string filepath)
            : base(id, cid, LoadCSVLibrary.DeviceType.Store, filepath)
        {
        }

        public static Dictionary<int, ConfigClampJaw> ClampJawMap = new Dictionary<int, ConfigClampJaw>();
        /// <summary>
        ///  CLAW,1,移栽D1_夹爪,CLAW_Input,0,COM13,,100,500,500,60,6,20,15,15,15,20,20,15
        /// </summary>
        [ConfigProAttribute("CLAW_Input")]
        public ConfigClampJaw CLAW_Input { get; set; }
        /// <summary>
        ///  PRO,0,当多久没操作时流水线休眠(秒),Sleep_MSeconds,600,,,,,,,,,,,,,,
        /// </summary>
        [ConfigProAttribute("Sleep_MSeconds")]
        public int Sleep_MSeconds { get; set; }
        /// <summary>
        ///  PRO,0,气压检测信号关闭需要持续的时间,Airpressure_CheckSeconds,600,,,,,,,,,,,,,,
        /// </summary>
        [ConfigProAttribute("Airpressure_CheckSeconds")]
        public int Airpressure_CheckSeconds { get; set; }
        /// <summary>
        ///  PRO,0,IO信号超时时间(秒),IOSingle_TimerOut,15,,,,,,,,,,,,,,
        /// </summary>
        [ConfigProAttribute("IOSingle_TimerOut")]
        public int IOSingle_TimerOut { get; set; }
    


     

        protected override void initMustHavePro()
        {
            MustHaveDIList = new List<string>();
            MustHaveDOList = new List<string>();
 
             
        }

        public ushort GetDOLength(string iP)
        {
            return 16;
        }

        public ushort GetDILength(string ioIp)
        {
            return 16;
        }
    }
}