|
@ -119,7 +119,8 @@ public class HaiLiangFeedingTrunkDeviceDriver extends AbstractOpcDeviceDriver im |
|
|
int last_coating_frequency = 0; |
|
|
int last_coating_frequency = 0; |
|
|
int last_strapping_order_detail =0; |
|
|
int last_strapping_order_detail =0; |
|
|
int last_order_feeding_finish =0; |
|
|
int last_order_feeding_finish =0; |
|
|
|
|
|
int detail_coating_qualified_qty =0; |
|
|
|
|
|
int last_detail_coating_qualified_qty=0; |
|
|
Boolean send_letter_flag_back = false; |
|
|
Boolean send_letter_flag_back = false; |
|
|
Boolean send_letter_flag = false; |
|
|
Boolean send_letter_flag = false; |
|
|
|
|
|
|
|
@ -159,6 +160,8 @@ public class HaiLiangFeedingTrunkDeviceDriver extends AbstractOpcDeviceDriver im |
|
|
detail_strapping_oneqty = this.itemProtocol.getDetail_strapping_oneqty(); |
|
|
detail_strapping_oneqty = this.itemProtocol.getDetail_strapping_oneqty(); |
|
|
//当前工单明细号裹膜数
|
|
|
//当前工单明细号裹膜数
|
|
|
detail_coating_qty =this.itemProtocol.getDetail_coating_qty(); |
|
|
detail_coating_qty =this.itemProtocol.getDetail_coating_qty(); |
|
|
|
|
|
//当前工单明细号裹膜合格数
|
|
|
|
|
|
detail_coating_qualified_qty = this.itemProtocol.getDetail_coating_qualified_qty(); |
|
|
//当前贴标工单明细号
|
|
|
//当前贴标工单明细号
|
|
|
labeling_order_detail = this.itemProtocol.getLabeling_order_detail(); |
|
|
labeling_order_detail = this.itemProtocol.getLabeling_order_detail(); |
|
|
//捆扎明细
|
|
|
//捆扎明细
|
|
@ -377,6 +380,11 @@ public class HaiLiangFeedingTrunkDeviceDriver extends AbstractOpcDeviceDriver im |
|
|
logServer.deviceLog(this.device_code,"order_feeding_finish" ,String.valueOf(order_feeding_finish)); |
|
|
logServer.deviceLog(this.device_code,"order_feeding_finish" ,String.valueOf(order_feeding_finish)); |
|
|
logServer.deviceLogToacs(this.device_code,"","","信号order_feeding_finish:" + last_order_feeding_finish+ "->" + order_feeding_finish); |
|
|
logServer.deviceLogToacs(this.device_code,"","","信号order_feeding_finish:" + last_order_feeding_finish+ "->" + order_feeding_finish); |
|
|
} |
|
|
} |
|
|
|
|
|
if(detail_coating_qualified_qty != last_detail_coating_qualified_qty) |
|
|
|
|
|
{ |
|
|
|
|
|
logServer.deviceLog(this.device_code,"detail_coating_qualified_qty" ,String.valueOf(detail_coating_qualified_qty)); |
|
|
|
|
|
logServer.deviceLogToacs(this.device_code,"","","信号detail_coating_qualified_qty:" + last_detail_coating_qualified_qty+ "->" + detail_coating_qualified_qty); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
try{ |
|
|
try{ |
|
|
if(order >0 && order_detail>0){ |
|
|
if(order >0 && order_detail>0){ |
|
@ -484,9 +492,11 @@ public class HaiLiangFeedingTrunkDeviceDriver extends AbstractOpcDeviceDriver im |
|
|
last_one_speed = one_speed; |
|
|
last_one_speed = one_speed; |
|
|
last_coating_frequency = coating_frequency; |
|
|
last_coating_frequency = coating_frequency; |
|
|
last_order_feeding_finish = order_feeding_finish; |
|
|
last_order_feeding_finish = order_feeding_finish; |
|
|
|
|
|
last_detail_coating_qualified_qty = detail_coating_qualified_qty; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//捆扎
|
|
|
public synchronized boolean update_strapping_detail(String order, String order_detail) throws Exception { |
|
|
public synchronized boolean update_strapping_detail(String order, String order_detail) throws Exception { |
|
|
Date date = new Date(); |
|
|
Date date = new Date(); |
|
|
if (date.getTime() - this.detail_time_out < (long) this.detail_time_out) { |
|
|
if (date.getTime() - this.detail_time_out < (long) this.detail_time_out) { |
|
@ -499,8 +509,11 @@ public class HaiLiangFeedingTrunkDeviceDriver extends AbstractOpcDeviceDriver im |
|
|
if(ObjectUtil.isEmpty(dto)){ |
|
|
if(ObjectUtil.isEmpty(dto)){ |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
dto.setPresent_labeling_number(String.valueOf(detail_labeling_qty)); |
|
|
dto.setPresent_strap_number(String.valueOf(detail_strapping_qty)); |
|
|
dto.setQualified_lettering_number(String.valueOf(detail_labeling_qualified_qty)); |
|
|
dto.setQualified_strap_pack_number(String.valueOf(detail_strapping_oneqty)); |
|
|
|
|
|
dto.setPresent_wraping_number(String.valueOf(detail_coating_qty)); |
|
|
|
|
|
dto.setQualified_wraping_number(String.valueOf(detail_coating_qualified_qty)); |
|
|
|
|
|
|
|
|
produceshiftorderdetailService.update(dto); |
|
|
produceshiftorderdetailService.update(dto); |
|
|
return true; |
|
|
return true; |
|
|
} |
|
|
} |
|
|