|
@@ -134,7 +134,7 @@ class Trace_pusher:
|
|
|
with self.locks[i]:
|
|
with self.locks[i]:
|
|
|
if self.strands_buffer[i]:
|
|
if self.strands_buffer[i]:
|
|
|
self.barrier_checker[i] = True
|
|
self.barrier_checker[i] = True
|
|
|
- time.sleep(5)
|
|
|
|
|
|
|
+ time.sleep(8)
|
|
|
billetData = self.strands_buffer[i]
|
|
billetData = self.strands_buffer[i]
|
|
|
self.strands_buffer[i] = []
|
|
self.strands_buffer[i] = []
|
|
|
if self.strand_position[i] <= self.pusher_left.data:
|
|
if self.strand_position[i] <= self.pusher_left.data:
|
|
@@ -231,7 +231,7 @@ class Trace_pusher:
|
|
|
|
|
|
|
|
if count == 0:
|
|
if count == 0:
|
|
|
dst[0].extend(billets)
|
|
dst[0].extend(billets)
|
|
|
- elif count == 3 and len(billets) >= 4:
|
|
|
|
|
|
|
+ elif count == 3 and (len(billets) >= 4 or len(dst[count-1]) >= 4):
|
|
|
self.logger.error(f"组坯异常!")
|
|
self.logger.error(f"组坯异常!")
|
|
|
flag = False
|
|
flag = False
|
|
|
for j in dst:
|
|
for j in dst:
|
|
@@ -249,7 +249,7 @@ class Trace_pusher:
|
|
|
self.logger.error(f"组坯异常!")
|
|
self.logger.error(f"组坯异常!")
|
|
|
dst[count-1].extend(billets)
|
|
dst[count-1].extend(billets)
|
|
|
count -= 1
|
|
count -= 1
|
|
|
- elif len(billets) >= 4:
|
|
|
|
|
|
|
+ elif len(billets) >= 4 or len(dst[count-1]) >= 4 or len(dst[count-1]) + len(billets) > 4:
|
|
|
dst[count].extend(billets)
|
|
dst[count].extend(billets)
|
|
|
else:
|
|
else:
|
|
|
dst[count-1].extend(billets)
|
|
dst[count-1].extend(billets)
|
|
@@ -278,6 +278,8 @@ class Trace_pusher:
|
|
|
self.strand[int(strandNo)-1] += 1
|
|
self.strand[int(strandNo)-1] += 1
|
|
|
billetNo = self.current_heatNo + ccmNo + strandNo + '{:0>2}'.format(self.strand[int(strandNo)-1])
|
|
billetNo = self.current_heatNo + ccmNo + strandNo + '{:0>2}'.format(self.strand[int(strandNo)-1])
|
|
|
billetsNo.append(billetNo)
|
|
billetsNo.append(billetNo)
|
|
|
|
|
+ i[0] = billetNo
|
|
|
|
|
+ i[1] = self.current_heatData
|
|
|
if self.current_heatData:
|
|
if self.current_heatData:
|
|
|
self.sender.billet_upload(self.current_heatData, billetNo, self.total, i[2], i[3], i[4], i[5], billet_unionNo)
|
|
self.sender.billet_upload(self.current_heatData, billetNo, self.total, i[2], i[3], i[4], i[5], billet_unionNo)
|
|
|
|
|
|
|
@@ -329,10 +331,11 @@ class Trace_pusher:
|
|
|
self.bed_right = [[], [], []]
|
|
self.bed_right = [[], [], []]
|
|
|
|
|
|
|
|
def get_billet(self, direc):
|
|
def get_billet(self, direc):
|
|
|
- if direc == "left":
|
|
|
|
|
- return self.get_billet_action(self.bed_left)
|
|
|
|
|
- if direc == "right":
|
|
|
|
|
- return self.get_billet_action(self.bed_right)
|
|
|
|
|
|
|
+ with self.count_lock:
|
|
|
|
|
+ if direc == "left":
|
|
|
|
|
+ return self.get_billet_action(self.bed_left)
|
|
|
|
|
+ if direc == "right":
|
|
|
|
|
+ return self.get_billet_action(self.bed_right)
|
|
|
|
|
|
|
|
def get_billet_action(self, src):
|
|
def get_billet_action(self, src):
|
|
|
for i in range(len(src)-1, -1, -1):
|
|
for i in range(len(src)-1, -1, -1):
|