| | |
| | | }}; |
| | | public static final ArrayList<Integer> staNos2= new ArrayList<Integer>() {{ |
| | | add(1025);add(1026);add(1027);add(1028);add(1029);add(1030);add(1031);add(1032);add(1033); |
| | | add(1034);add(1035);add(1036);add(1037);add(1039);add(1040);add(1041);add(1042);add(1043); |
| | | add(1044);add(1045);add(1046);add(1047);add(1048); |
| | | add(1034);add(1035);add(1036);add(1037);add(1038);add(1039);add(1040);add(1041);add(1042);add(1043); |
| | | add(1044);add(1045);add(1046);add(1047);add(1048);add(1072); |
| | | }}; |
| | | |
| | | |
| | |
| | | int writeCount = 0; |
| | | do { |
| | | write = siemensS7Net.Write("DB100." + address, staProtocol.getWorkNo()); // 工作号 |
| | | write1 = siemensS7Net.Write("DB100." + (address + 2), staProtocol.getStaNo()); // 目标站 |
| | | write1 = siemensS7Net.Write("DB100." + (address + 4), staProtocol.getStaNo()); // 目标站 |
| | | Thread.sleep(200); |
| | | if(write.IsSuccess && write1.IsSuccess){ |
| | | break; |