using iWareModel; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.Text; namespace iWareSda { // 注意: 使用“重构”菜单上的“重命名”命令,可以同时更改代码和配置文件中的接口名“IStationService”。 [ServiceContract] public interface IStationService { /// /// 解警 /// /// /// [OperationContract] SdaResEntity ClearAlarm(int deviceId); /// /// 下发Station任务 /// /// /// /// /// /// [OperationContract] SdaResEntity SendStationTask(int deviceId, int taskId, string sourcePlce, string toPlace); /// /// 任务下发确认(收到PLC反馈后WCS清除) /// /// /// /// [OperationContract] SdaResEntity WriteStp(int deviceId, bool value, string stationCode); [OperationContract] StationView GetStationInfo(int deviceId); [OperationContract] SdaResEntity IsTaskFinish(int deviceId, int taskId); [OperationContract] SdaResEntity DeleteStationTask(int deviceId, int taskId); ///// ///// Station急停 ///// ///// ///// //[OperationContract] //SdaResEntity EmergencyStop(int deviceId); /// /// Station是否是自动模式 /// /// [OperationContract] SdaResEntity IsStationAuto(int deviceId, string stationCode); /// /// 判断Station是否可用,是否可以发送新任务给Station /// /// /// /// [OperationContract] SdaResEntity IsAllowSendTask(bool isNeedValidateRealSourceAndToPlace, int deviceId, string stationCode, string toStationCode, bool isStationTask); /// /// 判断是否有心跳 /// /// /// [OperationContract] SdaResEntity IsHaveHeatBeat(int deviceId); /// /// 写入齐套信息 /// /// /// /// [OperationContract] SdaResEntity WriteQiTaoInfo(int deviceId, string stationCode, bool value); /// /// 入库完成已确认 /// /// /// /// [OperationContract] SdaResEntity InboundFinishConfirm(int deviceId, bool value, string stationCode); /// /// 出库完成已确认 /// /// /// /// [OperationContract] SdaResEntity OutboundFinishConfirm(int deviceId, bool value, string stationCode, bool isClearData); /// /// 切换模式 /// /// /// /// /// [OperationContract] SdaResEntity ChangeMode(int deviceId, int value, string stationCode); /// /// 写入入库任务信息 /// /// /// /// [OperationContract] SdaResEntity WriteInStoreTaskInfo(int deviceId, string stationCode, string toPlaceNo, short length, short width, short height, int inbound_TaskID); /// /// 写入出库任务信息 /// /// /// /// /// /// [OperationContract] SdaResEntity WriteOutStoreTaskInfo(int deviceId, string stationCode, string sourcePlaceNo, int outbound_TaskID); /// /// 写入码板任务信息 /// /// /// /// [OperationContract] SdaResEntity WritePalletizingTaskInfo(int deviceId, string stationCode, int taskID, short length, short width, short height, short rotate, short toplace, short placeX, short placeY, short placeZ,short lastnum); /// /// 码垛完成已确认 /// /// /// /// /// Station的任务完成ACK赋值 /// /// /// /// [OperationContract] SdaResEntity WriteStation_FinishACK(int deviceId, bool value, int plcTaskId); /// /// 复位解析完成 /// /// /// /// /// [OperationContract] SdaResEntity WriteStation_ACK(int deviceId, bool value, string stationCode); /// /// 四个入库口扫描验证ACK赋值 /// /// /// /// [OperationContract] SdaResEntity WriteScanValidateACK(bool isReset, int deviceId, string stationCode, bool value, int plcTaskId); /// /// 发动机出库,给西港PLC发送发动机数据 【Editby shaocx,2023-07-23】 /// /// /// /// /// /// /// [OperationContract] SdaResEntity WriteStation_XigangGetDataForOut(int deviceId, string value__Out_MaterialModel, string value_Out_OrderNo, string value_Out_SerialNumber, int plcTaskId); } }