|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- 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();
- // }
- //}
-
- /// <summary>
- /// 配方编码
- /// </summary>
- [Siemens(16)]
- public string RecipeCode { get; set; }
- /// <summary>
- /// 配发名称
- /// </summary>
- ///
- [Siemens(16)]
- public string RecipeName { get; set; }
-
- /// <summary>
- /// 工站的编号
- /// </summary>
- public short StockCode { get; set; }
-
- /// <summary>
- /// 托盘编号
- /// </summary>
- public short TrayCode { get; set; }
-
- public UDT2Start[] Powder { get; set; } = new UDT2Start[10];
-
- /// <summary>
- /// 物料信息
- /// </summary>
- public UDTStart[] Material { get; set; } = new UDTStart[20];
-
- /// <summary>
- /// 西门子下发订单
- /// </summary>
- public bool Order_Request_ACK { get; set; }
-
- public short[] Standby { get; set; } = new short[4];
-
- /// <summary>
- /// 上位机订单请求
- /// </summary>
- public bool Order_Request { get; set; }
-
- public short[] Standby1 { get; set; } = new short[4];
-
- }
-
- public class UDTStart
- {
- [Siemens(6)]
- /// <summary>
- /// 原料名称
- /// </summary>
- public string Material_Name { get; set; }
- /// <summary>
- /// 原料重量
- /// </summary>
- public float Material_Weight { get; set; }
- /// <summary>
- /// 原料桶号
- /// </summary>
- public short Material_BarrelNum { get; set; }
- }
-
-
- public class UDT2Start
- {
- /// <summary>
- /// 粉料仓名称
- /// </summary>
- [Siemens(6)]
- public string Powder_Name { get; set; }
- /// <summary>
- /// 粉料仓重量
- /// </summary>
- public float Powder_Weight { get; set; }
- }
- }
|