using System;
using System.Collections.Generic;
using System.Text;
namespace Model
{
///
/// 手工任务结构体
///
public struct HandTask
{
///
/// 设备索引
///
public int _deviceIndex;
///
/// 起始设备索引
///
public int _begindeviceIndex;
///
/// 设备指令
///
public int _deviceOrder;
///
/// 位置:“立库货位”,或者输送机的目标位置
///
public string _arrowLocation;
///
/// 起始货位编码
///
public string _cellcodeBegin;
///
/// 终止货位编码
///
public string _cellcodeEnd;
///
/// 多货叉序号:0,1,2,3,4,5.。。。。距离控制柜由近及远;单叉为0
///
public int _forkNo;
///
/// 携带的关联任务货叉组,单叉或者不携带任务为""举例:1叉携带“2,3”,【规则:只能携带_forkNo值大于自己的货叉】
///
public string _correlTaskForks;
public HandTask(int deviceIndex, int deviceOrder, int beginDeviceIndex, string arrowLocation, string cellcodeBegin, string cellcodeEnd, int forkNo, string correlTaskForks)
{
_begindeviceIndex = beginDeviceIndex;
_deviceIndex = deviceIndex;
_deviceOrder = deviceOrder;
_arrowLocation = arrowLocation;
_cellcodeBegin = cellcodeBegin;
_cellcodeEnd = cellcodeEnd;
_forkNo = forkNo;
_correlTaskForks = correlTaskForks;
}
}
///
/// 管理下达的自动任务
///
public struct AutoTask
{
///
/// 控制任务类型:1入库,2出库,3倒库
///
public int _controlType;
///
/// 托盘或者周转箱条码
///
public string _palletBarcode;
///
/// 起始位置
///
public string _startDevice;
///
/// 起始货位
///
public string _startCell;
///
/// 终止位置
///
public string _endDevice;
///
/// 终止货位
///
public string _endCell;
public bool _enableStartCell, _enableEndCell;
public int _inWorkbench;
public AutoTask(int controlType, string palletBarcode, string startDevice, string startCell, string endDevice, string endCell,bool enableStartCell,bool enableEndCell,int inWorkbench)
{
_controlType = controlType;
_palletBarcode = palletBarcode;
_startDevice = startDevice;
_startCell = startCell;
_endDevice = endDevice;
_endCell = endCell;
_enableStartCell = enableStartCell;
_enableEndCell = enableEndCell;
_inWorkbench = inWorkbench;
}
}
///
/// 20130817richard
///
public struct MonitorInfo
{
public bool Obtaintask;
public bool Orderturnon;
public Dictionary S7connectOnline;
public Dictionary FloorError;
public MonitorInfo(bool obtaintask, bool orderturnon, Dictionary s7connectOnline, Dictionary floorError)
{
Obtaintask = obtaintask;
Orderturnon = orderturnon;
S7connectOnline = s7connectOnline;
FloorError = floorError;
}
}
}