opt: 内包间驱动优化
This commit is contained in:
@@ -206,7 +206,7 @@ public class CasingStationConveyorDeviceDriver extends AbstractOpcDeviceDriver i
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "信号qty:" + last_qty + "->" + qty);
|
||||
}
|
||||
|
||||
if (move != 0 && task > 1 && task1 > 0) {
|
||||
if (move != 0 && task > 0 && task1 > 0) {
|
||||
update_instruction_status();
|
||||
}
|
||||
|
||||
@@ -255,9 +255,11 @@ public class CasingStationConveyorDeviceDriver extends AbstractOpcDeviceDriver i
|
||||
last_error = error;
|
||||
last_carrier_direction = carrier_direction;
|
||||
last_task = task;
|
||||
last_task1 = task1;
|
||||
last_material1 = material1;
|
||||
last_material2 = material2;
|
||||
last_to_command = to_command;
|
||||
last_qty = qty;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -276,13 +278,13 @@ public class CasingStationConveyorDeviceDriver extends AbstractOpcDeviceDriver i
|
||||
inst.setInstruction_status("1");
|
||||
inst.setExecute_device_code(this.device_code);
|
||||
instructionService.update(inst);
|
||||
logServer.deviceExecuteLog(device_code, "", "", "入库输送线任务开始反馈执行中状态,反馈成功,指令号:" + task);
|
||||
logServer.deviceExecuteLog(device_code, "", "", "套管工位任务开始反馈执行中状态,反馈成功,指令号:" + task);
|
||||
}
|
||||
if (StrUtil.equals(inst.getInstruction_status(), "1") || StrUtil.equals(inst.getInstruction_status(), "0")) {
|
||||
if (StrUtil.equals(this.getDeviceCode(), inst.getNext_device_code())) {
|
||||
inst.setExecute_device_code(this.device_code);
|
||||
finish_instruction();
|
||||
logServer.deviceExecuteLog(device_code, "", "", "入库输送线任务开始反馈完成状态,反馈成功,指令号:" + task);
|
||||
logServer.deviceExecuteLog(device_code, "", "", "套管工位任务开始反馈完成状态,反馈成功,指令号:" + task);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,8 +119,8 @@ public class ItemProtocol {
|
||||
list.add(new ItemDto(item_error, "报警", "DB101.W8"));
|
||||
list.add(new ItemDto(item_task, "任务号1", "DB101.D116"));
|
||||
list.add(new ItemDto(item_task1, "任务号2", "DB101.D118"));
|
||||
list.add(new ItemDto(item_material1, "物料1", "DB102.STRING10.50"));
|
||||
list.add(new ItemDto(item_material2, "物料2", "DB102.STRING62.50"));
|
||||
list.add(new ItemDto(item_material1, "物料1", "DB101.STRING10.50"));
|
||||
list.add(new ItemDto(item_material2, "物料2", "DB101.STRING62.50"));
|
||||
list.add(new ItemDto(item_qty, "数量", "DB101.W114"));
|
||||
return list;
|
||||
}
|
||||
|
||||
@@ -351,58 +351,58 @@ public class ItemProtocol {
|
||||
|
||||
public static List<ItemDto> getReadableItemDtos() {
|
||||
ArrayList list = new ArrayList();
|
||||
list.add(new ItemDto(item_heartbeat, "心跳", "DB101.W0"));
|
||||
list.add(new ItemDto(item_mode, "工作模式", "DB101.W2"));
|
||||
list.add(new ItemDto(item_move, "光电信号", "DB101.W3"));
|
||||
list.add(new ItemDto(item_carrier_direction, "托盘方向", "DB101.W4"));
|
||||
list.add(new ItemDto(item_error, "报警", "DB101.W58"));
|
||||
list.add(new ItemDto(item_task, "任务号", "DB101.W68"));
|
||||
list.add(new ItemDto(item_out_seq_arr, "出库顺序数组", "DB101.W5"));
|
||||
list.add(new ItemDto(item_out_qty_arr, "出库数量数组", "DB101.W6"));
|
||||
list.add(new ItemDto(item_material1, "物料1", "DB101.W7"));
|
||||
list.add(new ItemDto(item_qty1, "数量1", "DB101.W19"));
|
||||
list.add(new ItemDto(item_material2, "物料2", "DB101.W8"));
|
||||
list.add(new ItemDto(item_qty2, "数量2", "DB101.W20"));
|
||||
list.add(new ItemDto(item_material3, "物料3", "DB101.W9"));
|
||||
list.add(new ItemDto(item_qty3, "数量3", "DB101.W21"));
|
||||
list.add(new ItemDto(item_material4, "物料4", "DB101.W10"));
|
||||
list.add(new ItemDto(item_qty4, "数量4", "DB101.W22"));
|
||||
list.add(new ItemDto(item_material5, "物料5", "DB101.W11"));
|
||||
list.add(new ItemDto(item_qty5, "数量5", "DB101.W23"));
|
||||
list.add(new ItemDto(item_material6, "物料6", "DB101.W12"));
|
||||
list.add(new ItemDto(item_qty6, "数量6", "DB101.W24"));
|
||||
list.add(new ItemDto(item_material7, "物料7", "DB101.W13"));
|
||||
list.add(new ItemDto(item_qty7, "数量7", "DB101.W25"));
|
||||
list.add(new ItemDto(item_material8, "物料8", "DB101.W14"));
|
||||
list.add(new ItemDto(item_qty8, "数量8", "DB101.W26"));
|
||||
list.add(new ItemDto(item_material9, "物料9", "DB101.W15"));
|
||||
list.add(new ItemDto(item_qty9, "数量9", "DB101.W27"));
|
||||
list.add(new ItemDto(item_material10, "物料10", "DB101.W16"));
|
||||
list.add(new ItemDto(item_qty10, "数量10", "DB101.W28"));
|
||||
list.add(new ItemDto(item_material11, "物料11", "DB101.W17"));
|
||||
list.add(new ItemDto(item_qty11, "数量11", "DB101.W29"));
|
||||
list.add(new ItemDto(item_material12, "物料12", "DB101.W18"));
|
||||
list.add(new ItemDto(item_qty12, "数量12", "DB101.W30"));
|
||||
list.add(new ItemDto(item_heartbeat, "心跳", "1001.W0"));
|
||||
list.add(new ItemDto(item_mode, "工作模式", "1001.W2"));
|
||||
list.add(new ItemDto(item_move, "光电信号", "1001.W4"));
|
||||
list.add(new ItemDto(item_carrier_direction, "托盘方向", "1001.W6"));
|
||||
list.add(new ItemDto(item_error, "报警", "1001.W8"));
|
||||
list.add(new ItemDto(item_task, "任务号", "1001.W10"));
|
||||
list.add(new ItemDto(item_out_seq_arr, "出库顺序数组", "1001.String.150"));
|
||||
list.add(new ItemDto(item_out_qty_arr, "出库数量数组", "1001.W166"));
|
||||
list.add(new ItemDto(item_material1, "物料1", "1001.String170.50"));
|
||||
list.add(new ItemDto(item_qty1, "数量1", "1001.W222"));
|
||||
list.add(new ItemDto(item_material2, "物料2", "1001.String224.50"));
|
||||
list.add(new ItemDto(item_qty2, "数量2", "1001.W276"));
|
||||
list.add(new ItemDto(item_material3, "物料3", "1001.String278.50"));
|
||||
list.add(new ItemDto(item_qty3, "数量3", "1001.W330"));
|
||||
list.add(new ItemDto(item_material4, "物料4", "1001.String332.50"));
|
||||
list.add(new ItemDto(item_qty4, "数量4", "1001.W384"));
|
||||
list.add(new ItemDto(item_material5, "物料5", "1001.String386.50"));
|
||||
list.add(new ItemDto(item_qty5, "数量5", "1001.W438"));
|
||||
list.add(new ItemDto(item_material6, "物料6", "1001.String440.50"));
|
||||
list.add(new ItemDto(item_qty6, "数量6", "1001.W492"));
|
||||
list.add(new ItemDto(item_material7, "物料7", "1001.String494.50"));
|
||||
list.add(new ItemDto(item_qty7, "数量7", "1001.W546"));
|
||||
list.add(new ItemDto(item_material8, "物料8", "1001.String548.50"));
|
||||
list.add(new ItemDto(item_qty8, "数量8", "1001.W600"));
|
||||
list.add(new ItemDto(item_material9, "物料9", "1001.String602.50"));
|
||||
list.add(new ItemDto(item_qty9, "数量9", "1001.W654"));
|
||||
list.add(new ItemDto(item_material10, "物料10", "1001.String656.50"));
|
||||
list.add(new ItemDto(item_qty10, "数量10", "1001.W708"));
|
||||
list.add(new ItemDto(item_material11, "物料11", "1001.String710.50"));
|
||||
list.add(new ItemDto(item_qty11, "数量11", "1001.W762"));
|
||||
list.add(new ItemDto(item_material12, "物料12", "1001.String764.50"));
|
||||
list.add(new ItemDto(item_qty12, "数量12", "1001.W816"));
|
||||
return list;
|
||||
}
|
||||
|
||||
public static List<ItemDto> getWriteableItemDtos() {
|
||||
ArrayList list = new ArrayList();
|
||||
list.add(new ItemDto(item_to_target , "下发仓位号", "DB102.W2"));
|
||||
list.add(new ItemDto(item_to_command, "下发命令", "DB102.W4"));
|
||||
list.add(new ItemDto(item_to_task, "下发任务号", "DB102.W1"));
|
||||
list.add(new ItemDto(item_to_material1, "下发物料1", "DB102.W3"));
|
||||
list.add(new ItemDto(item_to_out_qty1, "下发物料1数量", "DB102.W7"));
|
||||
list.add(new ItemDto(item_to_seq1, "出库顺序1", "DB102.W10"));
|
||||
list.add(new ItemDto(item_to_position1, "仓位1", "DB102.W13"));
|
||||
list.add(new ItemDto(item_to_material2, "下发物料2", "DB102.W5"));
|
||||
list.add(new ItemDto(item_to_out_qty2, "下发物料2数量", "DB102.W8"));
|
||||
list.add(new ItemDto(item_to_seq2, "出库顺序2", "DB102.W11"));
|
||||
list.add(new ItemDto(item_to_position2, "仓位2", "DB102.W14"));
|
||||
list.add(new ItemDto(item_to_material3, "下发物料3", "DB102.W6"));
|
||||
list.add(new ItemDto(item_to_out_qty3, "下发物料3数量", "DB102.W9"));
|
||||
list.add(new ItemDto(item_to_seq3, "出库顺序3", "DB102.W12"));
|
||||
list.add(new ItemDto(item_to_position3, "仓位3", "DB102.W15"));
|
||||
list.add(new ItemDto(item_to_target , "下发仓位号", "1002.W0"));
|
||||
list.add(new ItemDto(item_to_command, "下发命令", "1002.W2"));
|
||||
list.add(new ItemDto(item_to_task, "下发任务号", "1002.DW4"));
|
||||
list.add(new ItemDto(item_to_material1, "下发物料1", "1002.String8.50"));
|
||||
list.add(new ItemDto(item_to_out_qty1, "下发物料1数量", "1002.W60"));
|
||||
list.add(new ItemDto(item_to_seq1, "出库顺序1", "1002.W62"));
|
||||
list.add(new ItemDto(item_to_position1, "仓位1", "1002.W64"));
|
||||
list.add(new ItemDto(item_to_material2, "下发物料2", "1002.String66.50"));
|
||||
list.add(new ItemDto(item_to_out_qty2, "下发物料2数量", "1002.W118"));
|
||||
list.add(new ItemDto(item_to_seq2, "出库顺序2", "1002.W120"));
|
||||
list.add(new ItemDto(item_to_position2, "仓位2", "1002.W122"));
|
||||
list.add(new ItemDto(item_to_material3, "下发物料3", "1002.String124.50"));
|
||||
list.add(new ItemDto(item_to_out_qty3, "下发物料3数量", "1002.W176"));
|
||||
list.add(new ItemDto(item_to_seq3, "出库顺序3", "1002.W178"));
|
||||
list.add(new ItemDto(item_to_position3, "仓位3", "1002.W180"));
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user