using iWareModel;
using System.Collections.Generic;
using System.ServiceModel;
namespace iWareSda
{
// 注意: 使用“重构”菜单上的“重命名”命令,可以同时更改代码和配置文件中的接口名“ISrmService”。
[ServiceContract, XmlSerializerFormat(Style = OperationFormatStyle.Rpc)]
public interface ISrmService
{
///
/// 获取SrmEntity实体集合
///
///
[OperationContract]
List GetSrm_CacheEntity();
///
/// 获取堆垛机实时数据
///
///
///
[OperationContract]
SrmView GetSrmInfo(int srmId);
///
/// 发送堆垛机任务
///
///
///
///
///
///
[OperationContract]
SdaResEntity SendSrmTask(int srmId, int taskId, string sourcePlace, string toPlace, short command, short pallettype);
///
/// 堆垛机解警
///
///
///
[OperationContract]
SdaResEntity ReleaseAlert(int srmId);
///
/// 堆垛机继续任务
///
///
///
[OperationContract]
SdaResEntity ContinueTask(int srmId);
///
/// 堆垛机急停
///
///
[OperationContract]
SdaResEntity SendEStop(int srmId);
///
/// 堆垛机删除任务
///
[OperationContract]
SdaResEntity SendSrmDelete(int srmId);
///
/// 堆垛机是否就绪
///
///
///
///
[OperationContract]
SdaResEntity IsReady(int srmId, out string msg);
///
/// 判断堆垛机是否可用,是否可以发送新任务给堆垛机
///
///
///
///
[OperationContract]
SdaResEntity IsAllowSendTask(int srmId, out string msg);
///
/// 任务完成信号的确认反馈
///
///
///
///
[OperationContract]
SdaResEntity ConfirmTaskFinish(int srmId, int taskId);
///
/// 任务是否完成
///
///
///
[OperationContract]
SdaResEntity IsTaskFinish(int srmId, int taskId);
///
/// 是否允许给堆垛机发送新任务
///
///
///
/// true:允许,false:不允许
[OperationContract]
SdaResEntity IsAllowSendNewTaskToSrm(int srmId);
///
/// 判断是否有心跳
///
///
///
[OperationContract]
SdaResEntity IsHaveHeatBeat(int deviceId);
///
/// 堆垛机是否满足下发任务的要求
///
///
[OperationContract]
SdaResEntity IsAllowIssueTask(int deviceId);
///
/// 写入STB
///
///
///
///
[OperationContract]
SdaResEntity WriteStb(int deviceId, int value);
///
/// 写入AckTaskFinish
///
///
///
///
[OperationContract]
SdaResEntity WriteAckTaskFinish(int deviceId, int value);
}
}