123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- using ServiceCenter.Extensions;
- using WCS.Core;
- using WCS.Entity;
- using WCS.Entity.Protocol.SRM;
- namespace WCS.WorkEngineering.Extensions
- {
- /// <summary>
- /// 堆垛机扩展
- /// </summary>
- public class SRM : Device<ISRM520, ISRM521>
- {
- public SRM(Device device, World world) : base(device, world)
- {
- }
- ///// <summary>
- /////
- ///// </summary>
- ///// <param name="taskInfo"></param>
- //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))
- // {
- // }
- // }
- // }
- //}
- }
- }
|