Station.cs 3.56 KB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HHWCS.Model
{
    /// <summary>
    /// 站台
    /// </summary>
    public class Station
    {
        #region PLC-->WCS

        /// <summary>
        /// 标志位
        /// </summary>
        public int Flag { get; set; }

        /// <summary>
        /// 报文类型 01(地址请求)02(位置到达)03(控制指令)
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// PLC编号
        /// </summary>
        public int PLCNo { get; set; }

        /// <summary>
        /// 装载状态,填充0
        /// </summary>
        public int LoadStatus { get; set; }

        /// <summary>
        /// 站台编号
        /// </summary>
        public int StationNo { get; set; }

        /// <summary>
        /// 货位ID PLC内部跟踪 (任务号)
        /// </summary>
        public int TaskNo { get; set; }

        /// <summary>
        /// 条码 PLC上报的条码信息
        /// </summary>
        public string Barcode { get; set; }

        /// <summary>
        /// 货位重量
        /// </summary>
        public int Weight { get; set; }

        /// <summary>
        /// 货物宽度
        /// </summary>
        public int Length { get; set; }

        /// <summary>
        /// 货物高度
        /// </summary>
        public int Height { get; set; }

        /// <summary>
        /// 消息类型
        /// </summary>
        public int RetCode { get; set; }

        /// <summary>
        /// 备用 7B
        /// </summary>
        public byte[] BackUp { get; set; }

        #endregion

        #region WCS-->PLC

        /// <summary>
        /// 新消息标记位
        /// </summary>
        public int WCSFlag { get; set; }

        /// <summary>
        /// 报文类型 06(地址请求)07(控制指令)
        /// </summary>
        public int WCSType { get; set; }

        /// <summary>
        /// PLC编号
        /// </summary>
        public int WCSPLCNo { get; set; }

        /// <summary>
        /// 装载状态 填充0
        /// </summary>
        public int WCSLoadStatus { get; set; }

        /// <summary>
        /// 站台编号
        /// </summary>
        public int WCSStationNo { get; set; }

        /// <summary>
        /// 货位ID PLC内部跟踪 (任务号)
        /// </summary>
        public int WCSTaskNo { get; set; }

        /// <summary>
        /// 条码 PLC上报的条码信息
        /// </summary>
        public string WCSBarcode { get; set; }

        /// <summary>
        /// 目的地 托盘目的地
        /// </summary>
        public int ToAddress { get; set; }

        /// <summary>
        /// 备用 7B
        /// </summary>
        public byte[] WCSBackUp { get; set; }

        #endregion

        #region Monitor

        /// <summary>
        /// 输送线状态 1=自动运行 0=故障或手动
        /// </summary>
        public bool RunningStatus { get; set; }

        /// <summary>
        /// 是否有货 1=有货 0=无货物
        /// </summary>
        public bool PalletExit { get; set; }

        /// <summary>
        /// 托盘目的地
        /// </summary>
        public int PalletDestinationAddress { get; set; }

        /// <summary>
        /// 当前输送线编号
        /// </summary>
        public int ConveyorNo { get; set; }

        /// <summary>
        /// 托盘条码(按实际长度)
        /// </summary>
        public string PalletBarcode { get; set; }

        #endregion

    }
}