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