|
@@ -53,25 +53,45 @@ class Trace_pusher:
|
|
|
self.drawing_speed.append(self.data_s7.make_point(f'L{i+1}拉速'))
|
|
|
|
|
|
if self.hostsend_flag:
|
|
|
+ # self.billet_position = [
|
|
|
+ # Through_state_continues3(data_s7.make_point('集群限位L1_1[3]'), data_s7.make_point('集群限位L1_1[4]'), data_s7.make_point('集群限位L1_1[5]')),
|
|
|
+ # Through_state_continues3(data_s7.make_point('集群限位L2_1[3]'), data_s7.make_point('集群限位L2_1[4]'), data_s7.make_point('集群限位L2_1[5]')),
|
|
|
+ # Through_state_continues3(data_s7.make_point('集群限位L3_1[3]'), data_s7.make_point('集群限位L3_1[4]'), data_s7.make_point('集群限位L3_1[5]')),
|
|
|
+ # Through_state_continues3(data_s7.make_point('集群限位L4_1[3]'), data_s7.make_point('集群限位L4_1[4]'), data_s7.make_point('集群限位L4_1[5]')),
|
|
|
+ # Through_state_continues3(data_s7.make_point('集群限位L5_1[3]'), data_s7.make_point('集群限位L5_1[4]'), data_s7.make_point('集群限位L5_1[5]')),
|
|
|
+ # Through_state_continues3(data_s7.make_point('集群限位L6_1[3]'), data_s7.make_point('集群限位L6_1[4]'), data_s7.make_point('集群限位L6_1[5]')),
|
|
|
+ # Through_state_separation2(data_s7.make_point('集群限位L7_1[4]'), data_s7.make_point('集群限位L7_1[5]')),
|
|
|
+ # Through_state_continues3(data_s7.make_point('集群限位L8_1[3]'), data_s7.make_point('集群限位L8_1[4]'), data_s7.make_point('集群限位L8_1[5]'))
|
|
|
+ # ]
|
|
|
+ # self.billet_out_sig = [
|
|
|
+ # data_s7.make_point('集群限位L1_2[1]'),
|
|
|
+ # data_s7.make_point('集群限位L2_2[1]'),
|
|
|
+ # data_s7.make_point('集群限位L3_2[1]'),
|
|
|
+ # data_s7.make_point('集群限位L4_2[1]'),
|
|
|
+ # data_s7.make_point('集群限位L5_2[1]'),
|
|
|
+ # data_s7.make_point('集群限位L6_2[1]'),
|
|
|
+ # data_s7.make_point('集群限位L7_2[1]'),
|
|
|
+ # data_s7.make_point('集群限位L8_2[1]')
|
|
|
+ # ]
|
|
|
self.billet_position = [
|
|
|
- Through_state_continues3(data_s7.make_point('集群限位L1_1[3]'), data_s7.make_point('集群限位L1_1[4]'), data_s7.make_point('集群限位L1_1[5]')),
|
|
|
- Through_state_continues3(data_s7.make_point('集群限位L2_1[3]'), data_s7.make_point('集群限位L2_1[4]'), data_s7.make_point('集群限位L2_1[5]')),
|
|
|
- Through_state_continues3(data_s7.make_point('集群限位L3_1[3]'), data_s7.make_point('集群限位L3_1[4]'), data_s7.make_point('集群限位L3_1[5]')),
|
|
|
- Through_state_continues3(data_s7.make_point('集群限位L4_1[3]'), data_s7.make_point('集群限位L4_1[4]'), data_s7.make_point('集群限位L4_1[5]')),
|
|
|
- Through_state_continues3(data_s7.make_point('集群限位L5_1[3]'), data_s7.make_point('集群限位L5_1[4]'), data_s7.make_point('集群限位L5_1[5]')),
|
|
|
- Through_state_continues3(data_s7.make_point('集群限位L6_1[3]'), data_s7.make_point('集群限位L6_1[4]'), data_s7.make_point('集群限位L6_1[5]')),
|
|
|
- Through_state_separation2(data_s7.make_point('集群限位L7_1[4]'), data_s7.make_point('集群限位L7_1[5]')),
|
|
|
- Through_state_continues3(data_s7.make_point('集群限位L8_1[3]'), data_s7.make_point('集群限位L8_1[4]'), data_s7.make_point('集群限位L8_1[5]'))
|
|
|
+ self.data_s7.make_point('L1切割信号[1]'),
|
|
|
+ self.data_s7.make_point('L2切割信号[1]'),
|
|
|
+ self.data_s7.make_point('L3切割信号[1]'),
|
|
|
+ self.data_s7.make_point('L4切割信号[1]'),
|
|
|
+ self.data_s7.make_point('L5切割信号[1]'),
|
|
|
+ self.data_s7.make_point('L6切割信号[1]'),
|
|
|
+ self.data_s7.make_point('L7切割信号[1]'),
|
|
|
+ self.data_s7.make_point('L8切割信号[1]')
|
|
|
]
|
|
|
self.billet_out_sig = [
|
|
|
- data_s7.make_point('集群限位L1_2[1]'),
|
|
|
- data_s7.make_point('集群限位L2_2[1]'),
|
|
|
- data_s7.make_point('集群限位L3_2[1]'),
|
|
|
- data_s7.make_point('集群限位L4_2[1]'),
|
|
|
- data_s7.make_point('集群限位L5_2[1]'),
|
|
|
- data_s7.make_point('集群限位L6_2[1]'),
|
|
|
- data_s7.make_point('集群限位L7_2[1]'),
|
|
|
- data_s7.make_point('集群限位L8_2[1]')
|
|
|
+ self.data_s7.make_point('L1切割信号[0]'),
|
|
|
+ self.data_s7.make_point('L2切割信号[0]'),
|
|
|
+ self.data_s7.make_point('L3切割信号[0]'),
|
|
|
+ self.data_s7.make_point('L4切割信号[0]'),
|
|
|
+ self.data_s7.make_point('L5切割信号[0]'),
|
|
|
+ self.data_s7.make_point('L6切割信号[0]'),
|
|
|
+ self.data_s7.make_point('L7切割信号[0]'),
|
|
|
+ self.data_s7.make_point('L8切割信号[0]')
|
|
|
]
|
|
|
else:
|
|
|
self.billet_position = [
|
|
@@ -389,11 +409,11 @@ class Trace_pusher:
|
|
|
if direc == "right":
|
|
|
return self.get_billet_action(self.bed_right)
|
|
|
|
|
|
- def get_billet_action(self, src):
|
|
|
+ def get_billet_action(self, src: list):
|
|
|
for i in range(len(src)-1, -1, -1):
|
|
|
if len(src[i]) >= 4:
|
|
|
- tmp = [j[0] for j in src[i]]
|
|
|
- src[i] = []
|
|
|
+ tmp = [j[0] for j in src.pop(i)]
|
|
|
+ src.append([])
|
|
|
return tmp
|
|
|
|
|
|
return []
|