wip
This commit is contained in:
parent
ebd80d3daf
commit
f373d10a11
@ -95,6 +95,10 @@ 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",
|
||||||
@ -105,6 +109,8 @@ 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])
|
||||||
|
|
||||||
@ -131,6 +137,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: Modify 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",
|
||||||
|
|||||||
@ -132,6 +132,9 @@ registers = {
|
|||||||
# 2=All
|
# 2=All
|
||||||
"AUTOMATION: Marking - driving time": [624, {"dt": "16bit_uint", }],
|
"AUTOMATION: Marking - driving time": [624, {"dt": "16bit_uint", }],
|
||||||
# Format: x.x seconds
|
# Format: x.x seconds
|
||||||
|
"PASSWORD: Administrator": [631, {"dt": "32bit_uint"}],
|
||||||
|
"PASSWORD: Modify program": [633, {"dt": "32bit_uint"}],
|
||||||
|
"PASSWORD: Select program": [635, {"dt": "32bit_uint"}],
|
||||||
"Selection number of test table on which you intend to work": [700, {"dt": "16bit_uint", }],
|
"Selection number of test table on which you intend to work": [700, {"dt": "16bit_uint", }],
|
||||||
"Type of test": [701, {"dt": "16bit_uint", "encoding": {
|
"Type of test": [701, {"dt": "16bit_uint", "encoding": {
|
||||||
"LEAK TEST": 1,
|
"LEAK TEST": 1,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user