Pfeiffer Vacuum Gauge Controller

v0.1.2
io.github.K-Dense-AI/labmcp-pfeiffer-tpg Checked 1 day ago Published 2 months ago

MCP server for Pfeiffer Vacuum TPG 361/362/366 and TPG 261/262 gauge controllers.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_connection_info Get Connection Info

Report which instrument is connected (identity, address, simulated or real), whether the server is read-only, and the active safety limits. Call this first.

get_command_log Get Command Log

Return the most recent raw commands sent to / replies received from the instrument (newest last). Useful for debugging and for recording what was done.

ParameterTypeDescription
limitinteger

reconnect Reconnect

Close and re-open the connection to the instrument (e.g. after it was power cycled or a cable was re-plugged).

read_pressure Read Pressure

Read one gauge channel: status, pressure in the display unit and in mbar.

ParameterTypeDescription
channelintegerMeasurement channel (gauge) number

read_all_pressures Read All Pressures

Read every channel of the controller at once (PRX), with status per channel.

get_gauge_types Get Gauge Types

List the gauge connected to each channel (TID), what kind it is, and whether it is an ionisation gauge that is currently switched on or off (SEN).

get_errors Get Errors

Read (and clear) the controller's ERROR word: controller error, no hardware, inadmissible parameter or syntax error. An empty list means no error.

log_pressure_series Log Pressure Series

Log pressures at a fixed interval (e.g. a pump-down curve, leak-up/rate-of-rise test or bake-out). Returns per-channel statistics in log-space plus a downsampled series; the full series can be written to a new CSV file (an existing file is never overwritten). Bounded by `max_log_duration_s` and 2 h per call.

ParameterTypeDescription
channelsChannels to include (default: all)
duration_snumberHow long to log (at most 2 h per call)
interval_snumberSeconds between readings
max_pointsintegerPoints returned per channel
save_pathOptional CSV file for every reading

set_unit Set Unit

Change the pressure unit used on the display and interface (UNI). Readings in mbar are always included regardless of this setting.

ParameterTypeDescription
unit *stringDisplay/interface unit (TPG 26x: mbar, Pa or Torr only)

set_gauge_power Set Gauge Power

Switch an ionisation gauge (IKR, PKR, PBR, IMR) on or off (SEN). Switching a hot or cold cathode gauge on at high pressure can burn out the filament or contaminate the gauge, so switching ON is refused unless a valid reading from this gauge or `reference_channel` is at or below `max_switch_on_pressure_mbar`. Switching off may trip setpoint relays used as interlocks.

ParameterTypeDescription
channel *integerChannel of the ionisation gauge
on *booleanTrue = switch the gauge on, False = off
reference_channelAnother gauge on the same vacuum (e.g. a Pirani) used to check the pressure

switch_gauge_off Switch Gauge Off

Switch an ionisation gauge off (e.g. before venting, or if the pressure is rising). Always allowed. Note that setpoint relays assigned to this channel may change state.

ParameterTypeDescription
channel *integerChannel of the ionisation gauge to switch off