|
|
@ -70,7 +70,7 @@ public class HaiLiangFeedingTrunkDeviceDriver extends AbstractOpcDeviceDriver im |
|
|
|
int labeling_order = 0; |
|
|
|
int detail_labeling_qualified_qty = 0; |
|
|
|
int detail_labeling_qty = 0; |
|
|
|
int line_speed = 0; |
|
|
|
Float line_speed = 0.0f; |
|
|
|
int feeding_mouth = 0; |
|
|
|
int is_lettering = 0; |
|
|
|
int is_risking = 0; |
|
|
@ -79,7 +79,7 @@ public class HaiLiangFeedingTrunkDeviceDriver extends AbstractOpcDeviceDriver im |
|
|
|
int is_labeling = 0; |
|
|
|
int delay_time = 0; |
|
|
|
int lettering_frequency = 0; |
|
|
|
int one_speed = 0; |
|
|
|
Float one_speed = 0.0f; |
|
|
|
int coating_frequency = 0; |
|
|
|
|
|
|
|
int last_mode = 0; |
|
|
@ -104,7 +104,7 @@ public class HaiLiangFeedingTrunkDeviceDriver extends AbstractOpcDeviceDriver im |
|
|
|
int last_labeling_order = 0; |
|
|
|
int last_detail_labeling_qualified_qty = 0; |
|
|
|
int last_detail_labeling_qty = 0; |
|
|
|
int last_line_speed = 0; |
|
|
|
Float last_line_speed = 0.0f; |
|
|
|
int last_feeding_mouth = 0; |
|
|
|
int last_is_lettering = 0; |
|
|
|
int last_is_risking = 0; |
|
|
@ -113,7 +113,7 @@ public class HaiLiangFeedingTrunkDeviceDriver extends AbstractOpcDeviceDriver im |
|
|
|
int last_is_labeling = 0; |
|
|
|
int last_delay_time = 0; |
|
|
|
int last_lettering_frequency = 0; |
|
|
|
int last_one_speed = 0; |
|
|
|
Float last_one_speed = 0.0f; |
|
|
|
int last_coating_frequency = 0; |
|
|
|
|
|
|
|
Boolean send_letter_flag_back = false; |
|
|
@ -520,6 +520,7 @@ public class HaiLiangFeedingTrunkDeviceDriver extends AbstractOpcDeviceDriver im |
|
|
|
public boolean apply_order() throws Exception { |
|
|
|
ProduceshiftorderDto dto = produceshiftorderService.apply_order(); |
|
|
|
if(ObjectUtil.isEmpty(dto)){ |
|
|
|
logServer.deviceLogToacs(this.device_code,"","","未找到"); |
|
|
|
throw new BadRequestException("未找到可下发工单!"); |
|
|
|
} |
|
|
|
String order = dto.getOrder_code(); |
|
|
@ -592,8 +593,8 @@ public class HaiLiangFeedingTrunkDeviceDriver extends AbstractOpcDeviceDriver im |
|
|
|
writing(ItemProtocol.item_to_coating_qty,strap_pack_number); |
|
|
|
writing(ItemProtocol.item_to_labeling_qty,strap_pack_number); |
|
|
|
writing(ItemProtocol.item_to_command,String.valueOf(mode)); |
|
|
|
// dto.setOrder_detail_status("01");
|
|
|
|
// produceshiftorderdetailService.update(dto);
|
|
|
|
dto.setOrder_detail_status("02"); |
|
|
|
produceshiftorderdetailService.update(dto); |
|
|
|
send_letter_flag = false; |
|
|
|
send_letter_flag_back = false; |
|
|
|
requireSucess = true; |
|
|
|