ferrari label 203dpi
This commit is contained in:
parent
700849ef9b
commit
a60a2d945e
53
config/label_templates/F164F169_203.prn
Normal file
53
config/label_templates/F164F169_203.prn
Normal file
|
|
@ -0,0 +1,53 @@
|
||||||
|
CT~~CD,~CC^~CT~
|
||||||
|
^XA
|
||||||
|
~TA000
|
||||||
|
~JSN
|
||||||
|
^LT0
|
||||||
|
^MNW
|
||||||
|
^MTT
|
||||||
|
^PON
|
||||||
|
^PMN
|
||||||
|
^LH0,0
|
||||||
|
^JMA
|
||||||
|
^PR2,2
|
||||||
|
~SD15
|
||||||
|
^JUS
|
||||||
|
^LRN
|
||||||
|
^CI27
|
||||||
|
^PA0,1,1,0
|
||||||
|
^XZ
|
||||||
|
^XA
|
||||||
|
^MMT
|
||||||
|
^PW320
|
||||||
|
^LL1119
|
||||||
|
^LS0
|
||||||
|
^FT27,493^A0N,25,23^FH\^CI28^FD{DD}/{MO}/{YY}^FS^CI27
|
||||||
|
^FT175,493^A0N,25,23^FH\^CI28^FD{HH}:{MI}:{SS}^FS^CI27
|
||||||
|
^FT18,1013^A0N,31,30^FH\^CI28^FDESITO:^FS^CI27
|
||||||
|
^FT144,1013^A0N,31,30^FH\^CI28^FDCONFORME^FS^CI27
|
||||||
|
^FT29,87^A0N,25,25^FH\^CI28^FDNumero Disegno^FS^CI27
|
||||||
|
^FT27,462^A0N,25,25^FH\^CI28^FDData/Ora Prova^FS^CI27
|
||||||
|
^FT27,530^A0N,25,25^FH\^CI28^FDStazione: {STATION}^FS^CI27
|
||||||
|
^FT27,416^A0N,25,25^FH\^CI28^FDN. Pezzo:^FS^CI27
|
||||||
|
^FT135,417^A0N,25,25^FH\^CI28^FD{SN5}^FS^CI27
|
||||||
|
^FT27,562^A0N,25,25^FH\^CI28^FDOPERATORE: {OPERATOR}^FS^CI27
|
||||||
|
^FO52,649^GB215,0,8^FS
|
||||||
|
^FT19,705^A0N,25,25^FH\^CI28^FDP. prova:^FS^CI27
|
||||||
|
^FT19,737^A0N,25,25^FH\^CI28^FDP. rilevata:^FS^CI27
|
||||||
|
^FT145,737^A0N,25,25^FH\^CI28^FD{RESPSET}mbar^FS^CI27
|
||||||
|
^FT19,764^A0N,25,25^FH\^CI28^FDCaduta ammessa:^FS^CI27
|
||||||
|
^FT206,764^A0N,25,25^FH\^CI28^FD{PMIN} mbar^FS^CI27
|
||||||
|
^FT19,797^A0N,25,25^FH\^CI28^FDCaduta rilevata:^FS^CI27
|
||||||
|
^FT179,797^A0N,25,25^FH\^CI28^FD{RESLEAK} mbar^FS^CI27
|
||||||
|
^FT19,908^A0N,25,25^FH\^CI28^FDT.Prova^FS^CI27
|
||||||
|
^FT207,912^A0N,25,25^FH\^CI28^FD{TTEST} s^FS^CI27
|
||||||
|
^FT18,864^A0N,25,25^FH\^CI28^FDT.Riempim.^FS^CI27
|
||||||
|
^FT207,864^A0N,25,25^FH\^CI28^FD{TFILL} s^FS^CI27
|
||||||
|
^FT19,886^A0N,25,25^FH\^CI28^FDT.Stabilizzazione^FS^CI27
|
||||||
|
^FT207,888^A0N,25,25^FH\^CI28^FD{TSET} s^FS^CI27
|
||||||
|
^FT145,705^A0N,25,25^FH\^CI28^FD{PTEST} mbar^FS^CI27
|
||||||
|
^FT31,236^BXN,6,200,0,0,1,_,1
|
||||||
|
^FH\^FD{PART}{MO}{YY}{SN5}^FS
|
||||||
|
^FT29,287^A0N,25,25^FH\^CI28^FD{PART}{MO}{YY}{SN5}^FS^CI27
|
||||||
|
^PQ1,0,1,Y
|
||||||
|
^XZ
|
||||||
|
|
@ -39,7 +39,7 @@ description_field: descrizione
|
||||||
|
|
||||||
[label_printer]
|
[label_printer]
|
||||||
platform: windows
|
platform: windows
|
||||||
printer: zd420
|
printer: zd421
|
||||||
|
|
||||||
[recipes_defaults]
|
[recipes_defaults]
|
||||||
tester_discharge_enable: yes
|
tester_discharge_enable: yes
|
||||||
|
|
|
||||||
50
src/test/label_printer_ferrari.py
Normal file
50
src/test/label_printer_ferrari.py
Normal file
|
|
@ -0,0 +1,50 @@
|
||||||
|
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="test-windows")
|
||||||
|
time =datetime.now()
|
||||||
|
context = {
|
||||||
|
# RECIPE DATA
|
||||||
|
"RECIPE": "000948653",
|
||||||
|
"PART": "000948653",
|
||||||
|
"TFILL": "5",
|
||||||
|
"TSET": "10",
|
||||||
|
"TTEST": "10",
|
||||||
|
"PSETMINP_A": "4750",
|
||||||
|
"PSETMAXP_A": "5250",
|
||||||
|
"PTEST": "1500",
|
||||||
|
"PMIN": "30",
|
||||||
|
"RESPSET": "1512",
|
||||||
|
"RESLEAK": "12.34",
|
||||||
|
"SN4": "1234",
|
||||||
|
"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)
|
||||||
|
|
||||||
|
# TEST STANDARD PRINTER
|
||||||
|
printer = Os_Label_Printer(config=config, name="label_printer")
|
||||||
|
printer.config_changed()
|
||||||
|
printer.print_label("F164F169_203.prn", context=context)
|
||||||
Loading…
Reference in New Issue
Block a user