| | |
| | | // 异常事件 |
| | | public Action<Exception> OnExceptionRaised; |
| | | |
| | | public GTSCardInitialConfig IConfig |
| | | public GTSCardInitialConfig IIConfig |
| | | { |
| | | get |
| | | { |
| | |
| | | |
| | | public override ResponseMessage Run(IOperationConfig config) |
| | | { |
| | | throw new NotImplementedException(); |
| | | ResponseMessage responseMessage = new ResponseMessage(); |
| | | |
| | | |
| | | return responseMessage; |
| | | } |
| | | #endregion |
| | | |
| | |
| | | { |
| | | IONum = index, |
| | | Value = (inValue & (1 << index)) == 0 ? 1 : 0, |
| | | IOType = IOType.In |
| | | IOType = IOType.INPUT |
| | | }; |
| | | IOItem outItem = new IOItem() |
| | | { |
| | | IONum = index, |
| | | Value = (outValue & (1 << index)) == 0 ? 1 : 0, |
| | | IOType = IOType.Out |
| | | IOType = IOType.OUTPUT |
| | | }; |
| | | result.Add(inItem); |
| | | result.Add(outItem); |
| | |
| | | foreach (var replyIOData in monitorSet.ReplyIODatas) |
| | | { |
| | | //写入IO输出 |
| | | if (replyIOData.IOType == IOType.Out) |
| | | if (replyIOData.IOType == IOType.OUTPUT) |
| | | { |
| | | GTSCardAPI.GT_SetDoBit((short)IConfig.CardNum, GTSCardAPI.MC_GPI, (short)replyIOData.IONum, (short)replyIOData.Value); |
| | | } |
| | |
| | | // return tempNew[index].Value; |
| | | //}).ToList(); |
| | | |
| | | ExcuteMonitorInvok(DateTime.Now, monitorSet.InvokeDevice, this, monitorSet); |
| | | ExcuteMonitorInvok(DateTime.Now, monitorSet.InvokeDevice, this, monitorSet, OnMethodInvoked); |
| | | } |
| | | } |
| | | }); |