fix
This commit is contained in:
@@ -15,7 +15,7 @@ public enum DriverTypeEnum {
|
|||||||
|
|
||||||
STORAGE(3, "standard_storage", "标准版-货架", "storage"),
|
STORAGE(3, "standard_storage", "标准版-货架", "storage"),
|
||||||
|
|
||||||
AUTODOOR(4, "standard_auto_door", "标准版-自动门", "auto_door"),
|
AUTODOOR(4, "standard_autodoor", "标准版-自动门", "autodoor"),
|
||||||
|
|
||||||
AGV_NDC_ONE(5, "agv_ndc_one", "NDCAGV", "agv"),
|
AGV_NDC_ONE(5, "agv_ndc_one", "NDCAGV", "agv"),
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ public class ItemProtocol {
|
|||||||
public static String item_to_target = "to_target";
|
public static String item_to_target = "to_target";
|
||||||
public static String item_to_task = "to_task";
|
public static String item_to_task = "to_task";
|
||||||
public static String item_weight = "weight";
|
public static String item_weight = "weight";
|
||||||
|
public static String item_number = "number";
|
||||||
|
|
||||||
private StandardInspectSiteDeviceDriver driver;
|
private StandardInspectSiteDeviceDriver driver;
|
||||||
|
|
||||||
@@ -52,6 +53,10 @@ public class ItemProtocol {
|
|||||||
return this.getOpcIntegerValue(item_task);
|
return this.getOpcIntegerValue(item_task);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getNumber() {
|
||||||
|
return this.getOpcIntegerValue(item_number);
|
||||||
|
}
|
||||||
|
|
||||||
public int getToCommand() {
|
public int getToCommand() {
|
||||||
return this.getOpcIntegerValue(item_to_command);
|
return this.getOpcIntegerValue(item_to_command);
|
||||||
}
|
}
|
||||||
@@ -91,6 +96,7 @@ public class ItemProtocol {
|
|||||||
list.add(new ItemDto(item_move, "光电开关信号", "DB600.B2"));
|
list.add(new ItemDto(item_move, "光电开关信号", "DB600.B2"));
|
||||||
list.add(new ItemDto(item_error, "报警信号", "DB600.B6"));
|
list.add(new ItemDto(item_error, "报警信号", "DB600.B6"));
|
||||||
list.add(new ItemDto(item_task, "任务号", "DB600.D8"));
|
list.add(new ItemDto(item_task, "任务号", "DB600.D8"));
|
||||||
|
list.add(new ItemDto(item_number, "数量","DB600.D10"));
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -79,6 +79,9 @@ public class StandardInspectSiteDeviceDriver extends AbstractOpcDeviceDriver imp
|
|||||||
String message = null;
|
String message = null;
|
||||||
Boolean iserror = false;
|
Boolean iserror = false;
|
||||||
|
|
||||||
|
int number = 0;
|
||||||
|
int last_number = 0;
|
||||||
|
|
||||||
|
|
||||||
boolean hasVehicle = false;
|
boolean hasVehicle = false;
|
||||||
boolean isReady = false;
|
boolean isReady = false;
|
||||||
@@ -140,6 +143,7 @@ public class StandardInspectSiteDeviceDriver extends AbstractOpcDeviceDriver imp
|
|||||||
move = this.itemProtocol.getMove();
|
move = this.itemProtocol.getMove();
|
||||||
task = this.itemProtocol.getTask();
|
task = this.itemProtocol.getTask();
|
||||||
hasGoods = this.itemProtocol.getMove();
|
hasGoods = this.itemProtocol.getMove();
|
||||||
|
number = this.itemProtocol.getNumber();
|
||||||
|
|
||||||
if (move != last_move) {
|
if (move != last_move) {
|
||||||
this.requireSucess = false;
|
this.requireSucess = false;
|
||||||
@@ -188,6 +192,7 @@ public class StandardInspectSiteDeviceDriver extends AbstractOpcDeviceDriver imp
|
|||||||
last_error = error;
|
last_error = error;
|
||||||
last_move = move;
|
last_move = move;
|
||||||
last_task = task;
|
last_task = task;
|
||||||
|
last_number = number;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
server:
|
server:
|
||||||
port: 8010
|
port: 8010
|
||||||
http-port: 8011
|
|
||||||
tomcat:
|
tomcat:
|
||||||
accept-count: 1000
|
accept-count: 1000
|
||||||
max-connections: 10000
|
max-connections: 10000
|
||||||
|
|||||||
Reference in New Issue
Block a user