1. Home
  2. Connecting machines
  3. Modbus

Modbus

Modbus TCP and RTU, in real units.

Frequency drives, energy meters, simple PLCs and sensors often speak Modbus. FactoryNebula reads them via TCP or RTU, converts the raw registers into real units and puts the values on the bus and in the database.

Production line in a factory hall

Modbus · live

Example

Drive pump 1 · Speed

1,480 rpm

Drive pump 1 · Current

12,4 A

What it does

Modbus in FactoryNebula

Every machine arrives on the bus in the same way. Everything built on top of it, such as dashboards, OEE and workflows, therefore works for every brand.

All register types

Coils, discrete inputs, input registers and holding registers.

Conversion

From raw value to real unit with scale and offset. A drive that delivers tenths simply shows amperes.

32-bit values

Configurable byte and word order, so an int32 or float across two registers arrives correctly.

TCP and RTU

Directly over the network, or via a gateway to a serial RTU bus with the right unit ID.

On the machine side

What is needed, and what isn’t

For reading, nothing needs to change in the machine program. You arrange this in advance.

  • The manufacturer’s register map.
  • IP address, port and unit ID (often 1).
  • Note: the manual sometimes counts from 1 or from 40001, the protocol from 0.

Specifications

  • Protocol: Modbus TCP (port 502) and Modbus RTU
  • Devices: Frequency drives · energy meters · PLCs · sensors
  • Writing: enabled per command, with limits and audit
  • Time and quality with every value
  • To the bus, the database or both

Frequently asked questions

Modbus: good to know

Stuck on something? Get in touch.

All values are shifted by one register.

The manual counts from 1 (or 40001), the protocol from 0. Lower the address by 1, or drop the 4xxxx prefix.

I get absurdly large numbers for 32-bit values.

The word order is reversed. Swap the word order in the device settings.

A value is ten times too large.

The device delivers tenths. Set the scale to 0.1.

Further reading

From the knowledge base

More connectors

Also on the same gateway

Connect your first machine

In a personal demo we show how a machine gets into FactoryNebula, and what is needed on the machine side.