diff --git a/src/components/tecna_marposs_provaset_t3.py b/src/components/tecna_marposs_provaset_t3.py index dd73493..4eefaa0 100644 --- a/src/components/tecna_marposs_provaset_t3.py +++ b/src/components/tecna_marposs_provaset_t3.py @@ -95,6 +95,10 @@ 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", @@ -105,6 +109,8 @@ 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]) @@ -131,6 +137,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, **{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", diff --git a/src/components/tecna_marposs_provaset_t3_registers.py b/src/components/tecna_marposs_provaset_t3_registers.py index 8d8edca..80a91c9 100644 --- a/src/components/tecna_marposs_provaset_t3_registers.py +++ b/src/components/tecna_marposs_provaset_t3_registers.py @@ -132,6 +132,9 @@ registers = { # 2=All "AUTOMATION: Marking - driving time": [624, {"dt": "16bit_uint", }], # 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", }], "Type of test": [701, {"dt": "16bit_uint", "encoding": { "LEAK TEST": 1,