st-ten-1/src/components/tecna_marposs_provaset_t3_registers.py
matteo porta ddda7357ad fixes
2022-07-05 18:23:25 +02:00

197 lines
12 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

registers = {
"Instrument type": [1, {"dt": "16bit_uint", }],
"Test counter: FAILED": [2, {"dt": "32bit_uint", }],
"Test counter: TOTAL TESTS": [4, {"dt": "32bit_uint", }],
"Life counter: FAILED": [6, {"dt": "32bit_uint", }],
"Life counter: TOTAL TESTS": [8, {"dt": "32bit_uint", }],
"Test circuit pressure, in real time": [11, {"dt": "32bit_int", "f": 21, }],
"Measured leak, in real time": [13, {"dt": "32bit_int", "f": 22, }],
"Regulated pressure, in real time": [15, {"dt": "16bit_int", "f": 23, }],
"Active alarm flags": [16, {"dt": "16bit_uint", }],
"Relative pressure variable format - high resolution": [21, {"dt": "16bit_uint", }],
"Format of the variables related to the measurement of the differential leak pressure": [22, {"dt": "16bit_uint", }],
"Relative pressure variable format - low resolution": [23, {"dt": "16bit_uint", }],
"Format of the variables related to the calculated leak flow": [24, {"dt": "16bit_uint", }],
"Format of volume variables": [25, {"dt": "16bit_uint", }],
"Format of time variables": [26, {"dt": "16bit_uint", }],
"Format of variables related to flow measurements": [27, {"dt": "16bit_uint", }],
"Instrument status: table of parameters in use": [31, {"dt": "16bit_uint", }],
"Instrument status: active phase": [32, {"dt": "16bit_uint", "decoding": {
0: "NO TEST EXECUTED: WAITING START NEW TEST",
10: "TEST IN PROGRESS: CHECK BARCODE CODE (if enabled)",
20: "TEST IN PROGRESS: WAITING READING BARCODE CODE (if enabled)",
30: "TEST IN PROGRESS: TEST INITIALIZATION",
40: "TEST IN PROGRESS: AUTOMATIC CLOSING 1 (CAGE)",
50: "TEST IN PROGRESS: AUTOMATIC CLOSING 2 (PLUG)",
60: "TEST IN PROGRESS: ACTIVE TEST PROGRAM INITIALIZATION",
70: "TEST IN PROGRESS: WAITING ACKNOWLEDGE WITH BI-START COMMAND (if used)",
80: "TEST IN PROGRESS: WAITING DELAY (PSDEL parameter)",
90: "TEST IN PROGRESS: WAITING CONSENT SIGNAL (PSIN parameter)",
100: "TEST IN PROGRESS: PHASE T0 - PRE-FILLING",
110: "TEST IN PROGRESS: PHASE T1 - FILLING",
120: "TEST IN PROGRESS: PHASE T2 - ASSESTMENT",
130: "TEST IN PROGRESS: PHASE T3- SIZE",
140: "TEST IN PROGRESS: WAITING CONFIRMATION EXAMINED BY OPERATOR (if used)",
150: "TEST IN PROGRESS: TEST RESULT PRESENT",
160: "TEST IN PROGRESS: MARKING (only if last table of a sequence or not in sequence mode)",
170: "TEST IN PROGRESS: PRESSURE DISCHARGE",
180: "TEST IN PROGRESS: END OF TESTING TABLE - IF IN SEQUENCE MODE THE CYCLE STARTS FROM",
# PHASE 60 WITH THE NEXT TABLE OF THE SEQUENCE
190: "TEST IN PROGRESS: AUTOMATIC OPENING 2 (BUFFER)",
200: "TEST IN PROGRESS: AUTOMATIC OPENING 1 (CAGE)",
210: "TEST TERMINATED: WAITING THE START OF A NEW TEST",
}, }],
"Running test: active phase backwards time": [33, {"dt": "16bit_uint", "f": 26, }],
"Running test: T1 phase end pressure": [34, {"dt": "32bit_int", "f": 21, }],
"Running test: T2 phase end pressure": [36, {"dt": "32bit_int", "f": 21, }],
"Running test: burst pressure": [38, {"dt": "32bit_int", "f": 21, }],
"Running test: measured leak": [40, {"dt": "32bit_int", "f": 22, }],
"Running test: calculated leak flow rate": [42, {"dt": "32bit_int", "f": 24, }],
"Running test: calculate RVP%": [44, {"dt": "32bit_int", }],
"Running test: result": [46, {"dt": "16bit_uint", "decoding": {
0: None,
1: "LEAK TEST PASSED",
2: "BURST TEST PASSED WITH BURST",
3: "BURST TEST PASSED WITHOUT BURST",
4: "not used",
5: "BLOCKAGE TEST PASSED",
100: "LEAK TEST FAILED - UPPER LIMIT",
101: "LEAK TEST – FAILED ANOMALY",
102: "LEAK TEST - MAXIMUM LEAK FAILED",
103: "BURST - BREAKAGE PRESSURE DEFLECTION",
104: "VOLUMETRIC CONTROL - RVP% FAILED",
105: "not used",
106: "not used",
107: "BLOCKAGE - MAX PRESSURE FAILED",
108: "BLOCKAGE - MIN PRESSURE FAILED",
109: "BURST - MINIMUM PRESSURE FAILED",
200: "LEAK TEST FAILED – PR% PRESSURE MINUM",
201: "LEAK TEST FAILED - PR% PRESSURE MAX",
202: "LEAK TEST FAILED – P0% PRESSURE MINUM",
203: "LEAK TEST FAILED - P0% PRESSURE MAX",
204: "ERROR - INTERNAL ALARMS",
205: "ERROR - RELATIVE PRESSURE OUT OF RANGE",
206: "ERROR - DIFFERENTIAL PRESSURE OUT OF RANGE",
207: "ERROR – PRE-FILLING VALVE NOT OPENED",
250: "TEST ABORTED",
}, }],
"Running test: type of test": [47, {"dt": "16bit_uint", "decoding": {
0: None,
1: "LEAK TEST",
2: "BLOCKAGE TEST",
3: "LEAK TEST WITH VOLUME CHECK",
4: "BURST TEST",
}, }],
"Testing in progress: progressive sequence index": [48, {"dt": "16bit_uint", }],
"Testing in progress: graphical sampling rate": [49, {"dt": "16bit_uint", }],
"Testing in progress: number of samples of the graph": [50, {"dt": "16bit_uint", }],
# ------------------------- COMMANDS -------------------------
"Start testing": [101, {"dt": "16bit_uint", }],
# Write a value of 0 to use the selected test table.
# Write a value from 1 to 100 to start testing with the desired table.
"Stop the test in progress": [102, {"dt": "16bit_uint", }],
"Activate digital output": [103, {"dt": "16bit_uint", }],
# Write a number from 1 to 16 to activate the corresponding digital output (the output must be set as "Free")
"Reset specific digital output": [104, {"dt": "16bit_uint", }],
# Write a number from 1 to 16 to disable the relative digital output (the output must be set as "Free")
"Activate digital output (mask)": [105, {"dt": "16bit_uint", }],
# Write 1 in the bit corresponding to the output to be activated
"Reset digital output (mask)": [106, {"dt": "16bit_uint", }],
# Write 1 in the bit corresponding to the output to be deactivated
"Reset test counter": [107, {"dt": "16bit_uint", }],
# ------------------------------------------------------------
"DISLPAY and SOUND: Language": [601, {"dt": "16bit_uint", }],
# 0=ITALIANO
# 1=ENGLISH
"INSTRUMENT SETTING: Test table from": [602, {"dt": "16bit_uint", }],
# 0=PARAMETER
# 1=PLC BASE 1
# 2=PLC BASE 2
"MEASURE UNITS: pressure measure units": [606, {"dt": "16bit_uint", }],
# 0=mH2O 1=mbar 2=kPa 3=mmHg 4=inH2O 5=psi 6=mmH2O (se fondoscala <=6 bar)
"MEASURE UNITS: Leak measure units": [607, {"dt": "16bit_uint", }],
# 0=mmH2O 1=mbar 2=Pa 3=mmHg 4=inH2O 5=psi
"MEASURE UNITS: leak flow rate measure units": [608, {"dt": "16bit_uint", }],
# 0=cm3/min 1=cm3/h
"MEASURE UNITS: Volume": [609, {"dt": "16bit_uint", }],
# 0=litri 1=cm3
"MEASURE UNITS: Flow rate measure units": [617, {"dt": "16bit_uint", }],
# 0=liters/min 1=liters/h 2=m3/h
"AUTOMATION: Cage - closing time": [618, {"dt": "16bit_uint", }],
# Format: x.x seconds
"AUTOMATION: Cage - opening time": [619, {"dt": "16bit_uint", }],
# Format: x.x seconds
"INSTRUMENT SETTINGS: MAX pressure": [620, {"dt": "16bit_uint", }],
"AUTOMATION: Buffer - closing time": [621, {"dt": "16bit_uint", }],
# Format: x.x seconds
"AUTOMATION: Buffer - opening time": [622, {"dt": "16bit_uint", }],
# Format: x.x seconds
"AUTOMATION: Marking - result": [623, {"dt": "16bit_uint", }],
# 0= Only passed
# 1= Only failed
# 2=All
"AUTOMATION: Marking – driving time": [624, {"dt": "16bit_uint", }],
# Format: x.x seconds
"Type of test": [701, {"dt": "16bit_uint", }],
# 1=LEAK TEST
# 2=BLOCKAGE TEST
# 3=LEAK TEST WITH VOLUME
# 4=BURST TEST
"Test flags": [702, {"dt": "16bit_uint", }],
# T0/Pr: Phase filling mode T0 0= TIME 1= PRESSURE
# T1/Pr: Phase filling mode T1 0= TIME 1=PRESSURE
# T3/Q: Phase mode T3 0= TIME 1=TERMINATE IMMEDIATELY IF FAILED
# TYPE PID: 0=FAST 1=MEDIUM 2=SLOW 4 = FIXED 5 = AUTOMATIC 6= PULSES (if enabled SWLP option)
# P0-: 0=Positive P0 pressure 1=P0 negative pressure (if enabled V or N option for vacuum tests)
# Pr-: 0=Positive pressure Pr 1=Pr negative pressure (if enabled V or N option for vacuum tests)
# Q+: 0=Q + positive parameter 1=parameter Q + negative
# Q-: 0=Q-positive parameter 1=Q-negative parameter
# AT: 0=Tare pressure disabled 1=Tare pressure enabled
# HR: 0=Resolution on loss 1 Pa 1=Resolution on loss 0.1 Pa (models with full scale <= 2 bar)
# CH: Selected test channel (2-channel T3P2C model only)
"T0 – Pre-filling time": [704, {"dt": "16bit_uint", "f": 26, }],
"P0 – Pre-filling pressure": [705, {"dt": "16bit_uint", "f": 23, }],
# In order to use a negative (vacuum) value, this parameter must however be written positively, but the P0- bit must
# also be selected in register 702
"T1 – Filling time": [706, {"dt": "16bit_uint", "f": 26, }],
"T2 – Settling time": [707, {"dt": "16bit_uint", "f": 26, }],
"T3 – Measure time": [708, {"dt": "16bit_uint", "f": 26, }],
"PREL – Nominal test pressure": [709, {"dt": "16bit_uint", "f": 23, }],
# To set a negative pressure (vacuum) this parameters must be written in absolute value and then set
# bit Pr- in register 702
"Pxx Minimum Pressure": [710, {"dt": "16bit_uint", }],
# PR%- Lower tolerance on pressure: LEAK: Format: x.x %
# P- Minimum pressure: BLOCKAGE: Format as indicated in register 23
# PR- Minimum pressure%: BURST: Format x.x%
"Q + Upper limit": [711, {"dt": "16bit_uint", "f": 22, }],
# Format as indicated in the register 22
"Q- Leak limit": [712, {"dt": "16bit_uint", "f": 22, }],
# Format as indicated in the register 22
"FST –discharge time": [713, {"dt": "16bit_uint", "f": 26, }],
# Format as indicated in the register 26
"VP – Equivalent volume": [714, {"dt": "16bit_uint", "f": 25, }],
# Format as indicated in the register 25
"P% Pressure tolerance": [717, {"dt": "16bit_uint", }],
# BLOCKAGE: Format x.x %
"PB – Minimum burst pressure": [743, {"dt": "16bit_uint", "f": 23, }],
# BURST: Format as indicated in the register 23
"BD – Delta burst": [744, {"dt": "16bit_uint", "f": 23, }],
# BURST: Format as indicated in the register 23
"FSL – discharge limit": [745, {"dt": "16bit_uint", "f": 23, }],
# Format as indicated in the register 23
"PR% + Superior tolerance on pressure": [747, {"dt": "16bit_uint", }],
# LEAK: Format: x.x %
# P + Pressure max BURST: Format as indicated in the register 23
"RVP%: volumetric ratio": [750, {"dt": "16bit_uint", }],
# VOLUME+LEAK: Format x.xx (from 0.00 to 649.99)
"RVP%: max tolerance": [751, {"dt": "16bit_uint", }],
# VOLUME+LEAK: Format: x.xx
# 1001-1060 Table of the last test performed X The order of the parameters is always the same, as indicated for register from 701 to 759.
# 10001-10060 Direct access to test program table number 1 X X The order of the parameters is always the same, as indicated for register from 701 to 759.
# 10101-10160 Direct access to test program table number 2 X X The order of the parameters is always the same, as indicated for register from 701 to 759.
# 10201-19960 Direct access to test program table number 2 thru 100 X X The order of the parameters is always the same, as indicated for register from 701 to 759.
# 501-510 U16 Model name X 20 ASCII characters divided into 10 registers
# 511-520 U16 Serial number X 10 ASCII characters divided into 5 registers
# 2001-8000 S32 Pressure values with sign X Register 49 indicates the sampling rate in tenths of a second Register 50 indicates the number of valid values In the leak tests, the values referred to the phases T0, T1 and T2 are under absolute pressure, while the values referred to phase T3 represent the detected loss.
}