using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace S7Test.DevEntity
{
public class ConveyorEntity
{
public int DeviceId { get; set; }
///
/// 输送线名称
///
public string ConveyorName { get; set; }
#region 输送线信息写入
///
/// 任务号
///
public int WTaskNo { get; set; }
///
/// 任务下完成信号
///
public bool WSTP { get; set; }
#endregion
#region 输送线信息读取
///
/// 任务号
///
public int RTaskNo { get; set; }
///
/// 是否有报警
///
public bool RAlarm { get; set; }
///
/// 光电1状态(1有货;2无货)
///
public int RPh1 { get; set; }
///
/// ///
/// 光电2状态(1有货;2无货)
///
///
public int RPh2 { get; set; }
///
/// 报警代码
///
public int RAlarmCode { get; set; }
///
/// 外形检测(0通过,1前超,2后超,3左超,4右超,5超高)
///
public int RShape { get; set; }
///
/// 任务收到确认
///
public bool RAck { get; set; }
///
/// 模式
///
public int RMode { get; set; }
///
/// 状态
///
public int RState { get; set; }
#endregion
public ConveyorEntity(string conveyorName, int deviceId)
{
this.ConveyorName = conveyorName;
this.DeviceId = deviceId;
}
}
}