Mettler Toledo MS3002S

PyLabware driver for Mettler Toledo MS3002S balance.

class PyLabware.devices.mt_ms3002s.MS3002SBalance(device_name, connection_mode, address, port)[source]

Bases: LabDevice

This provides a Python class for the Mettler Toledo MS3002S balance based on the original operation manual 11781259 0309/2.12.

Default constructor

Parameters:
  • device_name (str) –

  • connection_mode (str) –

  • address (str | None) –

  • port (str | int) –

check_errors()[source]

Not supported on this device.

clear_errors()[source]

Not supported on this device.

clear_tare_weight()[source]

Clears currently stored tare weight

get_status()[source]

Not supported on this device.

get_tare_weight()[source]

Gets currently stored tare weight

Returns:

tare weight in grams

Return type:

float

get_weight(stabilize=True)[source]

Gets current weight reading.

Parameters:

stabilize (bool, optional) – Whether to wait for the reading to stabilize. Defaults to True.

Returns:

current weight reading.

Return type:

float

initialize_device()[source]

Issue reset command.

is_connected()[source]

Check if the device is connected via GET_NAME command.

Return type:

bool

is_idle()[source]

Not supported on this device.

Return type:

bool

set_tare(weight=None)[source]

Sets tare weight to the currently measured or the specified value

Parameters:

weight (float, optional) – Desired tare weight. Defaults to None.

start()[source]

Not supported on this device.

stop()[source]

Not supported on this device.

Return type:

bool

zero_weight(stabilize=True)[source]

Zeros current balance reading.

Parameters:

stabilize (bool, optional) – Whether to wait for the reading to stabilize. Defaults to True.

class PyLabware.devices.mt_ms3002s.MS3002SBalanceCommands(*args, **kwargs)[source]

Bases: LabDeviceCommands

Collection of command definitions for Mettler Toledo MS3002S balances.

This class shouldn’t be instantiated

CLEAR_TARE = {'name': 'TAC', 'reply': {'type': <class 'str'>}}
DEFAULT_TYPE = 'MS3002S/01'
GET_CMD_LIST = {'name': 'I0', 'reply': {'args': [' '], 'parser': <method 'split' of 'str' objects>, 'type': <class 'str'>}}
GET_CMD_VER = {'name': 'I1', 'reply': {'args': [' '], 'parser': <method 'split' of 'str' objects>, 'type': <class 'str'>}}
GET_ID = {'name': 'I10', 'reply': {'args': [' '], 'parser': <method 'split' of 'str' objects>, 'type': <class 'str'>}}
GET_INFO = {'name': 'I2', 'reply': {'args': [' '], 'parser': <method 'split' of 'str' objects>, 'type': <class 'str'>}}
GET_NAME = {'name': 'I11', 'reply': {'args': [' '], 'parser': <method 'split' of 'str' objects>, 'type': <class 'str'>}}
GET_SER_NUM = {'name': 'I4', 'reply': {'args': [' '], 'parser': <method 'split' of 'str' objects>, 'type': <class 'str'>}}
GET_SW_ID = {'name': 'I5', 'reply': {'args': [' '], 'parser': <method 'split' of 'str' objects>, 'type': <class 'str'>}}
GET_SW_VER = {'name': 'I3', 'reply': {'args': [' '], 'parser': <method 'split' of 'str' objects>, 'type': <class 'str'>}}
GET_TARE = {'name': 'TA', 'reply': {'args': [' ', -2, -1], 'parser': <function splitter>, 'type': <class 'float'>}}
GET_WEIGHT = {'name': 'S', 'reply': {'args': [' ', -2, -1], 'parser': <function splitter>, 'type': <class 'float'>}}
GET_WEIGHT_IMMEDIATE = {'name': 'SI', 'reply': {'args': [' ', -2, -1], 'parser': <function splitter>, 'type': <class 'float'>}}
GET_WEIGHT_UNIT = {'name': 'SU', 'reply': {'args': [' ', -2, -1], 'parser': <function splitter>, 'type': <class 'str'>}}
GET_WEIGHT_UNIT_IMMEDIATE = {'name': 'SIU', 'reply': {'args': [' ', -2, -1], 'parser': <function splitter>, 'type': <class 'str'>}}
MAX_WEIGHT = 3200
RESET = {'name': '@', 'reply': {'type': <class 'str'>}}
SET_TARE = {'name': 'T', 'reply': {'type': <class 'str'>}}
SET_TARE_IMMEDIATE = {'name': 'TI', 'reply': {'type': <class 'str'>}}
ZERO = {'name': 'Z', 'reply': {'type': <class 'str'>}}
ZERO_IMMEDIATE = {'name': 'ZI', 'reply': {'type': <class 'str'>}}