0.0.2 • Published 3 years ago

mt-sics v0.0.2

Weekly downloads
46
License
MIT
Repository
github
Last release
3 years ago

mt-sics

a node.js interface library to Mettler Toledo balances and scales that use the Mettler Toledo Standard Interface Command Set (MT-SICS).

Installation

Installation uses the npm package manager. Just type the following command after installing npm.

npm install mt-sics

Mettler Toledo RS232 Setup

BAUDRATEBIT/PARITYSTOP BITSHANDSHAKEEND OF LINECHAR SETCONTINUOUS MODE
96008/NO1NONE\<CR>\<LF>ANSI/WINOFF

Example

var MTSICS = require('mt-sics');
var mtsics = new MTSICS({uri: 'tcp://192.168.1.1:4001'});
mtsics.get_commands(function(err, commands) {
  if (err) {
    return console.log(err);
  }
  console.log(commands);
});

Documentation

functionargumentsdescription
get_commandscallbackInquiry of all implemented MT-SICS commands.
get_mtsics_levelcallbackInquiry of MT-SICS level and MT-SICS versions.
get_balance_datacallbackInquiry of balance data.
get_software_versioncallbackInquiry of balance SW version and type definition number.
get_serial_numbercallbackInquiry of serial number.
get_software_idcallbackInquiry of SW-Identification number.
get_weight_stablecallbackSend the current stable net weight value.
get_weightcallbackSend the current net weight value, irrespective of balance stability.
zero_stablecallbackZero the balance.
zerocallbackZero the balance immediately regardless the stability of the balance.
resetcallbackResets the balance to the condition found after switching on, but without a zero setting being performed.
closeClose de connection.