using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WCS_Client.Models
{
///
/// 堆垛机信号
///
public class SrmSignal
{
#region #region DB520信号集合
///
/// 心跳
///
public int DB520_Handshake_from_wcs { get; set; }
///
/// 码垛起始终点货位原有数量
///
public int DB520_Start_number { get; set; }
///
/// 码垛终点货位叉取数量
///
public int DB520_End_number { get; set; }
///
/// 货物类型
///
public int DB520_Goodtype { get; set; }
///
/// 任务起始行RowPos1
///
public int DB520_FromRowPos { get; set; }
///
/// 任务行走起始列Travelpos1
///
public int DB520_FromColumnPos { get; set; }
///
/// 任务提升起始层Liftpos1
///
public int DB520_FromLayerPos { get; set; }
///
/// 任务起始深度(0:中位, 1:深度1, 2:深度2)
///
public int DB520_Fork_start_pos1 { get; set; }
///
/// 任务目标行RowPos2
///
public int DB520_ToRowPos { get; set; }
///
/// 任务行走目标列Travelpos2
///
public int DB520_ToColumnPos { get; set; }
///
/// 任务提升目标层Liftpos2
///
public int DB520_ToLayerPos { get; set; }
///
/// 任务目标深度(0:中位, 1:深度1, 2:深度2)
///
public int DB520_Fork_dest_pos2 { get; set; }
///
/// 任务ID
///
public int DB520_TaskID { get; set; }
///
/// 以上值写入后触发任务执行(1:执行, 0:默认),当任务执行完成后PLC将其置0
///
public bool DB520_Task_trigger { get; set; }
#endregion;
#region DB521信号集合
public bool DB521_Handshake_to_wcs { get; set; }
///
///完成取货信号
///
public bool DB521_Get_Finishi { get; set; }
///
/// 完成放货信号
///
public bool DB521_Put_Finishi { get; set; }
///
/// 设备故障状态
///
public bool SrmDB541_Alarm { get; set; }
///
/// 当前任务完成
///
public bool DB521_Task_Finishi { get; set; }
///
/// 设备上有货
///
public bool DB521_Loaded { get; set; }
///
/// 货叉在原位
///
public bool DB521_Fork_Center { get; set; }
///
/// 1.远程 2.半自动 3.手动 4.维修
///
public int DB521_Auto_status { get; set; }
///
/// 设备状态(1为空闲,2为定位,3为取货,4为放货. 99为维护 )
///
public int DB521_Srm_Status { get; set; }
///
/// 任务起始行RowPos1
///
public int DB521_FromRowPos { get; set; }
///
/// 任务行走起始列Travelpos1
///
public int DB521_FromColumnPos { get; set; }
///
/// 任务提升起始层Liftpos1
///
public int DB521_FromLayerPos { get; set; }
///
/// 任务起始深度(0:中位, 1:深度1, 2:深度2)
///
public int DB521_Fork_start_pos1 { get; set; }
///
/// 任务目标行RowPos2
///
public int DB521_ToRowPos { get; set; }
///
/// 任务行走目标列Travelpos2
///
public int DB521_ToColumnPos { get; set; }
///
/// 任务提升目标层Liftpos2
///
public int DB521_ToLayerPos { get; set; }
///
/// 任务目标深度(0:中位, 1:深度1, 2:深度2)
///
public int DB521_Fork_dest_pos2s { get; set; }
///
/// 任务ID
///
public int DB521_TaskID { get; set; }
///
/// 任务触发位
///
public bool DB521_Task_trigger { get; set; }
///
/// 当前行Srm_Row
///
public int DB521_CurRow { get; set; }
///
/// 当前列Srm_Column
///
public int DB521_CurColumn { get; set; }
///
/// 当前层Srm_Layer
///
public int DB521_CurLayer { get; set; }
///
/// 完成任务ID Taskfinishi_ID
///
public int DB521_Taskfinishi_ID { get; set; }
///
/// 行走当前位置MM
///
public int B521_TravelPos { get; set; }
///
/// 提升当前位置MM
///
public int DB521_LiftPos { get; set; }
///
/// 货叉当前位置MM,往左为正值,往右为负值
///
public int DB521_ForkPos { get; set; }
///
/// 码垛起始货位原有数量
///
public int DB521_Start_number { get; set; }
///
/// 码垛终点货位叉取数量
///
public int DB521_End_number { get; set; }
///
/// 里程数(单位:千米)
///
public int DB521_Total_KM { get; set; }
///
/// 货物类型
///
public int DB521_GoodType { get; set; }
#endregion;
}
///
/// 输送线信号
///
public class ConveyorSignal
{
#region DB520信号
///
/// 任务号
///
public int DB520_Tasknum { get; set; }
///
/// 货物条码
///
public string DB520_Goodscode { get; set; }
///
/// 货物类型
///
public int DB520_Goodstype { get; set; }
///
/// 货物尺寸
///
public int DB520_Goodssize { get; set; }
///
/// 起始地址
///
public int DB520_Goodsstart { get; set; }
///
/// 目标地址
///
public int DB520_Goodsend { get; set; }
///
/// WCS确认信号
///
public bool DB520_Confirm { get; set; }
///
/// 任务删除
///
public bool DB520_TaskDelete { get; set; }
///
/// 上位未分配任务
///
public bool DB520_Notask { get; set; }
///
/// 正反转切换模式(1,2)(提升机区域多设置一个交互DB)
///
public int DB520_Fwd_Rev { get; set; }
#endregion;
#region DB521信号
///
/// 任务号
///
public int DB521_Tasknum { get; set; }
///
/// 货物条码
///
public string DB521_Goodscode { get; set; }
///
/// 货物类型
///
public int DB521_Goodstype { get; set; }
///
/// 货物尺寸
///
public int DB521_Goodssize { get; set; }
///
/// 起始地址
///
public int DB521_Goodsstart { get; set; }
///
/// 目标地址
///
public int DB521_Goodsend { get; set; }
///
/// PLC请求信号
///
public bool DB521_Request { get; set; }
///
/// WCS确认信号
///
public bool DB521_Confirm { get; set; }
///
/// 任务删除
///
public bool DB521_TaskDelete { get; set; }
///
/// 上位未分配任务
///
public bool DB521_Notask { get; set; }
///
/// 光电有货状态位
///
public bool CvDB51_PH_Status { get; set; }
///
/// 外形/条码等货物故障
///
public bool DB521_Goods_Err { get; set; }
///
/// 前超长故障
///
public bool DB521_F_Outside { get; set; }
///
/// 后超长故障
///
public bool DB521_B_Outside { get; set; }
///
/// 左超宽故障
///
public bool DB521_L_Outside { get; set; }
///
/// 右超宽故障
///
public bool DB521_R_Outside { get; set; }
///
/// 超高故障
///
public bool DB521_H_Outside { get; set; }
///
/// 条码未读出
///
public bool DB521_BCR_Noread { get; set; }
///
/// 超重
///
public bool DB521_Overload { get; set; }
#endregion;
#region DB523 设备状态
///
/// 总故障
///
public bool DB523_Fault { get; set; }
///
/// 急停故障
///
public bool DB523_ES_Fault { get; set; }
///
/// 超时故障
///
public bool DB523_Timeout_Fault_1 { get; set; }
///
/// 驱动故障
///
public bool DB523_INV_Fault_1 { get; set; }
///
/// 空气开关故障
///
public bool DB523_QF_Fault_1 { get; set; }
///
/// 传感器异常故障
///
public bool DB523_Sensor_Fault_1 { get; set; }
///
/// 超边故障
///
public bool DB523_Outside_Fault_1 { get; set; }
///
/// 无Ready信号,请检查柜内空开
///
public bool DB523_NoReady_1 { get; set; }
///
/// 超时故障2
///
public bool DB523_Timeout_Fault_2 { get; set; }
///
/// 驱动故障2
///
public bool DB523_INV_Fault_2 { get; set; }
///
/// 空气开关故障2
///
public bool DB523_QF_Fault_2 { get; set; }
///
/// 前极限故障
///
public bool DB523_Front_Limited_Fault_2 { get; set; }
///
/// 后极限故障
///
public bool DB523_Back_Limited_Fault_2 { get; set; }
///
/// 无Ready信号,请检查柜内空开2
///
public bool DB523_NoReady_2 { get; set; }
///
/// 上极限故障
///
public bool DB523_UP_Limited_Fault_2 { get; set; }
///
/// 下极限故障
///
public bool DB523_DN_Limited_Fault_2 { get; set; }
///
/// 自动位(1为自动)
///
public bool DB523_Auto { get; set; }
///
/// 选中状态位
///
public bool DB523_Choice_Bit { get; set; }
///
/// 任务有货状态位
///
public bool DB523_OT_Status { get; set; }
///
/// 光电有货状态位
///
public bool DB523_PH_Status { get; set; }
///
/// 运行状态位
///
public bool DB523_Run { get; set; }
///
/// 正转
///
public bool DB523_Fwd_1 { get; set; }
///
/// 反转
///
public bool DB523_Rev_1 { get; set; }
///
/// 上升/右转/伸出(顶升移栽升降、拆码盘机升降、提升机升降、拆码盘机拨叉伸出)
///
public bool DB523_Up_Right_Front_2 { get; set; }
///
/// 下降/左转/缩回(顶升移栽升降、拆码盘机升降、提升机升降、拆码盘机拨叉缩回)
///
public bool DB523_Down_Left_Back_2 { get; set; }
///
/// 高位(顶升移栽升降、拆码盘机升降、提升机升降)
///
public bool DB523_High_Station_2 { get; set; }
///
/// 中位(拆码盘机升降)
///
public bool DB523_Mid_Station_2 { get; set; }
///
/// 低位(顶升移栽升降、拆码盘机升降、提升机升降)
///
public bool DB523_Low_Station_2 { get; set; }
///
/// 前位(拆码盘机拨叉伸出)
///
public bool DB523_Front_Station_2 { get; set; }
///
/// 后位(拆码盘机拨叉缩回)
///
public bool DB523_Back_Station_2 { get; set; }
///
/// 运行时间(Dint)单位小时(带小数)
///
public double DB523_Runtime { get; set; }
#endregion;
}
///
/// RGV信号
///
public class RGVSignal
{
#region DB520
///
/// 任务号
///
public int DB520_Tasknum_1 { get; set; }
///
/// 货物条码
///
public string DB520_Goodscode_1 { get; set; }
///
/// 货物类型
///
public int DB520_Goodstype_1 { get; set; }
///
/// 货物尺寸
///
public int DB520_Goodssize_1 { get; set; }
///
/// 起始地址
///
public int DB520_Goodsstart_1 { get; set; }
///
/// 目标地址
///
public int DB520_Goodsend_1 { get; set; }
///
/// 任务类型
///
public int DB520_TaskType_1 { get; set; }
///
/// WCS确认信号
///
public bool DB520_Confirm_1 { get; set; }
///
/// 任务删除
///
public bool DB520_TaskDelete_1 { get; set; }
///
/// 上位未分配任务
///
public bool DB520_Notask_1 { get; set; }
///
/// 单双工位(1.双工位0.单工位)
///
public bool DB520_WorkPostion_1 { get; set; }
///
/// 任务号
///
public int DB520_Tasknum_2 { get; set; }
///
/// 货物条码
///
public string DB520_Goodscode_2 { get; set; }
///
/// 货物类型
///
public int DB520_Goodstype_2 { get; set; }
///
/// 货物尺寸
///
public int DB520_Goodssize_2 { get; set; }
///
/// 起始地址
///
public int DB520_Goodsstart_2 { get; set; }
///
/// 目标地址
///
public int DB520_Goodsend_2 { get; set; }
///
/// 任务类型
///
public int DB520_TaskType_2 { get; set; }
///
/// WCS确认信号
///
public bool DB520_Confirm_2 { get; set; }
///
/// 任务删除
///
public bool DB520_TaskDelete_2 { get; set; }
///
/// 上位未分配任务
///
public bool DB520_Notask_2 { get; set; }
///
/// 单双工位(1.双工位0.单工位)
///
public bool DB520_WorkPostion_2 { get; set; }
#endregion;
#region DB522
///
/// 任务号
///
public int DB522_Tasknum_1 { get; set; }
///
/// 货物条码
///
public string DB522_Goodscode_1 { get; set; }
///
/// 货物类型
///
public int DB522_Goodstype_1 { get; set; }
///
/// 货物尺寸
///
public int DB522_Goodssize_1 { get; set; }
///
/// 起始地址
///
public int DB522_Goodsstart_1 { get; set; }
///
/// 目标地址
///
public int DB522_Goodsend_1 { get; set; }
///
/// PLC请求信号
///
public bool DB522_Request_1 { get; set; }
///
/// 确认信号
///
public bool DB522_Confirm_1 { get; set; }
///
/// 光电有货状态位
///
public bool DB522_PH_Status_1 { get; set; }
///
/// 码盘位满
///
public bool DB522_Full_1 { get; set; }
///
/// 拆盘位空
///
public bool DB522_Empty_1 { get; set; }
///
/// 总故障
///
public bool DB522_Fault_1 { get; set; }
///
/// 小车故障
///
public bool DB522_RGV_ERR_1 { get; set; }
///
/// 输送线故障
///
public bool DB522_CONV_ERR_1 { get; set; }
///
/// 拆码盘故障
///
public bool DB522_DP_ERR_1 { get; set; }
///
/// 外形/条码等货物故障
///
public bool DB522_Goods_Err_1 { get; set; }
///
/// 前超长故障
///
public bool DB522_F_Outside_1 { get; set; }
///
/// 后超长故障
///
public bool DB522_B_Outside_1 { get; set; }
///
/// 左超宽故障
///
public bool DB522_L_Outside_1 { get; set; }
///
/// 右超宽故障
///
public bool DB522_R_Outside_1 { get; set; }
///
/// 超高故障
///
public bool DB522_H_Outside_1 { get; set; }
///
/// 条码未读出
///
public bool DB522_BCR_Noread_1 { get; set; }
///
/// 系统状态
///
public int DB522_SystemStatus_1 { get; set; }
///
/// 工作模式
///
public int DB522_WorkMode_1 { get; set; }
///
/// 运行公里数
///
public int DB522_Mileage_1 { get; set; }
///
/// 运行时间
///
public int DB522_Runtime_1 { get; set; }
///
/// 实际位置
///
public int DB522_Position_1 { get; set; }
///
/// 任务号
///
public int DB522_Tasknum_2 { get; set; }
///
/// 货物条码
///
public string DB522_Goodscode_2 { get; set; }
///
/// 货物类型
///
public int DB522_Goodstype_2 { get; set; }
///
/// 货物尺寸
///
public int DB522_Goodssize_2 { get; set; }
///
/// 起始地址
///
public int DB522_Goodsstart_2 { get; set; }
///
/// 目标地址
///
public int DB522_Goodsend_2 { get; set; }
///
/// PLC请求信号
///
public bool DB522_Request_2 { get; set; }
///
/// 确认信号
///
public bool DB522_Confirm_2 { get; set; }
///
/// 光电有货状态位
///
public bool DB522_PH_Status_2 { get; set; }
///
/// 码盘位满
///
public bool DB522_Full_2 { get; set; }
///
/// 拆盘位空
///
public bool DB522_Empty_2 { get; set; }
///
/// 总故障
///
public bool DB522_Fault_2 { get; set; }
///
/// 小车故障
///
public bool DB522_RGV_ERR_2 { get; set; }
///
/// 输送线故障
///
public bool DB522_CONV_ERR_2 { get; set; }
///
/// 拆码盘故障
///
public bool DB522_DP_ERR_2 { get; set; }
///
/// 外形/条码等货物故障
///
public bool DB522_Goods_Err_2 { get; set; }
///
/// 前超长故障
///
public bool DB522_F_Outside_2 { get; set; }
///
/// 后超长故障
///
public bool DB522_B_Outside_2 { get; set; }
///
/// 左超宽故障
///
public bool DB522_L_Outside_2 { get; set; }
///
/// 右超宽故障
///
public bool DB522_R_Outside_2 { get; set; }
///
/// 超高故障
///
public bool DB522_H_Outside_2 { get; set; }
///
/// 条码未读出
///
public bool DB522_BCR_Noread_2 { get; set; }
///
/// 系统状态
///
public int DB522_SystemStatus_2 { get; set; }
///
/// 工作模式
///
public int DB522_WorkMode_2 { get; set; }
///
/// 运行公里数
///
public int DB522_Mileage_2 { get; set; }
///
/// 运行时间
///
public int DB522_Runtime_2 { get; set; }
///
/// 实际位置
///
public int DB522_Position_2 { get; set; }
#endregion;
#region DB523
public bool DB523_RES1 { get; set; }
public bool DB523_RES2 { get; set; }
public bool DB523_RES3 { get; set; }
public bool DB523_RES4 { get; set; }
public bool DB523_RES5 { get; set; }
public bool DB523_RES6 { get; set; }
public bool DB523_RES7 { get; set; }
public bool DB523_RES8 { get; set; }
public bool DB523_RES9 { get; set; }
public bool DB523_RES10 { get; set; }
public bool DB523_RES11 { get; set; }
public bool DB523_RES12 { get; set; }
public bool DB523_RES13 { get; set; }
public bool DB523_RES14 { get; set; }
public bool DB523_RES15 { get; set; }
public bool DB523_RES16 { get; set; }
public int DB523_RES17 { get; set; }
public bool DB523_RES18 { get; set; }
public bool DB523_RES19 { get; set; }
public bool DB523_RES20 { get; set; }
public bool DB523_RES21 { get; set; }
public bool DB523_RES22 { get; set; }
public bool DB523_RES23 { get; set; }
public bool DB523_RES24 { get; set; }
public bool DB523_RES25 { get; set; }
public bool DB523_RES26 { get; set; }
public bool DB523_RES27 { get; set; }
public bool DB523_RES28 { get; set; }
public bool DB523_RES29 { get; set; }
public bool DB523_RES30 { get; set; }
public bool DB523_RES31 { get; set; }
public double DB523_RES32 { get; set; }
public double DB523_RES33 { get; set; }
#endregion;
}
}