| | |
| | | StaProtocol staProtocol2 = (StaProtocol)task.getData(); |
| | | siemensS7Net.Write("DB108.0" + staProtocol2.getSiteId(), staProtocol2.getStaNo()==1); |
| | | break; |
| | | //复位测试信号 |
| | | case 3: |
| | | StaProtocol staProtocol = (StaProtocol)task.getData(); |
| | | siemensS7Net.Write("DB102.0" + staProtocol.getSiteId(), staProtocol.getStaNo()); |
| | | break; |
| | | default: |
| | | break; |
| | | //复位测试信号 |
| | | case 3: |
| | | StaProtocol staProtocol = (StaProtocol) task.getData(); |
| | | siemensS7Net.Write("DB102.0" + staProtocol.getSiteId(), staProtocol.getStaNo()); |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | // 心跳 |
| | | // heartbeat(); |
| | |
| | | //启动移库按钮 |
| | | OperateResultExOne<byte[]> result6 = siemensS7Net.Read("DB102.0", (short) 96); |
| | | //消防报警 |
| | | OperateResultExOne<byte[]> result4 = siemensS7Net.Read("DB108.0", (short) 96); |
| | | OperateResultExOne<byte[]> result4 = siemensS7Net.Read("DB108.0", (short) 48); |
| | | if(result3.IsSuccess) { |
| | | for(int i=0; i<48; i++){ |
| | | startSignal[i][0] = siemensS7Net.getByteTransform().TransByte(result3.Content, i);//测试柜状态 |