print options

This commit is contained in:
matteo porta 2022-10-19 15:51:28 +02:00
parent 3325e5be52
commit 4a6e05ef00
3 changed files with 13 additions and 0 deletions

View File

@ -295,6 +295,7 @@ class TecnaMarpossProvasetT3(ModbusComponent):
"Test program for read/write operation": table, "Test program for read/write operation": table,
**{719 - 1 + i: (recipe_name[i * 2 + 1] << 8) + recipe_name[i * 2] for i in range(8)}, # program name **{719 - 1 + i: (recipe_name[i * 2 + 1] << 8) + recipe_name[i * 2] for i in range(8)}, # program name
**{727 - 1 + i: (recipe_barcode[i * 2 + 1] << 8) + recipe_barcode[i * 2] for i in range(12)}, # program associated bar-code **{727 - 1 + i: (recipe_barcode[i * 2 + 1] << 8) + recipe_barcode[i * 2] for i in range(12)}, # program associated bar-code
"Print options": 0b0110000000000001,
"Test type": "Leak Test", "Test type": "Leak Test",
"Test flags": 0b0110000001011100, "Test flags": 0b0110000001011100,
"T0 - Pre-filling time": step.spec["pre_filling_time"], "T0 - Pre-filling time": step.spec["pre_filling_time"],

View File

@ -305,6 +305,12 @@ registers = {
"P% Pressure tol. (blockage test)": [717 - 1, {"dt": "16bit_uint", "g": 10, }], "P% Pressure tol. (blockage test)": [717 - 1, {"dt": "16bit_uint", "g": 10, }],
"Nominal peak pressure": [718 - 1, {"dt": "16bit_uint", "f": 1505, }], "Nominal peak pressure": [718 - 1, {"dt": "16bit_uint", "f": 1505, }],
# Format: x.x % # Format: x.x %
"Print options": [739 - 1, {"dt": "16bit_uint", }],
# | 15 14 13 12 | 11 10 9 8 | 7 6 5 4 3 2 1 0 |
# | STN | STS | STM |
# STM: printer template
# STS: print failed test 0=NO 1=YES
# STN: print copies
"AW: Aperture weight time (AT)": [740 - 1, {"dt": "16bit_uint", }], "AW: Aperture weight time (AT)": [740 - 1, {"dt": "16bit_uint", }],
"AN: Aperture number": [741 - 1, {"dt": "16bit_uint", }], "AN: Aperture number": [741 - 1, {"dt": "16bit_uint", }],
# Format x # Format x

View File

@ -260,6 +260,12 @@ registers = {
# Format: x.x in 1/10 seconds # Format: x.x in 1/10 seconds
"P% Pressure tol. (blockage test)": [717 - 1, {"dt": "16bit_uint", "g": 10, }], "P% Pressure tol. (blockage test)": [717 - 1, {"dt": "16bit_uint", "g": 10, }],
# Format: x.x % # Format: x.x %
"Print options": [739 - 1, {"dt": "16bit_uint", }],
# | 15 14 13 12 | 11 10 9 | 8 | 7 6 5 4 3 2 1 0 |
# | STN | | STS | STM |
# STM: printer template
# STS: print failed test 0=NO 1=YES
# STN: print copies
"AW: Aperture weight time (AT)": [740 - 1, {"dt": "16bit_uint", }], "AW: Aperture weight time (AT)": [740 - 1, {"dt": "16bit_uint", }],
"AN: Aperture number": [741 - 1, {"dt": "16bit_uint", }], "AN: Aperture number": [741 - 1, {"dt": "16bit_uint", }],
# Format x # Format x