Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
- 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; }
- }
- }
|