QTStation.cs 1.0 KB

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using WCS.Core;
  7. using WCS.Entity.Protocol.Station;
  8. namespace WCS.WorkEngineering.Systems.扭转检测
  9. {
  10. public class QTStation : Device<IQTStation>
  11. {
  12. static int[] arr = new int[] { 4019, 4042, 4049, 4072, 4079, 4096, 4119, 4126, 4149, 4156 };
  13. public Device<IStation520, IStation521, IStation523> ConvIn { get; private set; }
  14. public Device<IStation520, IStation521, IStation523> ConvOut { get; private set; }
  15. public QTStation(Device ent,World world) : base(ent, world)
  16. {
  17. var code = int.Parse(ent.Code.Replace("QT", ""));
  18. var c = arr[code - 1];
  19. ConvIn = new Device<IStation520, IStation521, IStation523>(Device.Find(c.ToString()), world);
  20. c = c + 1;
  21. ConvOut= new Device<IStation520, IStation521, IStation523>(Device.Find(c.ToString()), world);
  22. }
  23. }
  24. public interface IQTStation
  25. {
  26. }
  27. }