using ServiceCenter.Extensions; using WCS.Core; using WCS.Entity; using WCS.Entity.Protocol.SRM; namespace WCS.WorkEngineering.Extensions { /// /// 堆垛机扩展 /// public class SRM : Device { public SRM(Device device, World world) : base(device, world) { } ///// ///// ///// ///// //public void 一轨两车任务下发前置条件判断及处理(WCS_TaskInfo taskInfo) //{ // var col = 0; // switch (taskInfo.Type) // { // case TaskType.SetPlate: return; // case TaskType.EnterDepot: // col = taskInfo.AddrTo.Split("-")[1].ToInt(); // break; // case TaskType.OutDepot: // col = taskInfo.AddrFrom.Split("-")[1].ToInt(); // break; // case TaskType.TransferDepot: return; // case TaskType.Delivery: return; // case TaskType.EmptyInit: return; // default: return; // } // if (Entity.HasFlag(DeviceFlags.一列堆垛机)) // { // if (col > 10)// 跑全程 // { // if (Data2.Status.HasFlag(SrmStatus.Stopper_Mark)) // { // } // } // } // else if (Entity.HasFlag(DeviceFlags.二列堆垛机)) // { // if (col < 11)// 跑全程 // { // if (Data2.Status.HasFlag(SrmStatus.Stopper_Mark)) // { // } // } // } //} } }