Browse Source

Opc同步线程修改

master
管理员 2 years ago
parent
commit
2ef70d2f75
  1. 2
      acs/nladmin-system/src/main/java/org/nl/acs/opc/DeviceOpcProtocolRunable.java

2
acs/nladmin-system/src/main/java/org/nl/acs/opc/DeviceOpcProtocolRunable.java

@ -109,7 +109,7 @@ public class DeviceOpcProtocolRunable implements Runnable {
boolean time_out = false; boolean time_out = false;
label97: label97:
while (true) { while (DeviceOpcSynchronizeAutoRun.isRun) {
long begin = System.currentTimeMillis(); long begin = System.currentTimeMillis();
Map<Item, ItemState> itemStatus = group.read(true, (Item[]) itemsMap.values().toArray(new Item[0])); Map<Item, ItemState> itemStatus = group.read(true, (Item[]) itemsMap.values().toArray(new Item[0]));
long end = System.currentTimeMillis(); long end = System.currentTimeMillis();

Loading…
Cancel
Save