psh 10 months ago
parent
commit
f86be4543c
  1. 5
      acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/ssx_site/ItemProtocol.java
  2. 4
      acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/ssx_site/SsxSiteDeviceDriver.java
  3. 17
      lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/POINTTask.java

5
acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/ssx_site/ItemProtocol.java

@ -18,7 +18,6 @@ public class ItemProtocol {
public static String item_error = "error"; public static String item_error = "error";
public static String item_task = "task"; public static String item_task = "task";
public static String item_weight = "weight"; public static String item_weight = "weight";
public static String item_material_type = "material_type";
public static String item_sub_tray = "sub_tray"; public static String item_sub_tray = "sub_tray";
public static String item_mother_tray = "mother_tray"; public static String item_mother_tray = "mother_tray";
public static String item_to_command = "to_command"; public static String item_to_command = "to_command";
@ -57,9 +56,6 @@ public class ItemProtocol {
public int getWeight() { public int getWeight() {
return this.getOpcIntegerValue(item_weight); return this.getOpcIntegerValue(item_weight);
} }
public int getMaterialType() {
return this.getOpcIntegerValue(item_material_type);
}
public int getSubTray() { public int getSubTray() {
return this.getOpcIntegerValue(item_sub_tray); return this.getOpcIntegerValue(item_sub_tray);
} }
@ -109,7 +105,6 @@ public class ItemProtocol {
list.add(new ItemDto(item_action, "取放信号", "DB600.B3")); list.add(new ItemDto(item_action, "取放信号", "DB600.B3"));
list.add(new ItemDto(item_task, "任务号", "DB600.D4")); list.add(new ItemDto(item_task, "任务号", "DB600.D4"));
list.add(new ItemDto(item_weight, "重量", "DB600.D4")); list.add(new ItemDto(item_weight, "重量", "DB600.D4"));
list.add(new ItemDto(item_material_type, "物料类型", "DB600.D4"));
list.add(new ItemDto(item_sub_tray, "子托盘条码", "DB600.D4")); list.add(new ItemDto(item_sub_tray, "子托盘条码", "DB600.D4"));
list.add(new ItemDto(item_mother_tray, "母托盘条码", "DB600.D4")); list.add(new ItemDto(item_mother_tray, "母托盘条码", "DB600.D4"));
list.add(new ItemDto(item_error, "报警信号", "DB600.B5")); list.add(new ItemDto(item_error, "报警信号", "DB600.B5"));

4
acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/ssx_site/SsxSiteDeviceDriver.java

@ -79,8 +79,6 @@ public class SsxSiteDeviceDriver extends AbstractOpcDeviceDriver implements Devi
int last_io_action = 0; int last_io_action = 0;
double weight = 0; double weight = 0;
double last_weight = 0; double last_weight = 0;
int material_type = 0;
int last_material_type =0;
int sub_tray = 0; int sub_tray = 0;
int last_sub_tray =0; int last_sub_tray =0;
int mother_tray = 0; int mother_tray = 0;
@ -149,7 +147,6 @@ public class SsxSiteDeviceDriver extends AbstractOpcDeviceDriver implements Devi
hasGoods = this.itemProtocol.getMove(); hasGoods = this.itemProtocol.getMove();
action = this.itemProtocol.getAction(); action = this.itemProtocol.getAction();
weight = this.itemProtocol.getWeight(); weight = this.itemProtocol.getWeight();
material_type = this.itemProtocol.getMaterialType();
mother_tray = this.itemProtocol.getMotherTray(); mother_tray = this.itemProtocol.getMotherTray();
sub_tray = this.itemProtocol.getSubTray(); sub_tray = this.itemProtocol.getSubTray();
if (mode != last_mode) { if (mode != last_mode) {
@ -222,7 +219,6 @@ public class SsxSiteDeviceDriver extends AbstractOpcDeviceDriver implements Devi
last_move = move; last_move = move;
last_task = task; last_task = task;
last_weight = weight; last_weight = weight;
last_material_type = material_type;
last_sub_tray = sub_tray; last_sub_tray = sub_tray;
last_mother_tray = mother_tray; last_mother_tray = mother_tray;
last_action = action; last_action = action;

17
lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/POINTTask.java

@ -206,21 +206,6 @@ public class POINTTask extends AbstractTask {
@Override @Override
protected void feedbackTaskState(JSONObject param,SchBaseTask schBaseTask, BaseResponse result) { protected void feedbackTaskState(JSONObject param,SchBaseTask schBaseTask, BaseResponse result) {
//重算最优点 //该场景无需重算等待点
JSONObject jsonObject = JSONObject.parseObject(schBaseTask.getExt_group_data());
SchBasePoint point = this.findNextPoint(jsonObject,schBaseTask);
//正极板现在不堆叠
if( "1".equals(jsonObject.getString("material_type"))) {
schBaseTask.setPoint_code1(point.getPoint_code()+"0"+(point.getVehicle_qty()));
}else{
schBaseTask.setPoint_code1(point.getPoint_code().replace("HCQ","QHQ"));
}
//重算点位时把点位占用
point.setIng_task_code(schBaseTask.getTask_code());
//如果是正极板对接位则直接减库存
if ((point.getPoint_code().startsWith("ZJBDJW"))) {
point.setVehicle_qty(point.getVehicle_qty() - 1);
}
pointService.update(point);
} }
} }

Loading…
Cancel
Save