MPI TA-5000A remote control (Ethernet)
The snippet can be accessed without any authentication.
Authored by
David Porret
Simple Python code using VXI-11 protocol
mpi_TA5000.py 1.04 KiB
# Control the MPI TA-5000A using Ethernet - VXI interface
# D.Porret - EP-ESE-ME
# 09.2024
# requirement python-vxi11
import vxi11
import time
# machine protocol accept only SCFM for flow value
def convert_sfcm(v_lpm):
if v_lpm<113 or v_lpm>708:
raise ValueError("Flow value must be between 113 Lto 708 L per minute")
return int(round (v_lpm/28.31), 0) # 4 to 25 SFCM
thermal = vxi11.Instrument("192.168.1.20")
thermal.write("FLSE 4") # flow rate (SFCM) - minimum
thermal.write("WNDDW 01.0") # temperature window (degC) +/- 1 degC
head = thermal.ask("HEAD?")
if int(head) == 1:
thermal.write("FLOW 1") # flow on
thermal.write("SETP 020.0") # temperature setpoint (degC)
thermal.write("SOAK 30") # soak time (s)
while True:
state = thermal.ask("TECR?") # get status
print(state)
if int(state) == 0x1: # At temperature
print("At Temperature")
break
time.sleep(1)
thermal.write("FLOW 0") # flow off
else:
print("The head is not down, exiting ...")
quit
Please register or sign in to comment