Creating a Modbus TCP Tag
After creating a tag on a Modbus TCP device, you need to tell Koios which register to read or write and how to interpret its value. You can configure these fields during creation or afterwards on the tag's Configuration tab.
Protocol Fields
Register Type
The type of Modbus register this tag reads from.
- Required
Register Address
The address of the register on the device.
- Required
- Range: 0–65535
- If the device has one-based addressing enabled, the display adds 1 to the address for readability, but the underlying communication always uses the 0-based value
Data Type
How Koios interprets the raw register value(s).
- Required
- Multi-register types (Int32, UInt32, Float32, Float64) read consecutive registers starting from the configured address
Byte Swap
Reverses the byte order within each 16-bit register.
- Default: Off
- Enable this when the device stores values in a different byte order than expected — common with some manufacturers
Word Swap
Reverses the order of registers for multi-register data types (Int32, UInt32, Float32, Float64).
- Default: Off
- Only visible when using a multi-register data type
- If a 32-bit value reads as a nonsensical number, try toggling this setting
Bit Number
When using Boolean data type with an Input Register or Holding Register, this specifies which bit within the 16-bit register to extract.
- Optional — only shown when data type is Boolean and register type is Input or Holding
- Range: Bit 0 (least significant) through Bit 15 (most significant)
- Leave empty to use the entire register value as a boolean (0 = false, non-zero = true)
Using the Register Browser
The Modbus register browser lets you scan and interpret register values directly from the device.
- Open the tag's Configuration tab and click Browse
- Select the register type and enter a start address and count
- Click Scan to read raw register values from the device
- Use the interpretation tools to test different data types, byte swap, and word swap combinations
- When you find the correct interpretation, apply it to populate the tag's configuration
This is especially useful for unfamiliar devices where the register map isn't well documented.
After Configuration
- Save the tag configuration
- Test the tag — clickTestto verify Koios reads the correct value (see Testing a Tag)
- Enable the tag — flip the enable switch to start collecting data
