using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace S7Test.DevEntity
{
public class SrmEntity
{
///
/// 堆垛机名称
///
public string SrmName { get; set; }
///
/// 设备编号
///
public int DeviceId { get; set; }
#region 写入的堆垛机信息
///
/// 任务类型
///
public int WCommand { get; set; }
///
/// 急停
///
public int WEmergencyStop { get; set; }
///
/// 起始列
///
public int WSourcePosX { get; set; }
///
/// 起始层
///
public int WSourcePosY { get; set; }
///
/// 起始排
///
public int WSourcePosZ { get; set; }
///
/// 目标列
///
public int WDestinationPosX { get; set; }
///
/// 目标层
///
public int WDestinationPosY { get; set; }
///
/// 目标排
///
public int WDestinationPosZ { get; set; }
///
/// 任务完成确认
///
public bool WTaskFinishConfirm { get; set; }
///
/// 解除报警
///
public bool WCancleAlarm { get; set; }
///
/// 确认任务已发送的信号
///
public bool WStb { get; set; }
///
/// 托盘类型
///
public int WPalletType { get; set; }
///
/// 货物高度
///
public int WHigh { get; set; }
#endregion
#region 读取到的堆垛机信息
///
/// 读取心跳
///
public int RHandShake { get; set; }
///
/// 设备编号
///
public int RSrmNo { get; set; }
///
/// 是否有报警
///
public bool RAlarm { get; set; }
///
/// 载货台是否有货
///
public bool RLiftFull { get; set; }
///
/// 设备模式
///
public int RMode { get; set; }
///
/// 当前列
///
public int RPosX { get; set; }
///
/// 当前层
///
public int RPosY { get; set; }
///
/// 当前排
///
public int RPosZ { get; set; }
///
/// 当前列坐标
///
public int RPosXmm { get; set; }
///
/// 当前层坐标
///
public int RPosYmm { get; set; }
///
/// 当前排坐标
///
public int RPosZmm { get; set; }
///
/// 取货完成
///
public bool RPickFinish { get; set; }
///
/// 放货完成
///
public bool RDeliveryFinish { get; set; }
///
/// 任务完成
///
public bool RTaskFinish { get; set; }
///
/// 当前巷道
///
public int RActualLane { get; set; }
///
/// 任务状态
///
public int RState { get; set; }
///
/// 报警代码
///
public int RAlarmCode { get; set; }
///
/// 任务号
///
public int RTaskNo { get; set; }
///
/// 确认收到下发的任务信号
///
public bool RAck { get; set; }
#endregion
public SrmEntity(string srmName, int deviceId)
{
this.SrmName = srmName;
this.DeviceId = deviceId;
}
}
}