Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
e9a11be9d3
@ -5,65 +5,82 @@ description = ST-TEN-7 SECONDO BANCO IVECO DAILY ELETTRICO
|
||||
archive_synchronizer: present
|
||||
uvc_camera: absent
|
||||
label_printer: present
|
||||
neo_pixels: present
|
||||
extra_label_printer: present
|
||||
remote_api: absent
|
||||
tecna_t3: present
|
||||
vision_saver: absent
|
||||
vision: absent
|
||||
screwdriver: absent
|
||||
digital_io: present
|
||||
second_leak_test: present
|
||||
barcode_recipe_selection: present
|
||||
show_instructions: yes
|
||||
|
||||
[tecna_t3]
|
||||
port: COM4
|
||||
model: t3l
|
||||
|
||||
[neo_pixels]
|
||||
port: COM5
|
||||
[recipe]
|
||||
recipe_name_field: codice_ricetta
|
||||
part_number_field: codice_ricetta
|
||||
label_template_field: modello_etichetta
|
||||
description_field: descrizione
|
||||
|
||||
[label_printer]
|
||||
platform: windows
|
||||
printer: zd421
|
||||
|
||||
[digital_io]
|
||||
id: USB-5860,BID#0
|
||||
[extra_label_printer]
|
||||
platform: windows
|
||||
printer: xlp504
|
||||
|
||||
[recipe]
|
||||
recipe_name_field: codice_ricetta
|
||||
part_number_field: codice_prodotto
|
||||
label_template_field: modello_etichetta
|
||||
description_field: descrizione
|
||||
|
||||
[digital_io]
|
||||
id: USB-5862,BID#0
|
||||
|
||||
[recipes_defaults]
|
||||
|
||||
|
||||
codice_ricetta: specificare ricetta
|
||||
cliente: IVECO
|
||||
part_number: specificare part number
|
||||
config_elettrovalvole: 0
|
||||
warning_img:
|
||||
|
||||
dimensione_lotto_abilitata:
|
||||
|
||||
istruzione_abilitata: x
|
||||
numero nastri (n):0
|
||||
numero sensori anello (sa):0
|
||||
numero sensori presenza (sp):0
|
||||
|
||||
prova_tenuta_abilitata: x
|
||||
tempo_pre_riempimento: 0
|
||||
pressione_pre_riempimento: 1000
|
||||
tempo_riempimento: 15
|
||||
tempo_assestamento: 15
|
||||
tempo_di_test: 10
|
||||
pressione_pre_riempimento: 5000
|
||||
tempo_riempimento: 5
|
||||
tempo_assestamento: 10
|
||||
percentuale_minima_pressione_assestamento: 5
|
||||
percentuale_massima_pressione_assestamento: 5
|
||||
tempo_di_test: 10
|
||||
pressione_di_test_delta_minimo: 30
|
||||
pressione_di_test: 7000
|
||||
pressione_di_test: 5000
|
||||
pressione_di_test_delta_massimo: 30
|
||||
tempo_svuotamento: 1
|
||||
pressione_svuotamento: 100
|
||||
config_elettrovalvole: 1
|
||||
|
||||
prova_tenuta_abilitata_2:
|
||||
tempo_pre_riempimento_2: 0
|
||||
pressione_pre_riempimento_2: 1000
|
||||
tempo_riempimento_2: 20
|
||||
tempo_assestamento_2: 20
|
||||
tempo_di_test_2: 10
|
||||
tempo_riempimento_2: 5
|
||||
tempo_assestamento_2: 5
|
||||
percentuale_minima_pressione_assestamento_2: 5
|
||||
percentuale_massima_pressione_assestamento_2: 5
|
||||
pressione_di_test_delta_minimo_2: 30
|
||||
pressione_di_test_2: 15000
|
||||
pressione_di_test_delta_massimo_2: 30
|
||||
tempo_di_test_2: 5
|
||||
pressione_di_test_delta_minimo_2: 200
|
||||
pressione_di_test_2: 1000
|
||||
pressione_di_test_delta_massimo_2: 200
|
||||
tempo_svuotamento_2: 1
|
||||
pressione_svuotamento_2: 100
|
||||
config_elettrovalvole_2: 2
|
||||
modello_etichetta: EtichettaR5_Montaggio_1prova.prn
|
||||
|
||||
stampa_etichetta_abilitata: x
|
||||
modello_etichetta: ETA30x16_203dpi.prn
|
||||
descrizione: inserire descrizione ricetta
|
||||
|
||||
[autotest_leak]
|
||||
enabled: true
|
||||
@ -74,8 +91,8 @@ settling_time: 10
|
||||
settling_pressure_min_percent: 5
|
||||
settling_pressure_max_percent: 5
|
||||
test_time: 10
|
||||
test_pressure_qneg: 35
|
||||
test_pressure: 15000
|
||||
test_pressure_qneg: 10
|
||||
test_pressure: 5000
|
||||
test_pressure_qpos: 5
|
||||
flush_time: 1
|
||||
flush_pressure: 100
|
||||
|
||||
55
src/test/label_printer_edaily.py
Normal file
55
src/test/label_printer_edaily.py
Normal file
@ -0,0 +1,55 @@
|
||||
import sys
|
||||
from datetime import datetime
|
||||
from PyQt5.QtWidgets import QApplication
|
||||
|
||||
from components import Os_Label_Printer
|
||||
from lib.helpers import ConfigReader
|
||||
|
||||
config = ConfigReader(system_id="st-ten-7")
|
||||
time =datetime.now()
|
||||
context = {
|
||||
# RECIPE DATA
|
||||
"RECIPE": "5803037204",
|
||||
"PART": "5803037204",
|
||||
"TFILL": "5",
|
||||
"TSET": "10",
|
||||
"TTEST": "10",
|
||||
"PSETMINP_A": "4750",
|
||||
"PSETMAXP_A": "5250",
|
||||
"PTEST": "5000",
|
||||
"PMIN": "30",
|
||||
"RESPSET": "5123",
|
||||
"RESLEAK": "12.34",
|
||||
"SN5": "12345",
|
||||
# TIME DEFINITION
|
||||
"DATETIME": time.strftime("%d/%m/%Y %H:%M:%S"),
|
||||
"DATE": time.strftime("%d/%m/%Y"),
|
||||
"TIME": time.strftime("%H:%M:%S"),
|
||||
"YYYY": time.strftime("%Y"),
|
||||
"YY": time.strftime("%y"),
|
||||
"MO": time.strftime("%m"),
|
||||
"DD": time.strftime("%d"),
|
||||
"HH": time.strftime("%H"),
|
||||
"MI": time.strftime("%M"),
|
||||
"SS": time.strftime("%S"),
|
||||
"JJJ": time.strftime("%j"),
|
||||
# EXTRA DATA
|
||||
"SHIFT": "1",
|
||||
"STATION": "ST-TEN-1",
|
||||
"OPERATOR": "MARIO",
|
||||
"BADGE_NUM": "999",
|
||||
|
||||
}
|
||||
|
||||
app = QApplication(sys.argv)
|
||||
|
||||
if "--extra" in sys.argv:
|
||||
# TEST EXTRA PRINTER
|
||||
printer = Os_Label_Printer(config=config, name="extra_label_printer")
|
||||
printer.config_changed()
|
||||
printer.print_label("MI1.prn")
|
||||
else:
|
||||
# TEST STANDARD PRINTER
|
||||
printer = Os_Label_Printer(config=config, name="label_printer")
|
||||
printer.config_changed()
|
||||
printer.print_label("ETA30x16_203dpi.prn", context=context)
|
||||
Loading…
Reference in New Issue
Block a user