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) –
- 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
- 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'>}}