pid correction via config file tbt
This commit is contained in:
parent
ca2fffabfc
commit
936647379a
|
|
@ -125,6 +125,7 @@ pid_mode: 0 # 0=FAST 1=MEDIUM 2=SLOW 4 = FIXED 5 = AUTOMATIC 6 = FLOW 7 = LEAK W
|
|||
pid_level: 1
|
||||
pid_speed: 1
|
||||
tester_discharge_enable: no
|
||||
pid_pressure_correction: 110
|
||||
|
||||
tempo_pre_riempimento: 0
|
||||
pressione_pre_riempimento: 1000
|
||||
|
|
|
|||
|
|
@ -82,6 +82,7 @@ tempo_svuotamento_2: 1
|
|||
pressione_svuotamento_2: 100
|
||||
canale_di_prova_2: 2
|
||||
modello_etichetta: EtichettaR5_Montaggio_1prova.prn
|
||||
pid_pressure_correction: 110
|
||||
|
||||
[autotest_leak]
|
||||
enabled: true
|
||||
|
|
|
|||
|
|
@ -299,8 +299,8 @@ class TecnaMarpossProvasetT3(ModbusComponent):
|
|||
"FSL - Discharge limit": step.spec["flush_pressure"],
|
||||
"PSQ - Next sequence program PSOUT mode": 0,
|
||||
"RAMPS: T1 configuration": pid_ramps,
|
||||
"PID: pressure correction": 100,
|
||||
"Various flags": 0b0000000000010000 if self.config["recipes_defaults"]["tester_discharge_enable"]=="yes" else 0b0000000000000000
|
||||
"PID: pressure correction": int(self.config["recipes_defaults"]["pid_pressure_correction"]),
|
||||
"Various flags": 0b0000000000010000 if self.config["recipes_defaults"]["tester_discharge_enable"] == "yes" else 0b0000000000000000
|
||||
|
||||
}
|
||||
if self.model == "t3p":
|
||||
|
|
|
|||
|
|
@ -56,15 +56,14 @@ class USB_586x(Component):
|
|||
self.info = self.DeviceInformation()
|
||||
self.info.Description = self.id
|
||||
|
||||
# self.info.DeviceNumber = -1
|
||||
self.info.DeviceMode = 1
|
||||
self.info.ModuleIndex = 0
|
||||
|
||||
self.open_device()
|
||||
|
||||
# SET ALL RELAYS OFF
|
||||
for bit in range(0, self.out_size*8):
|
||||
self.set_bit(int(bit/8), bit%8, False)
|
||||
for bit in range(0, self.out_size * 8):
|
||||
self.set_bit(int(bit/8), bit % 8, False)
|
||||
|
||||
self.state_delay = 1
|
||||
self.last_get = None
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user