using iWareModel; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.Text; namespace iWareSda { // 注意: 使用“重构”菜单上的“重命名”命令,可以同时更改代码和配置文件中的接口名“IConveyerService”。 [ServiceContract] public interface IConveyerService { /// /// 解警 /// /// /// [OperationContract] SdaResEntity ClearAlarm(int deviceId); /// /// 下发Conveyer任务 /// /// /// /// /// /// [OperationContract] //SdaResEntity SendConveyerTask(int deviceId, int taskId, string sourcePlce, string toPlace); SdaResEntity SendConveyerTask(int deviceId, int taskId, string sourcePlce, string toPlace, string containertype, string taskType); /// /// 任务下发确认(收到PLC反馈后WCS清除) /// /// /// /// [OperationContract] SdaResEntity WriteStp(int deviceId, bool value, string stationCode); [OperationContract] ConveyerView GetConveyerInfo(int deviceId); [OperationContract] //SdaResEntity IsTaskFinish(int deviceId, int taskId); SdaResEntity IsTaskFinish(int deviceId, string stationCode, int taskId); [OperationContract] SdaResEntity DeleteConveyerTask(int deviceId, int taskId); ///// ///// Conveyer急停 ///// ///// ///// //[OperationContract] //SdaResEntity EmergencyStop(int deviceId); /// /// Conveyer是否是自动模式 /// /// [OperationContract] SdaResEntity IsConveyerAuto(int deviceId, string stationCode); /// /// 判断Conveyer是否可用,是否可以发送新任务给Conveyer /// /// /// /// [OperationContract] SdaResEntity IsAllowSendTask(bool isNeedValidateRealSourceAndToPlace, int deviceId, string stationCode, string toStationCode, bool isConveyerTask); /// /// 判断是否有心跳 /// /// /// [OperationContract] SdaResEntity IsHaveHeatBeat(int deviceId); /// /// 1015重新扫码 /// /// /// /// [OperationContract] SdaResEntity Write1015ReScan(int deviceId, bool value); /// /// 写入扫码接受完成 /// /// /// /// [OperationContract] SdaResEntity WriteReceiveScan(int deviceId, string stationCode, bool value); /// /// Conveyer的任务完成ACK赋值 /// /// /// /// [OperationContract] SdaResEntity WriteConveyer_FinishACK(int deviceId, bool value, int plcTaskId, string stationcode); /// /// 四个入库口扫描验证ACK赋值 /// /// /// /// [OperationContract] SdaResEntity WriteScanValidateACK(bool isReset, int deviceId, string stationCode, bool value, int plcTaskId); /// /// AGV请求进 /// /// /// /// [OperationContract] SdaResEntity WriteAGVRequestIn(int deviceId, bool value); /// /// AGV请求进到位 /// /// /// /// [OperationContract] SdaResEntity WriteAGVRequestInArr(int deviceId, bool value); /// /// AGV请求出 /// /// /// /// [OperationContract] SdaResEntity WriteAGVRequestOUT(int deviceId, bool value); /// /// AGV请求出到位 /// /// /// /// [OperationContract] SdaResEntity WriteAGVRequestOutArr(int deviceId, bool value); /// /// AGV任务类型 /// /// /// /// [OperationContract] SdaResEntity WriteAGVTaskType(int deviceId, short value); /// /// 清除任务 /// /// /// /// /// /// /// /// [OperationContract] SdaResEntity ClearConveyerTask(int deviceId, int taskId, string sourcePlce, string toPlace, string containertype, string taskType); [OperationContract] bool ReadAddress(string address); [OperationContract] string ReadStr(string address); [OperationContract] short ReadShort(string address); } }