pylabrobot.kbiosystems.sealer.KBiosystemsSealer#
- class pylabrobot.kbiosystems.sealer.KBiosystemsSealer(port: str, timeout: float = 5.0, settle_time: float = 5.0, preheating_temperature: int = 100, offline_temperature: int = 20)#
Bases:
ABCShared base for KBiosystems serial heat sealers (Ultraseal ePRO / XT Pro).
Every model speaks the same ASCII-over-RS-232 core: a command is written with a CR terminator, the device echoes the command in front of its reply, and the echo is stripped before the reply is parsed (e.g.
A160->A160ok->ok;?->?3f->3f). A reply containingsyntaxmeans the command was rejected. This base implements the transport, the status/error polling state machine, and the temperature and time commands shared by all models. Subclasses supply the model-specific status flags, error table, temperature limits, human-readable name,setup,seal, and any extra commands.Serial settings: 9600 baud, 8 data bits, no parity, 1 stop bit, no handshake, CR (
\r) terminator.Attributes
Methods
__init__(port[, timeout, settle_time, ...])Read the current error code (
E).Read the sealing temperature setpoint in degrees C (
C).Read the sealing time setpoint in seconds (
D).Read the status byte (
?).Read the current heater temperature in degrees C (
F).seal(temperature, duration)Seal a plate at the given sealing temperature (C) and duration (s).
send_command(command[, read_reply])Send a command and return the reply with the echoed command stripped.
set_sealing_time(seconds)Set the sealing time in seconds (
B).set_temperature(temperature)Set the sealing temperature in degrees C (
A).setup()Open the connection and bring the sealer to a ready, pre-heated state.
stop()Return the heater to the offline temperature and close the port.
wait_for_idle([ignore_mask])Wait until the device is Ready, tolerating the bits set in
ignore_mask.wait_for_sealing_temperature([timeout])Block until the heater reaches the setpoint (NotAtSealTemperature clears).