更新
This commit is contained in:
@@ -274,11 +274,11 @@ public class SlitTwoManipulatorDeviceDriver extends AbstractOpcDeviceDriver impl
|
||||
}
|
||||
}
|
||||
;
|
||||
this.writing("to_command1", "0");
|
||||
this.writing("to_onset1", "0");
|
||||
this.writing("to_target1", "0");
|
||||
this.writing("to_task1", "0");
|
||||
this.writing("to_type", "0");
|
||||
this.writing("to_command1", "4");
|
||||
// this.writing("to_onset1", "0");
|
||||
// this.writing("to_target1", "0");
|
||||
// this.writing("to_task1", "0");
|
||||
// this.writing("to_type", "0");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -302,7 +302,7 @@ public class SlitTwoManipulatorDeviceDriver extends AbstractOpcDeviceDriver impl
|
||||
}
|
||||
}
|
||||
;
|
||||
this.writing("to_command2", "0");
|
||||
this.writing("to_command2", "4");
|
||||
this.writing("to_onset2", "0");
|
||||
this.writing("to_target2", "0");
|
||||
this.writing("to_task2", "0");
|
||||
@@ -311,7 +311,12 @@ public class SlitTwoManipulatorDeviceDriver extends AbstractOpcDeviceDriver impl
|
||||
}
|
||||
}
|
||||
|
||||
//双工位 任务完成
|
||||
//双任务后工位反馈4
|
||||
if (mode == 3 && action2 == 4 && move2 == 0 && task1 > 0 && task2 > 0 && type == 3 ){
|
||||
this.writing("to_command2", "4");
|
||||
}
|
||||
|
||||
//双工位 任务完成 前工位反馈4
|
||||
if (mode == 3 && action1 == 4 && move1 == 0 && task1 > 0 && task2 > 0 && type == 3) {
|
||||
//inst_message
|
||||
Instruction inst1 = instructionService.findByCodeFromCache(String.valueOf(task1));
|
||||
@@ -328,17 +333,15 @@ public class SlitTwoManipulatorDeviceDriver extends AbstractOpcDeviceDriver impl
|
||||
array.add(map);
|
||||
acsToWmsService.feedbackTaskStatusToWms(array);
|
||||
}
|
||||
}
|
||||
;
|
||||
this.writing("to_command1", "0");
|
||||
this.writing("to_onset1", "0");
|
||||
this.writing("to_target1", "0");
|
||||
this.writing("to_task1", "0");
|
||||
this.writing("to_command2", "0");
|
||||
this.writing("to_onset2", "0");
|
||||
this.writing("to_target2", "0");
|
||||
this.writing("to_task2", "0");
|
||||
this.writing("to_type", "0");
|
||||
};
|
||||
this.writing("to_command1", "4");
|
||||
// this.writing("to_onset1", "0");
|
||||
// this.writing("to_target1", "0");
|
||||
// this.writing("to_task1", "0");
|
||||
// this.writing("to_onset2", "0");
|
||||
// this.writing("to_target2", "0");
|
||||
// this.writing("to_task2", "0");
|
||||
// this.writing("to_type", "0");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user