stten8 beta
This commit is contained in:
parent
34a5c434a5
commit
98e0f3a112
@ -14,7 +14,7 @@ screwdriver: absent
|
|||||||
digital_io: present
|
digital_io: present
|
||||||
barcode_recipe_selection: present
|
barcode_recipe_selection: present
|
||||||
fixture_id: present
|
fixture_id: present
|
||||||
#discard_box: present
|
discard_box: present
|
||||||
enforce_piece_removal: yes
|
enforce_piece_removal: yes
|
||||||
|
|
||||||
[tecna_t3]
|
[tecna_t3]
|
||||||
@ -27,7 +27,7 @@ printer: zd421
|
|||||||
|
|
||||||
[digital_io]
|
[digital_io]
|
||||||
id: USB-5862,BID#0
|
id: USB-5862,BID#0
|
||||||
discard_idx:15 # BIT NUMBER OF THE I/0 MODULE USED FOR DISCARD SENSING
|
discard_idx:12 # BIT NUMBER OF THE I/0 MODULE USED FOR DISCARD SENSING
|
||||||
|
|
||||||
[fixture_rfid]
|
[fixture_rfid]
|
||||||
port: COM5
|
port: COM5
|
||||||
|
|||||||
@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>627</width>
|
<width>663</width>
|
||||||
<height>332</height>
|
<height>496</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -26,31 +26,6 @@
|
|||||||
<property name="bottomMargin">
|
<property name="bottomMargin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item row="0" column="0" alignment="Qt::AlignHCenter">
|
|
||||||
<widget class="QLabel" name="img_l">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>100</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
<property name="scaledContents">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignCenter</set>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
<widget class="QLabel" name="text_l">
|
<widget class="QLabel" name="text_l">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
@ -103,6 +78,31 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="img_l">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>100</width>
|
||||||
|
<height>100</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
<property name="scaledContents">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignCenter</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
|
|||||||
@ -22,7 +22,7 @@ class Test_Fail(Test_Test):
|
|||||||
if show is False:
|
if show is False:
|
||||||
return show
|
return show
|
||||||
if "discard_box" in self.parent.config["hardware_config"].keys():
|
if "discard_box" in self.parent.config["hardware_config"].keys():
|
||||||
if self.recipe["count"]["require_discard_piece"]:
|
if self.recipe.part_number in ("5803112815","5803112816"):
|
||||||
if self.parent_assembly_widget is not None :
|
if self.parent_assembly_widget is not None :
|
||||||
self.continue_b.setVisible(False)
|
self.continue_b.setVisible(False)
|
||||||
self.discard_timer.start(100)
|
self.discard_timer.start(100)
|
||||||
@ -51,6 +51,6 @@ class Test_Fail(Test_Test):
|
|||||||
sensor_index = int(self.parent.config["digital_io"]["discard_idx"])
|
sensor_index = int(self.parent.config["digital_io"]["discard_idx"])
|
||||||
byte_idx = int(sensor_index / 8)
|
byte_idx = int(sensor_index / 8)
|
||||||
bit_idx = sensor_index % 8
|
bit_idx = sensor_index % 8
|
||||||
if data[0]["digital_io"][byte_idx][bit_idx]:
|
if not data[0]["digital_io"][byte_idx][bit_idx]:
|
||||||
self.ok.emit(None)
|
self.ok.emit(None)
|
||||||
|
|
||||||
|
|||||||
@ -121,7 +121,6 @@ class Test_Leak(Test_Test):
|
|||||||
super().visualize(None, img=self.status_imgs_full["calibrated-leak"])
|
super().visualize(None, img=self.status_imgs_full["calibrated-leak"])
|
||||||
else:
|
else:
|
||||||
self.display_text(text="COLLEGARE GLI ATTACCHI PNEUMATICI E PREMERE START PER INIZIARE LA PROVA TENUTA")
|
self.display_text(text="COLLEGARE GLI ATTACCHI PNEUMATICI E PREMERE START PER INIZIARE LA PROVA TENUTA")
|
||||||
self.display_image(img="wait")
|
|
||||||
|
|
||||||
if self.simulate:
|
if self.simulate:
|
||||||
QApplication.processEvents()
|
QApplication.processEvents()
|
||||||
|
|||||||
@ -2075,6 +2075,12 @@ border: 1px solid black;
|
|||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>400</width>
|
||||||
|
<height>400</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>-</string>
|
<string>-</string>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user