| | |
| | | GTSCardAPI.GT_GetDo((short)IConfig.CardNum, GTSCardAPI.MC_GPO, out outValue); |
| | | |
| | | //解析结果 |
| | | for (var index = 1; index <= 16; index++) |
| | | for (var index = 0; index < 16; index++) |
| | | { |
| | | IOItem inItem = new IOItem() |
| | | { |
| | |
| | | monitorSet.OpConfig = new OperationConfigBase(); |
| | | } |
| | | |
| | | //monitorSet.OpConfig.InputPara = monitorSet.InputDataIndex.ConvertAll(index => |
| | | //{ |
| | | // return tempNew[index].Value; |
| | | //}).ToList(); |
| | | monitorSet.OpConfig.InputPara = monitorSet.InputDataIndex.ConvertAll(index => |
| | | { |
| | | return tempNew[index].Value == IOValue.TRUE ? 1 : 0; |
| | | }).ToList(); |
| | | |
| | | ExcuteMonitorInvoke(DateTime.Now, monitorSet.InvokeDevice, this, monitorSet); |
| | | } |