pylabrobot.mettler_toledo.mettler_toledo.MettlerToledoWXS205SDU#

class pylabrobot.mettler_toledo.mettler_toledo.MettlerToledoWXS205SDU(port: str | None = None, vid: int = 1027, pid: int = 24577)#

Bases: object

Driver for the Mettler Toledo WXS205SDU scale.

Owns the serial connection and provides a generic send_command method. Device-level operations (display) live here.

Documentation: https://web.archive.org/web/20240208213802/https://www.mt.com/dam/ product_organizations/industry/apw/generic/11781363_N_MAN_RM_MT-SICS_APW_en.pdf

From the docs:

“If several commands are sent in succession without waiting for the corresponding responses, it is possible that the weigh module/balance confuses the sequence of command processing or ignores entire commands.”

Methods

__init__([port, vid, pid])

clear_tare()

TAC - Clear tare weight value (MEM-WRITE command)

read_dynamic_weight(timeout)

Read a stable weight value from the machine within a given timeout, or return the current weight value if not possible.

read_stable_weight()

Read a stable weight value from the scale.

read_weight([timeout])

High level function to read a weight value from the scale.

read_weight_value_immediately()

Read a weight value immediately from the scale.

request_serial_number()

Get the serial number of the scale.

request_tare_weight()

Request tare weight value from scale's memory.

send_command(command[, timeout])

Send a command to the scale and receive the response.

set_display_text(text)

Set the display text of the scale.

set_weight_display()

Return the display to the normal weight display.

setup()

stop()

tare([timeout])

High level function to tare the scale.

tare_immediately()

Tare the scale immediately.

tare_stable()

Tare the scale when the weight is stable.

tare_timeout(timeout)

Tare the scale after a given timeout.

zero([timeout])

High level function to zero the scale.

zero_immediately()

Zero the scale immediately.

zero_stable()

Zero the scale when the weight is stable.

zero_timeout(timeout)

Zero the scale after a given timeout.

Parameters: