using BPASmartClient.S7Net; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WpfApp1 { internal class XL_Start_DB { //public XL_Start_DB() //{ // for (int i = 0; i < Powder.Length; i++) // { // Powder[i] = new UDT2Start(); // } // for (int i = 0; i < Material.Length; i++) // { // Material[i] = new UDTStart(); // } //} /// /// 配方编码 /// [Siemens(16)] public string RecipeCode { get; set; } /// /// 配发名称 /// /// [Siemens(16)] public string RecipeName { get; set; } /// /// 工站的编号 /// public short StockCode { get; set; } /// /// 托盘编号 /// public short TrayCode { get; set; } public UDT2Start[] Powder { get; set; } = new UDT2Start[10]; /// /// 物料信息 /// public UDTStart[] Material { get; set; } = new UDTStart[20]; /// /// 西门子下发订单 /// public bool Order_Request_ACK { get; set; } public short[] Standby { get; set; } = new short[4]; /// /// 上位机订单请求 /// public bool Order_Request { get; set; } public short[] Standby1 { get; set; } = new short[4]; } public class UDTStart { [Siemens(6)] /// /// 原料名称 /// public string Material_Name { get; set; } /// /// 原料重量 /// public float Material_Weight { get; set; } /// /// 原料桶号 /// public short Material_BarrelNum { get; set; } } public class UDT2Start { /// /// 粉料仓名称 /// [Siemens(6)] public string Powder_Name { get; set; } /// /// 粉料仓重量 /// public float Powder_Weight { get; set; } } }