stten8 beta
This commit is contained in:
parent
34a5c434a5
commit
98e0f3a112
@ -14,7 +14,7 @@ screwdriver: absent
|
||||
digital_io: present
|
||||
barcode_recipe_selection: present
|
||||
fixture_id: present
|
||||
#discard_box: present
|
||||
discard_box: present
|
||||
enforce_piece_removal: yes
|
||||
|
||||
[tecna_t3]
|
||||
@ -27,7 +27,7 @@ printer: zd421
|
||||
|
||||
[digital_io]
|
||||
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]
|
||||
port: COM5
|
||||
|
||||
@ -6,8 +6,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>627</width>
|
||||
<height>332</height>
|
||||
<width>663</width>
|
||||
<height>496</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@ -26,31 +26,6 @@
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</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">
|
||||
<widget class="QLabel" name="text_l">
|
||||
<property name="sizePolicy">
|
||||
@ -103,6 +78,31 @@
|
||||
</property>
|
||||
</widget>
|
||||
</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>
|
||||
</widget>
|
||||
<resources/>
|
||||
|
||||
@ -22,7 +22,7 @@ class Test_Fail(Test_Test):
|
||||
if show is False:
|
||||
return show
|
||||
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 :
|
||||
self.continue_b.setVisible(False)
|
||||
self.discard_timer.start(100)
|
||||
@ -51,6 +51,6 @@ class Test_Fail(Test_Test):
|
||||
sensor_index = int(self.parent.config["digital_io"]["discard_idx"])
|
||||
byte_idx = int(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)
|
||||
|
||||
|
||||
@ -121,7 +121,6 @@ class Test_Leak(Test_Test):
|
||||
super().visualize(None, img=self.status_imgs_full["calibrated-leak"])
|
||||
else:
|
||||
self.display_text(text="COLLEGARE GLI ATTACCHI PNEUMATICI E PREMERE START PER INIZIARE LA PROVA TENUTA")
|
||||
self.display_image(img="wait")
|
||||
|
||||
if self.simulate:
|
||||
QApplication.processEvents()
|
||||
|
||||
@ -2075,6 +2075,12 @@ border: 1px solid black;
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>400</width>
|
||||
<height>400</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>-</string>
|
||||
</property>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user