{
 "manufacturer": "Laumas",
 "manufacturer_slug": "laumas",
 "model": "TLB4 four-channel weight transmitter (Modbus RTU / Modbus TCP)",
 "model_slug": "tlb4",
 "short_model": "TLB4",
 "aliases": [
  "TLB4",
  "TLB4 MODBUS",
  "TLB4 Modbus/TCP"
 ],
 "equipment_type": "Sensor (load-cell weight transmitter)",
 "applies_to": "Laumas TLB4 with the Modbus RTU port or the Modbus/TCP option; communication protocols manual version 1.12. Direct registers only.",
 "summary": "The TLB4 is a DIN-rail weight transmitter for up to four load cells. Over Modbus RTU (or the Modbus/TCP version, which uses the same register list) it exposes gross, net and peak weight, a status word, digital I/O, setpoints and calibration values as holding registers, and takes commands (tare, zero, save) through a single command register. This map lists the directly addressed registers; settings reached through the exchange registers are left out.",
 "transport": [
  "RTU",
  "TCP"
 ],
 "defaults": {
  "unit_id": null,
  "baud": null,
  "parity": null,
  "data_bits": 8,
  "stop_bits": null,
  "tcp_port": 502
 },
 "addressing": {
  "convention": "Modicon",
  "note": "Registers are printed 40001-40074. Laumas says to subtract 40001 for a 0-based client (40028 -> 27). The manual's read example asks for start address 0x0007 to read gross weight at 40008, confirming the offset."
 },
 "default_word_order": "ABCD",
 "firmware": null,
 "source": {
  "title": "TLB4 User Manual - Communication Protocols",
  "doc_number": "version 1.12",
  "revision_date": null,
  "url": "https://cdn.automationdirect.com/static/manuals/laumas/tlb4protocolsmanualen.pdf",
  "unofficial": true,
  "pages": "pp. 2-14 (fieldbus parameters, SR1, command status, Modbus RTU register list, examples), p. 38 (Modbus/TCP), pp. 46-79 (command procedures)"
 },
 "notes": [
  "Host: this copy is hosted by AutomationDirect, not by Laumas; a short search did not find the same protocols manual as a direct download on laumas.com.",
  "Word order: every 32-bit value is an H/L register pair with the high word at the lower address. The manual's read example returns gross weight 4000 as 0x0000 0x0FA0 at 40008-40009, so ABCD is documented.",
  "Weights (GW, NW, PW) are positive magnitudes with the decimals implied by the division setting (DU low byte); the sign comes from SR1 bits 7-9. The manual says the calibration weight CALW is a signed 32-bit number (two's complement for negatives). It does not state signedness for setpoints, hysteresis, analog weights or preset tare; they are typed INT32 here, which only matters for negative values.",
  "Left out: exchange registers 40051-40064 (R1/W1, EXC, AEXC). The list prints them as fourteen single registers while the other fieldbuses describe R1/W1 and EXC/AEXC as 4-byte values, and the exact register split for Modbus is not stated.",
  "Parameters such as filter, sensitivity, full scale and zero tracking are reached by writing W1 and sending a 65xx command to CMDR; they are not listed because they go through the exchange registers.",
  "Program type matters: peak weight, display coefficient, setpoints and CMDOUT are BASE program features; instrument status IS is LOAD program only.",
  "Serial settings (baud, parity, address 1-99) are set from the instrument's own menu; the protocols manual does not give factory values."
 ],
 "integration": {
  "summary": "Read 40007-40013 in one FC3 request: status word, then gross, net and peak weight as 32-bit H/L pairs. Apply the sign bits from the status word and the decimals from the division index. Write 7 / 9 / 8 to the command register 40006 for tare on, tare off and zero.",
  "minimum_registers": [
   {
    "table": "holding_register",
    "address": 6,
    "why": "Status: stability, sign and load-cell errors"
   },
   {
    "table": "holding_register",
    "address": 7,
    "why": "Gross weight"
   },
   {
    "table": "holding_register",
    "address": 9,
    "why": "Net weight"
   },
   {
    "table": "holding_register",
    "address": 13,
    "why": "Division index for the implied decimals"
   },
   {
    "table": "holding_register",
    "address": 5,
    "why": "Command register for tare / zero"
   },
   {
    "table": "holding_register",
    "address": 16,
    "why": "Digital inputs"
   }
  ],
  "enable": "Select Modbus RTU in the instrument's serial communication menu and set address, baud, parity and stop bits there. The Modbus/TCP version gets its IP address from the Lantronix DeviceInstaller tool and listens on port 502.",
  "watchdog": null,
  "quirks": [
   "Only FC3 and FC16 are supported; use FC16 even for a single register (the manual's examples write with FC16).",
   "At most 32 registers per request.",
   "Weights carry no sign: check SR1 bits 7 (gross), 8 (net), 9 (peak).",
   "Setpoints and some values are written to EEPROM (limited to about 100000 writes); setpoints themselves stay in RAM until command 99."
  ],
  "setup": [
   "Set the RS-485 address (1-99), baud rate, parity and stop bits in the instrument's serial communication setting menu.",
   "For Modbus/TCP use port 502; the register set is identical to RTU."
  ],
  "gotchas": [
   "Broadcast (address 0) writes are executed with no reply; broadcast reads are ignored.",
   "Setpoints and hysteresis values are set to zero if the calibration is changed significantly."
  ]
 },
 "registers": [
  {
   "table": "holding_register",
   "address": 0,
   "documented": "40001",
   "name": "Firmware version",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 1,
   "documented": "40002",
   "name": "Instrument type",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 2,
   "documented": "40003",
   "name": "Year of manufacture",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 3,
   "documented": "40004",
   "name": "Serial number",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 4,
   "documented": "40005",
   "name": "Program type",
   "description": "BASE or LOAD program; some registers apply to one program only.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 5,
   "documented": "40006",
   "name": "Command register (CMDR)",
   "description": "Write a command code to run it; see notes for the codes.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "7": "Semi-automatic tare on (net weight)",
    "8": "Semi-automatic zero",
    "9": "Tare off (back to gross)",
    "99": "Save setpoints to EEPROM",
    "100": "Tare weight zero setting (calibration zero)",
    "101": "Acquire single calibration point (sample weight in CALW)",
    "104": "Cancel real calibration",
    "106": "Acquire one of multiple calibration points",
    "130": "Activate preset tare (value in PT)"
   },
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 6,
   "documented": "40007",
   "name": "Status register (SR1)",
   "description": "Weight sign, stability and error flags.",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Load cell error",
    "1": "AD converter malfunction",
    "2": "Maximum weight exceeded by 9 divisions",
    "3": "Gross weight over 110% of full scale",
    "4": "Gross weight over 999999 or under -999999",
    "5": "Net weight over 999999 or under -999999",
    "7": "Gross weight negative sign",
    "8": "Net weight negative sign",
    "9": "Peak weight negative sign",
    "10": "Net display mode",
    "11": "Weight stable",
    "12": "Weight within +/- 1/4 division of zero",
    "15": "Load cell references not connected"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 7,
   "documented": "40008",
   "name": "Gross weight (GW)",
   "description": "Magnitude without decimal point; sign is SR1 bit 7.",
   "data_type": "UINT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 9,
   "documented": "40010",
   "name": "Net weight (NW)",
   "description": "Magnitude without decimal point; sign is SR1 bit 8.",
   "data_type": "UINT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 11,
   "documented": "40012",
   "name": "Peak weight (PW)",
   "description": "Magnitude without decimal point; sign is SR1 bit 9. BASE program.",
   "data_type": "UINT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 13,
   "documented": "40014",
   "name": "Divisions and units of measure (DU)",
   "description": "High byte = unit index, low byte = division index (decimals).",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 14,
   "documented": "40015",
   "name": "Display coefficient (COF)",
   "description": "Coefficient x 10000 (BASE program).",
   "data_type": "UINT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 0.0001,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 16,
   "documented": "40017",
   "name": "Digital inputs (INS)",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Input 1 high",
    "1": "Input 2 high"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 17,
   "documented": "40018",
   "name": "Digital outputs (OUTS)",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": {
    "0": "Output 1 closed",
    "1": "Output 2 closed",
    "2": "Output 3 closed"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 18,
   "documented": "40019",
   "name": "Setpoint 1 (SP1)",
   "description": "Weight value without decimal point. RAM only until command 99.",
   "data_type": "INT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 20,
   "documented": "40021",
   "name": "Setpoint 2 (SP2)",
   "description": "Weight value without decimal point. RAM only until command 99.",
   "data_type": "INT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 22,
   "documented": "40023",
   "name": "Setpoint 3 (SP3)",
   "description": "Weight value without decimal point. RAM only until command 99.",
   "data_type": "INT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 38,
   "documented": "40039",
   "name": "Hysteresis 1 (HYS1)",
   "description": "Weight value without decimal point.",
   "data_type": "INT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 40,
   "documented": "40041",
   "name": "Hysteresis 2 (HYS2)",
   "description": "Weight value without decimal point.",
   "data_type": "INT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 42,
   "documented": "40043",
   "name": "Hysteresis 3 (HYS3)",
   "description": "Weight value without decimal point.",
   "data_type": "INT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 49,
   "documented": "40050",
   "name": "Instrument status (IS)",
   "description": "LOAD program only: batching state code.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": {
    "0": "Idle (weight display)",
    "1": "Formulas display",
    "2": "Batching constants display",
    "3": "Consumption display",
    "4": "System parameters display",
    "5": "Setting formula number and cycles",
    "6": "Batching",
    "12": "Batching waiting phase",
    "13": "Batching paused",
    "14": "Batching cycle end phase",
    "20": "Weight not stable"
   },
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 64,
   "documented": "40065",
   "name": "Sample weight for calibration (CALW)",
   "description": "Write the loaded test weight, then command 101 or 106; reads back 0 when OK.",
   "data_type": "INT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 66,
   "documented": "40067",
   "name": "Analog output zero weight (ANA0)",
   "description": "Weight giving analog zero; saved to EEPROM.",
   "data_type": "INT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 68,
   "documented": "40069",
   "name": "Analog output full-scale weight (ANAFS)",
   "description": "Weight giving analog full scale; saved to EEPROM.",
   "data_type": "INT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 72,
   "documented": "40073",
   "name": "Preset tare (PT)",
   "description": "Write the tare, then command 130 to apply it.",
   "data_type": "INT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null,
   "offset": 0
  }
 ],
 "page": "https://easymodbus.com/modbus-register-maps/laumas/tlb4",
 "address_note": "address = 0-based Modbus wire (PDU) address; documented = as printed in the source.",
 "note": "Re-typed from the manufacturer's public documentation (see source) and verified against it. Registers vary by firmware and options; verify against the live device before writing."
}
