How device profiles work
A Modbus device only sends numbers. The profile tells ModbusPilot what each address means: its name, data type, scale, unit and the text for status or error codes.
Excel / Word / PDF➜ Smart Import
finds table + columns➜ Profile .json
one per device model➜ ModbusPilot shows
Voltage 230.1 V
Make the profile once per device model, then reuse it on every site. The same ModbusPilot works with any meter, inverter, PLC or sensor — only the profile changes.
Accepted files
| Source | What is read | Tip |
|---|---|---|
| Excel .xlsx / .xlsm | Every sheet becomes a table | Old .xls: open in Excel and Save As .xlsx |
| CSV, TSV, TXT, MD | Comma, semicolon, tab, | tables or space-aligned columns | Title lines above the table are skipped automatically |
| Word .docx | Every table; its name is the heading above it | Multi-line cells (enum lists) are kept |
| Tables on every page; tables continued on the next page are joined | Scanned PDFs (images) have no text — copy the table manually or use OCR first | |
| Pasted text | Anything copied from Excel, Word, PDF viewers or web pages | Fastest way for one table in a long manual |
| JSON | A ModbusPilot profile (opened directly) or a list of register objects |
Column names the importer understands
Columns can be in any order and use any of these names (upper/lower case and extra words are fine). Only Address is required.
| Field | Example column titles | Example cell |
|---|---|---|
| Address | Address, Register, Reg addr, Offset, Modbus address, PDU address, Hex, 地址 | 0x0010, 40017, 16, 0010H, 16-17 |
| Name | Name, Parameter, Variable, Tag, Signal, Description, 名称 | Grid voltage |
| Function / table | Function, FC, Register type, Object type, Area, Table | 03, Holding, Input register, 4x, Coil |
| Data type | Type, Data type, Format, Data format, Value type | U16, INT16, uint32, Float, REAL, ASCII |
| Length | Length, Words, Size, Count, Number of registers | 2 |
| Scale | Scale, Factor, Multiplier, Gain, Resolution, Ratio, Coefficient, Precision | 0.1, x0.01, 1/10, /100 |
| Unit | Unit, Units, UOM, Eng unit, Unit / Resolution | V, 0.1 V, 0.01Hz, ℃ |
| Offset, Decimals | Value offset, Zero offset / Decimals, Decimal places, DP | -40 / 1 |
| Value texts | Values, Enum, Options, States, Value description — or texts written inside Remarks / Description / Range | 0=Stop; 1=Run; 2=Fault |
| Bit texts | Bits, Bit definition, Bit map, Flags — or Bit0: … texts inside Remarks | Bit0: Over temp; Bit3: Fan fault |
| Access | Access, R/W, Read/Write, Attribute, Permission | R, RW, Read only |
| Low / High | Min, Max, Lower limit, Upper limit, Alarm low / high | 180 / 260 |
| Byte order | Byte order, Word order, Endian, Swap | ABCD, CDAB, word swap, little endian, low word first |
| Group | Group, Category, Section, Block, Module | Measurements |
0x00.. numbers becomes the address, U16/Float32 words become the data type and V/A/Hz/°C become units. You can always correct a choice in Column mapping.Addresses
| The datasheet shows | Meaning | Import option |
|---|---|---|
40001, 30001, 10001, 00001 (5 digits) or 400001 (6 digits) | Reference numbers — the first digit is the table (4 = holding, 3 = input, 1 = discrete input, 0 = coil) | Auto detect |
0x0000, 0000H, 1A | Hexadecimal protocol address | Auto, or force Hexadecimal |
0, 1, 2 … | Protocol (PDU) address, starts at 0 | Auto / 0-based |
1, 2, 3 … but the manual says “register 1 = first register” | Register number, starts at 1 | Choose 1-based |
40001 and protocol address 0 are the same register.Ranges such as 0x0010-0x0011, 16~17 or 40017..40018 define 32-bit values. Section rows such as “Input registers (FC04)” switch the function for the rows that follow.
Data types & word order
| Datasheet writes | ModbusPilot type | Registers |
|---|---|---|
| U16, UINT, WORD, unsigned short | Unsigned | 1 |
| S16, INT16, INT, short, signed | Signed | 1 |
| U32, UINT32, DWORD, UDINT, unsigned long | UInt32 | 2 |
| S32, INT32, DINT, long | Int32 | 2 |
| FLOAT, FLOAT32, REAL, IEEE 754 | Float32 | 2 |
| U64 / S64 / DOUBLE, FLOAT64, LREAL | UInt64 / Int64 / Float64 | 4 |
| STRING, ASCII, CHAR[n] | ASCII | length |
| HEX, BCD, BITMAP / BITFIELD | Hex / Binary | 1 |
32/64-bit values are read in the order ABCD (big-endian) unless the table or the import option says CDAB (word swap), BADC or DCBA. If a Float32 shows nonsense like 1.2e-38, try CDAB.
Scale & units
Engineering value = raw × scale + offset. The scale may be in its own column, inside the unit (0.1V, 0.01 Hz, V/10, 1/100 kWh), or in the name (Voltage (0.1V)). Decimals are chosen from the scale automatically (0.1 → 1 decimal).
Value texts & bit texts
Value texts replace a number with a word. Bit texts name each bit of a status, alarm or error word — all set bits are shown.
| Accepted writing | Shown in ModbusPilot | |
|---|---|---|
| Values | 0=Stop; 1=Run; 2=Fault0: Stop, 1: Run0x10 = Standbyone entry per line in the same cell | raw 1 → Run (1) raw 9 → Unknown (9) |
| Bits | Bit0: Over temp; Bit3: Fan faultbit0=OV, bit1=UVcontinuation rows: “Bit 4: Grid lost” under the register row | raw 0x0009 → Over temp, Fan fault (0x0009) raw 0 → No flags (0x0000) |
When writing a register that has value texts, you can type the text (Run) instead of the number.
Groups & sections
Registers are grouped into polls (one Modbus request each). Neighbouring registers are combined when the gap is ≤ Join gaps up to (default 8) and the request stays within 125 registers / 2000 bits. With One poll per group, every sheet, Word table, Group column value or section row gets its own tab. Use gap 0 for devices that reply with an exception for undocumented addresses.
Messy datasheets — checklist
- Pick the right Table. All matching tables imports every register table in the file.
- Check the Header row (highlighted blue in Source table).
- Fix any wrong Column mapping — click a column title in the source view to assign it.
- Compare two or three addresses with the datasheet (watch for off-by-one).
- Read the Warnings tab: skipped rows and overlaps are listed with their line number.
- Still unusual? Copy only the useful columns into the template CSV.
Build a profile library
- Name files
Manufacturer_Model_fwVersion.json, e.g.Acme_EM340_v2.json. - Fill Manufacturer, Model and the default connection (baud, parity, TCP port) so a technician only needs to pick the COM port.
- Keep the original datasheet next to the profile; re-import when the vendor publishes a new register list.
- Profiles are plain JSON — share them by e-mail, USB stick or a shared folder. No cloud needed.
How other tools do it (and what ModbusPilot takes from them)
| Tool | Approach | Used in ModbusPilot |
|---|---|---|
| Kepware / Ignition (SCADA) | Tag import from CSV with fixed column names | Template CSV + many accepted column names |
| Modbus Poll | Alias + format per row, saved workspaces | Row settings, profiles (.json) |
| evcc, ioBroker, Home Assistant | Community device templates (YAML/CSV) per model | One profile per device model, easy to share |
| SunSpec | Standard register models for inverters/meters | Group/section handling, scale factors |
| Spreadsheet import wizards | Preview + column mapping with auto-detect | Smart Import wizard & this Studio |