Explainer
Why a Neuron needs a custom Modbus map for RS485 analogue outputs
Short answer
A third-party RS485 module that advertises Modbus RTU and ASCII can drive a Neuron's extra analogue outputs, but only after you write a custom Modbus map. The map must fix each channel's register address, write function code, value encoding and scaling from volts to raw counts. Commission one channel unloaded, measure the output, then extend to the remaining seven.

On this page
- What an RTU and ASCII label proves, and what it does not
- What the specifications standardize, and what they leave to the manual
- The entries a custom output map must fix
- Resolve the register notation before the first write
- Wire the bus to the serial line specification
- Commission one channel and measure before any dimmer is connected
- Where the request stops when an output will not move
- The decision for each case
- Questions asked
A third-party RS485 module that advertises Modbus RTU and Modbus ASCII can work as analogue expansion for a Neuron, but not because of that label. Advertising the serial modes proves the transport layer can carry frames; it says nothing about what the module's registers mean. The part that decides compatibility is the register map, and on a device from another vendor that map does not exist until you write it: one entry per output channel fixing the register address, the write function code, the value encoding and the scaling from volts to raw counts. This article covers what the Modbus specifications do and do not standardize, what the custom map must contain, and how to commission the first channel so you know whether the module is usable before eight dimmers depend on it.
What an RTU and ASCII label proves, and what it does not #
Modbus over a serial line runs in two framings. RTU sends raw binary bytes and closes each frame with a CRC-16, with frames delimited by a silent interval of 3.5 character times. ASCII sends every value as two hexadecimal characters, frames the message between a colon and a carriage return, and protects it with an LRC. The two modes are not interchangeable on one configured link: an RTU master reads nothing useful from a module configured for ASCII, so both ends must select and configure the same mode.
That is the whole guarantee the label makes: framing and error checking that your serial port can speak. It says nothing about which register holds output 1, whether that register accepts function 06 or needs a command-and-execute pair, or what a raw count means in volts at the terminal. Transport compatibility is necessary, not sufficient — the same separation between transport and register data holds when the transport changes, as set out in how Modbus RTU and TCP differ in transport but not in register data. Decision: the RTU and ASCII label makes a module a candidate, never a compatible device.
What the specifications standardize, and what they leave to the manual #
Two documents from the Modbus Organization matter here. The application protocol specification defines the transactions: function 03 reads holding registers, 06 writes a single register, 16 (hexadecimal 10) writes a block of registers, and a module that cannot honor a request answers with an exception code — 01 for illegal function, 02 for illegal data address, 03 for illegal data value. The serial line specification, version V1.02, defines the wire side: device addresses 1 to 247 with address 0 reserved for broadcast, RTU framing and response timing, and the wiring, termination and bias rules a multidrop bus must follow.
Neither document defines your module. Which register is output channel 1, which function code it accepts, what its documented raw span is, whether an output must be enabled first — that is the manufacturer's map, and it reaches you only through the module's manual. If the manual does not document output registers, function codes and scaling, no application or integration layer can bridge the gap, whatever the specification page claims about Modbus.
Decision: the two specifications arbitrate framing and transport; the manual arbitrates registers, and without a manual there is nothing to arbitrate.
The entries a custom output map must fix #
Modbus defines transactions, not meanings, so a custom Modbus map is a translation table from your application's dimming value to the module's documented behaviour. Whether the application runs on the controller itself or through an integration layer, the same entries apply:
| Map entry | What you record | What fails when it is wrong |
|---|---|---|
| Channel to terminal | The physical terminal and its register for each of the eight outputs | The wrong dimmer changes level |
| Register address | The address in your driver's own convention, converted from the manual's notation | An adjacent or invalid register is written |
| Write function | The function code the register accepts: 06, 16, or a documented command-and-execute pair | Exception 01 comes back, or the write is ignored |
| Encoding and scaling | Data width, signedness, word order and the documented raw span across the voltage range | The write is accepted and the output voltage is wrong |
| Mode and enable | Any documented range, mode or enable value that must be in place first | The write is accepted and the output stays inactive or clamped |
| Readback | Which register returns the applied output and what its counts mean | A stored command is mistaken for a measured output |
Build the table once from the manual, enter it once, and the remaining seven channels are copies of the first row with different addresses.
Resolve the register notation before the first write #
Modbus register references begin at one, not zero, and the 4xxxx convention runs 40001 to 49999 for holding registers. A manual that lists output 1 at holding register 40004 means protocol address 40004 - 40001 = 3 for a driver that takes zero-based offsets; a driver that expects the printed 4xxxx reference takes 40004 unchanged. One position of error lands on the neighbouring channel or returns exception 02 — the same class of off-by-one that produces Modbus error 8189 when the 400001-style offset is missing.
Output registers are normally holding registers, which are readable and writable; input registers are read-only process data, and the difference between holding and input registers decides which side of the map each entry belongs on. Validate the first entry by reading it with function 03 before anything writes to it.
Decision: convert every address into the driver's convention on paper first, and enter nothing straight from the manual's printed column.
Wire the bus to the serial line specification #
Run the RS485 drop as a daisy chain on one twisted pair. Terminate both physical ends of the segment with a resistance matched to the cable's characteristic impedance — 120 Ω for the pair the specification assumes — and provide failsafe bias so an idle bus rests at a defined state. Terminal naming is not standardized across vendors: pairs are labelled A/B, D0/D1 or otherwise, so match polarity by the signal function in both manuals rather than by the letter printed on the terminal. Power the module per its manual and measure the supply at its terminals before blaming the protocol for silence.
Give the bus one transaction owner. Two applications initiating requests on the same interface collide even when their settings are individually correct; route every poll through one queued function block that services many Modbus RTU slaves in turn. For initial commissioning, put the module alone on a short test run if practical, so module compatibility stays separate from faults elsewhere on a live multidrop bus.
Serial settings must match at both ends and follow the module's documented configuration; where the module leaves the choice open, take the serial line specification's default of 19200 baud, even parity and one stop bit, with two stop bits when parity is disabled.
Decision: polarity proven by signal name, one owner per bus, settings identical at both ends — with those three cleared, any remaining silence is a module problem, not a wiring problem.
Commission one channel and measure before any dimmer is connected #
The manual states the raw span for each output. As a worked example, take the common 16-bit unsigned span of 0 to 65535 counts across 0 to 10 V — treat those figures as an example until your manual confirms them. A dimming command of 45 percent then needs raw = 0.45 × 65535 = 29490.75, rounded to 29491. Check the arithmetic against the transfer relationship: 29491 ÷ 65535 × 10 V = 4.50 V, so the output should sit half a volt under half scale. Resolution works out near 0.15 mV per count, far finer than a dimmer input can resolve. If the module maps that span onto a 2 to 10 V live-zero range instead, the same 4.50 V target needs raw = (4.50 - 2) ÷ 8 × 65535 = 20480: the terminal voltage is identical and only the counts moved, which is exactly why the scaling entry cannot be guessed.
Then commission the first channel in this order:
- Wire the module per its manual and leave the dimmer disconnected. The dimmer side is a mains-voltage circuit, so isolate the lighting circuit before wiring and keep your measurements on the module's low-voltage output terminals.
- Read the mapped register with function 03. A documented register answering with plausible data proves mode, baud, framing, address and polarity in one transaction.
- Write the calculated raw value — function 06 for a single channel, or function 16 for all eight in one transaction when their addresses are consecutive.
- Measure the output terminal with a meter and compare it with the calculated voltage.
- Read the readback register and confirm it tracks the measured value, not only the command you sent.
- Connect the dimmer and step it through low, mid and high commands, checking the dimmer's documented input range — a 1 to 10 V input never reaches full output from a zero-volt command — and its input impedance against the module's drive capability.
An accepted write proves the transaction was legal; only the meter proves the output is right. Decision: the module passes when a documented read answers, a mapped write produces the calculated voltage, and the readback agrees with the meter — that one verified channel is the compatibility proof, and the remaining seven extend as copies.
Where the request stops when an output will not move #
Each failure lives at a different boundary, and the boundary tells you which part of the work to fix:
| Observed result | Fault boundary | Next check |
|---|---|---|
| No request appears on the wire | Application to serial interface | Confirm the mapped write executes and targets the interface wired to the module |
| Request sent, no reply | Interface to module | Supply voltage, pair polarity, RTU or ASCII mode match, baud and framing, device address, duplicate address on the bus |
| Garbled or intermittent replies | Physical bus | Termination, bias, polarity, a second transmitter sharing the segment |
| Exception reply | Module transaction handling | Decode the code: 01 wrong function for that register, 02 wrong address, 03 value outside the documented range |
| Write accepted, wrong output level | Map or conversion | Channel register, encoding, scaling, a missing enable or mode register |
| Output correct unloaded, dimmer misbehaves | Output to dimmer | Dimmer input range and input impedance under real load |
Decision: fix in boundary order. No map entry can rescue a request that never reaches the module, and no amount of rewiring fixes a wrong scaling entry.
The decision for each case #
- The manual documents registers, function codes and scaling: build the map and commission one channel as above. The verified channel discharges the fact that no controller maker can guarantee another maker's device — by measurement, not by hope.
- The manual advertises RTU and ASCII but omits the register map: the module is not a candidate for this job. Get the register documentation from the manufacturer first; without it, no software layer can bridge the gap, and trial writes are not documentation.
- The module deviates from its own paper — exceptions on documented writes, undocumented command sequences, registers that behave differently from the manual: exclude it. A custom map can only express documented behaviour, and a dimming installation has no room for a device whose response differs from its documentation.
Questions asked
Does any of this change when the link is Modbus TCP instead of RTU?
No. TCP replaces the serial framing and the CRC with Ethernet transport and adds connection handling, while the register map, function codes, encoding and scaling stay exactly as the module documents them. The addressing convention still needs the same conversion, and the module still answers exceptions the same way. Verify the map over TCP with the same single-channel test before trusting all eight outputs.
Can I write all eight channels at once with a broadcast?
The serial line specification reserves address 0 for broadcast, and a write sent there is accepted by every device that hears it. What broadcast cannot give you is a reply: no confirmation, no exception code and no readback, so a framing problem or a wrong scaling value passes silently. For dimming, address the module directly and use function 16 to write all eight registers in one confirmed transaction.
The module has no published register map. Can I find the registers by trial?
No, and it is worse than slow. Trial writes are not documentation: a guessed address can change a mode, clear a fault or disturb another device sharing the bus, and a guessed scaling value puts an unverified voltage on a real load. Ask the manufacturer for the register description, function codes and scaling. Without them the module is not integrable, whatever its brochure claims.
Why choose ASCII mode at all, if RTU is faster?
ASCII delimits frames by start and end characters rather than a silent interval, so it tolerates gaps in transmission that would break an RTU frame, which is why some long or noisy links prefer it. The cost is speed: every data byte travels as two ASCII characters, so the same eight-register write takes roughly twice the on-wire time at a given baud rate. Both ends must still be configured for the same mode.
Will the analogue outputs track the controller scan?
No. Each output updates when your write transaction completes on the serial bus, so the effective update time is the bus round trip plus the module's processing time, not the controller's logic cycle. For lighting dimming that delay is invisible, but do not use the module for anything that needs per-scan updates, and keep the request spacing wide enough that the module can answer every transaction.


