更新
This commit is contained in:
@@ -308,11 +308,11 @@ public class LnshRGVDeviceDriver extends AbstractOpcDeviceDriver implements Devi
|
||||
//执行单任务下的业务逻辑
|
||||
//给后工位下发空盘放货信号
|
||||
//判断条件 前工位无任务、无货 后工位有任务取货完成
|
||||
if(mode == 3 && action_2 == 2 && move_2 != 0 && move_1 == 0 && ObjectUtil.isNotEmpty(inst2) && ObjectUtil.isEmpty(inst1) ){
|
||||
if (mode == 3 && action_2 == 2 && move_2 != 0 && move_1 == 0 && task2 > 0 && task1 == 0) {
|
||||
writing("to_command2", "2");
|
||||
}
|
||||
//给前工位取满托下发放货信号
|
||||
if(mode == 3 && action_1 == 2 && move_1 != 0 && move_2 == 0 && task1>0 && ObjectUtil.isNotEmpty(inst1) && ObjectUtil.isEmpty(inst2) ){
|
||||
if (mode == 3 && action_1 == 2 && move_1 != 0 && move_2 == 0 && task1 > 0 && task2 == 0) {
|
||||
writing("to_command1", "2");
|
||||
}
|
||||
|
||||
@@ -350,7 +350,8 @@ public class LnshRGVDeviceDriver extends AbstractOpcDeviceDriver implements Devi
|
||||
if (mode == 2 && move_2 == 0 && action_2 == 0 && !requireSucess2) {
|
||||
instruction_require2();
|
||||
}
|
||||
if (mode == 2 && move_2 == 0 && action_2 == 0 && move_1 == 0 && ObjectUtil.isEmpty(inst2) && !requireSucess1){
|
||||
//前工位申请任务
|
||||
if (mode == 2 && move_2 == 0 && action_2 == 0 && move_1 == 0 && task2 == 0 && !requireSucess1) {
|
||||
instruction_require();
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -22,7 +22,7 @@ public class SortingUtil {
|
||||
//木托盘对应刚托盘记录明细【st_buss_vehicleRelaRecordtl】
|
||||
WQLObject ehicleRelaRecordmstdtl = WQLObject.getWQLObject("st_buss_vehicleRelaRecordtl");
|
||||
//st_buss_vehiclegroup
|
||||
WQLObject groupTable = WQLObject.getWQLObject("st_buss_vehicleRelaRecordtl");
|
||||
WQLObject groupTable = WQLObject.getWQLObject("st_buss_vehiclegroup");
|
||||
JSONObject mstObj = ehicleRelaRecordmst.query("vehicle_code='" + vehicle_code + "'").uniqueResult(0);
|
||||
String record_id = IdUtil.getSnowflake(1, 1).nextIdStr();
|
||||
|
||||
|
||||
@@ -306,7 +306,10 @@ IF 输入.flag = "9"
|
||||
material.material_type = 输入.material_type
|
||||
ENDOPTION
|
||||
OPTION 输入.material_id <> ""
|
||||
ivt.material_id = 输入.material_id
|
||||
material.material_id = 输入.material_id
|
||||
ENDOPTION
|
||||
OPTION 输入.material_code <> ""
|
||||
material.material_code = 输入.material_code
|
||||
ENDOPTION
|
||||
order by ruledis.out_seq_no
|
||||
ENDSELECT
|
||||
|
||||
@@ -323,7 +323,8 @@ public class CallMaterialTask extends AbstractAcsTask {
|
||||
WQLObject point_table = WQLObject.getWQLObject("sch_base_point");
|
||||
WmsToAcsServiceImpl wmsToAcsService = new WmsToAcsServiceImpl();
|
||||
//更新分拣机械手 上下料位置的点位状态
|
||||
JSONArray parr = point_table.query("area_type ='27'").getResultJSONArray(0);
|
||||
JSONArray parr = WQL.getWO("ACSTOMES_001").addParam("area_type", AreaEnum.FJQY.getCode()).addParam("flag", "4").process().getResultJSONArray(0);
|
||||
//JSONArray parr = point_table.query("area_type ='27'").getResultJSONArray(0);
|
||||
PointUpdateUtil.updatePoint(parr);
|
||||
if (StrUtil.equals(next_point_code, "FJJXSSLW101") || StrUtil.equals(next_point_code, "FJJXSSLW102")) {
|
||||
String point_status01 = point_table.query("point_code ='FJJXSSLW101'").uniqueResult(0).getString("point_status");
|
||||
|
||||
@@ -205,7 +205,7 @@ public class SectattrServiceImpl implements SectattrService {
|
||||
JSONArray sect_ja = new JSONArray();
|
||||
for (int j = 0; j < sect_arr.size(); j++) {
|
||||
JSONObject sect_jo = sect_arr.getJSONObject(j);
|
||||
net.sf.json.JSONObject sect_cas = new net.sf.json.JSONObject();
|
||||
JSONObject sect_cas = new JSONObject();
|
||||
sect_cas.put("value", sect_jo.getString("sect_id"));
|
||||
sect_cas.put("label", sect_jo.getString("sect_name"));
|
||||
sect_ja.add(sect_cas);
|
||||
|
||||
Reference in New Issue
Block a user