终端一体化运控平台
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

XL_Start_DB.cs 2.3 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. using BPASmartClient.S7Net;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace WpfApp1
  8. {
  9. internal class XL_Start_DB
  10. {
  11. //public XL_Start_DB()
  12. //{
  13. // for (int i = 0; i < Powder.Length; i++)
  14. // {
  15. // Powder[i] = new UDT2Start();
  16. // }
  17. // for (int i = 0; i < Material.Length; i++)
  18. // {
  19. // Material[i] = new UDTStart();
  20. // }
  21. //}
  22. /// <summary>
  23. /// 配方编码
  24. /// </summary>
  25. [Siemens(16)]
  26. public string RecipeCode { get; set; }
  27. /// <summary>
  28. /// 配发名称
  29. /// </summary>
  30. ///
  31. [Siemens(16)]
  32. public string RecipeName { get; set; }
  33. /// <summary>
  34. /// 工站的编号
  35. /// </summary>
  36. public short StockCode { get; set; }
  37. /// <summary>
  38. /// 托盘编号
  39. /// </summary>
  40. public short TrayCode { get; set; }
  41. public UDT2Start[] Powder { get; set; } = new UDT2Start[10];
  42. /// <summary>
  43. /// 物料信息
  44. /// </summary>
  45. public UDTStart[] Material { get; set; } = new UDTStart[20];
  46. /// <summary>
  47. /// 西门子下发订单
  48. /// </summary>
  49. public bool Order_Request_ACK { get; set; }
  50. public short[] Standby { get; set; } = new short[4];
  51. /// <summary>
  52. /// 上位机订单请求
  53. /// </summary>
  54. public bool Order_Request { get; set; }
  55. public short[] Standby1 { get; set; } = new short[4];
  56. }
  57. public class UDTStart
  58. {
  59. [Siemens(6)]
  60. /// <summary>
  61. /// 原料名称
  62. /// </summary>
  63. public string Material_Name { get; set; }
  64. /// <summary>
  65. /// 原料重量
  66. /// </summary>
  67. public float Material_Weight { get; set; }
  68. /// <summary>
  69. /// 原料桶号
  70. /// </summary>
  71. public short Material_BarrelNum { get; set; }
  72. }
  73. public class UDT2Start
  74. {
  75. /// <summary>
  76. /// 粉料仓名称
  77. /// </summary>
  78. [Siemens(6)]
  79. public string Powder_Name { get; set; }
  80. /// <summary>
  81. /// 粉料仓重量
  82. /// </summary>
  83. public float Powder_Weight { get; set; }
  84. }
  85. }