%load_ext autoreload
%autoreload 2

Azenta Automated Roll Heat Sealer (formerly a4S)#

https://www.azenta.com/products/automated-roll-heat-sealer-formerly-a4s

from pylabrobot.sealing import a4s

s = a4s(port="/dev/tty.usbserial-0001")
type(s)
pylabrobot.sealing.sealer.Sealer
await s.setup()

seal will open and close the lid automatically

await s.seal(
  temperature=180,
  duration=5,
)
A4SBackend.Status(current_temperature=179.2, system_status=<SystemStatus.finish: 4>, heater_block_status=<HeaterBlockStatus.ready: 1>, error_code=0, warning_code=0, sensor_status=A4SBackend.Status.SensorStatus(shuttle_middle_sensor=False, shuttle_open_sensor=True, shuttle_close_sensor=False, clean_door_sensor=True, seal_roll_sensor=False, heater_motor_up_sensor=True, heater_motor_down_sensor=False), remaining_time=0)

Manually open and closing#

await s.close()
await s.open()

Manually working with temperature#

You can pre-set the temperature of the sealer by using the set_temperature method. The temperature is set in degrees Celsius.

await s.set_temperature(170)
await s.get_temperature()
170.1

Machine status#

status = await s.backend.get_status()
print("current_temperature:        ", status.current_temperature)
print("system_status:              ", status.system_status)
print("heater_block_status:        ", status.heater_block_status)
print("error_code:                 ", status.error_code)
print("warning_code:               ", status.warning_code)
print("sensor_status:              ")
print("  shuttle_middle_sensor:    ", status.sensor_status.shuttle_middle_sensor)
print("  shuttle_open_sensor:      ", status.sensor_status.shuttle_open_sensor)
print("  shuttle_close_sensor:     ", status.sensor_status.shuttle_close_sensor)
print("  clean_door_sensor:        ", status.sensor_status.clean_door_sensor)
print("  seal_roll_sensor:         ", status.sensor_status.seal_roll_sensor)
print("  heater_motor_up_sensor:   ", status.sensor_status.heater_motor_up_sensor)
print("  heater_motor_down_sensor: ", status.sensor_status.heater_motor_down_sensor)
print("remaining_time:             ", status.remaining_time)
current_temperature:         170.0
system_status:               SystemStatus.idle
heater_block_status:         HeaterBlockStatus.ready
error_code:                  0
warning_code:                0
sensor_status:              
  shuttle_middle_sensor:     False
  shuttle_open_sensor:       True
  shuttle_close_sensor:      False
  clean_door_sensor:         True
  seal_roll_sensor:          False
  heater_motor_up_sensor:    True
  heater_motor_down_sensor:  False
remaining_time:              0