This commit is contained in:
matteo porta 2022-07-12 15:42:10 +02:00
parent f373d10a11
commit 72387cfefe

View File

@ -95,10 +95,6 @@ class TecnaMarpossProvasetT3(ModbusComponent):
# print("TECNA", str(int(QThread.currentThreadId())), flush=True)
# READ INFO
info = {r: self.read(r) for r in [
"PASSWORD: Administrator",
"PASSWORD: Modify program",
"PASSWORD: Select program",
"Instrument status: active phase",
"Test circuit pressure, in real time",
"Measured leak, in real time",
@ -109,8 +105,6 @@ class TecnaMarpossProvasetT3(ModbusComponent):
]}
if info["Running test: type of test"] is None:
info.update(self.get_test_results())
print(info)
quit()
self.log.debug(str(info))
super()._get([info])
@ -137,9 +131,9 @@ class TecnaMarpossProvasetT3(ModbusComponent):
recipe_name = recipe.spec["part_number"][:16].encode("ascii")
recipe_name += b"\x00" * (16 - len(recipe_name))
recipe = {
# "PASSWORD: Administrator": 0,
# "PASSWORD: Modify program": 0,
# "PASSWORD: Select program": 0,
"PASSWORD: Administrator": 1909,
"PASSWORD: Modify program": 0,
"PASSWORD: Select program": 0,
**{719 + i: (recipe_name[i * 2 + 1] << 8) + recipe_name[i * 2] for i in range(8)},
"Selection number of test table on which you intend to work": table,
"Type of test": "LEAK TEST",