IKA Hotplate & Overhead Stirrer

v0.1.1
io.github.K-Dense-AI/labmcp-ika Checked 1 day ago Published 2 months ago

MCP server for IKA hotplate stirrers and overhead stirrers (NAMUR commands).

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).

get_status Get Status

Read temperatures, stirring speed and setpoints. On hotplates: plate and external-probe temperature, temperature setpoint and the device's safety-circuit temperature. On overhead stirrers: PT1000 probe temperature, torque and the speed/torque limits set on the device.

set_temperature Set Temperature

Set the hotplate temperature setpoint (OUT_SP_1). With an external probe connected this is the target temperature of the medium. Does not start heating; if heating is already on, the plate starts moving to the new setpoint immediately. Refused above `max_temperature_c` or above the device's own safety-circuit temperature.

ParameterTypeDescription
temperature_c *numberTemperature setpoint in °C

start_heating Start Heating

Switch the hotplate heater on (START_1). It heats towards the current setpoint, which is checked against `max_temperature_c` first. Make sure the vessel and its contents can take the setpoint temperature and that nothing flammable is near the plate.

stop_heating Stop Heating

Switch the hotplate heater off (STOP_1). Stirring continues. The plate stays hot for a long time after switching off.

set_speed Set Speed

Set the stirring speed setpoint (OUT_SP_4). Does not start the motor; if it is already running, the speed changes immediately. Refused above `max_speed_rpm` (and, on overhead stirrers, above the speed limit set on the device).

ParameterTypeDescription
speed_rpm *numberStirring speed setpoint in rpm

start_stirring Start Stirring

Start the stirring motor (START_4) at the current speed setpoint, which is checked against `max_speed_rpm` first. Make sure the stir bar or impeller is in place and the vessel is secured (a decoupled stir bar or an unclamped vessel can splash).

stop_stirring Stop Stirring

Stop the stirring motor (STOP_4). Heating (if on) continues.

stop_all Stop All

Emergency stop: switch the heater off (hotplates) and stop the motor. Every stop command is sent even if one of them fails. Also ends a running `wait_for_temperature`.

wait_for_temperature Wait For Temperature

Poll a temperature until it is within `tolerance_c` of the target for `stable_for_s` seconds, or until `timeout_s` passes. Does not change anything on the device (start heating first). Returns whether the target was reached plus a short temperature trace. A stop command ends the wait early.

ParameterTypeDescription
poll_interval_snumberSeconds between readings
sensorstring'external' = probe in the medium (IN_PV_1, or IN_PV_3 on overhead stirrers)
stable_for_snumberMust stay within tolerance this long
target_cTemperature to wait for; default: the current setpoint
timeout_snumberGive up after this many seconds
tolerance_cnumberAccepted deviation in °C

enable_watchdog Enable Watchdog

Arm the hotplate's communication watchdog (OUT_WD1@m / OUT_WD2@m). The server then re-sends the watchdog command in the background; if the computer, this server or the cable fails, the hotplate switches heating and stirring off (mode 1) or falls back to the given safety values (mode 2) after `timeout_s`. Note: stopping or reconnecting the server also stops the refresh, so the watchdog trips unless you enable it again. Mode 1 cannot be cancelled over the interface.

ParameterTypeDescription
modeinteger1 = heater and motor off on timeout; 2 = fall back to the safety values below
safety_speed_rpmnumberMode 2 only: speed to fall back to (OUT_SP_42@)
safety_temperature_cnumberMode 2 only: setpoint to fall back to (OUT_SP_12@)
timeout_sintegerWatchdog time (IKA allows 20-1500 s)

disable_watchdog Disable Watchdog

Cancel watchdog mode 2 (OUT_WD2@0) and stop the background refresh. Watchdog mode 1 has no cancel command; this tool reports an error for it.