Troubleshooting
Why MB_CLIENT error 8383 blocks DIRIS A40 register 50512 reads
Short answer
MB_CLIENT reports 8383 when the DIRIS A40 answers a read with Modbus exception 02, illegal data address. Enter the meter's registers through the extended 400001-465535 holding-register band (register 50512 becomes MB_DATA_ADDR 450512) and write the RS485 slave address to MB_UNIT_ID before each request when the meter bridges TCP to RTU. If the capture shows no telegram at the meter, fix the call first; no address change helps a request that never leaves the PLC.

On this page
- What does MB_CLIENT status 8383 mean on a DIRIS A40 read?
- Why does register 50512 not fit the MB_DATA_ADDR range?
- How do you convert a DIRIS register number into MB_DATA_ADDR?
- Why does Wireshark show no Modbus TCP telegram from the S7-1200?
- How do you reach the RS485 slaves behind a DIRIS A40 gateway?
- What does a working DIRIS A40 read look like in MB_CLIENT?
- Which fix do you apply first when 8383 keeps coming back?
- Questions asked
An S7-1200 that shows MB_CLIENT STATUS 8383 against a DIRIS A40 is holding either a refused read — the meter answered with Modbus exception 02, illegal data address — or a request that never left the CPU, and both look identical on the instruction. Fix them in this order: capture the link and prove a telegram leaves the PLC; enter the manual's register numbers through the extended 400001-465535 holding-register band, so DIRIS register 50512 becomes MB_DATA_ADDR 450512; and write the RS485 slave address into MB_UNIT_ID before each request when the meter bridges TCP to RTU. The sections below take each check in turn, one worked example reads a real two-register value end to end, and the last section turns the whole fault into a single ordered list.
What does MB_CLIENT status 8383 mean on a DIRIS A40 read? #
STATUS 8383 is the MB_CLIENT report for a read the meter refused: the DIRIS answered with Modbus exception 02, illegal data address, meaning the address-and-quantity pair carried in the transmitted request matched no register block the meter serves.
Exception 02 is the server speaking precisely: the function code was acceptable, but the address named in it, or the quantity running on from that address, lands outside every block in the meter's map. On this combination the trigger is the register number itself, because the DIRIS A40 documents its data area from register 50512 upward and a number that large has no legal raw form in MB_DATA_ADDR. Read the exception byte out of the captured reply once, because that fixes the pairing between this STATUS number and this meter for the rest of the job — and because the same fault also runs in a second shape, where the PLC transmits nothing at all and the STATUS display sits there meaningless, which the capture section below separates.
Asking for more registers than the server serves in one block produces the same exception from the quantity side; that variant is its own write-up at why MB_CLIENT returns Modbus TCP error 8383 on multi-register reads. Siemens clients meet this meter over Modbus TCP with other named faults as well — the A011 error an S7-300 client runs into with this meter has its own resolution walkthrough at resolving the Modbus TCP A011 error between an S7-300 and the DIRIS A40.
Why does register 50512 not fit the MB_DATA_ADDR range? #
Register 50512 sits outside both documented holding-register bands of MB_CLIENT — the block accepts 40001-49999 or the extended 400001-465535 — so the manual's number needs the 400000 offset that turns DIRIS register 50512 into MB_DATA_ADDR 450512.
MB_CLIENT builds its request from MB_DATA_ADDR alone: the band selects the register type, and the offset arithmetic happens inside the instruction before anything transmits. The short band tops out at 49999, so a data area documented from 50512 upward never fits it, and a raw 50512 belongs to neither band, which means the block cannot assemble a valid request from the manual's printed number. The extended band exists for exactly these values: add 400000 to the manual's number and the meter's whole documented area maps to entries running from 450512 through 457635, both ends inside the 465535 ceiling. This is the same 400001-based notation that selects register type elsewhere on this CPU family, the one behind why Modbus error 8189 needs 400001 added to the register address.
How do you convert a DIRIS register number into MB_DATA_ADDR? #
Add 400000 to the manual's number: DIRIS register 50512 becomes MB_DATA_ADDR 450512, the instruction subtracts its own base before transmitting, and 450512 - 400001 = 50511 is the protocol address that lands on the wire — the manual's register 50512 counted from one.
Convert the three numbers this meter makes you care about and check each against the band ceiling:
| DIRIS manual register | MB_DATA_ADDR entry | Protocol address on the wire |
|---|---|---|
| 50512, first register of the data area | 450512 | 50511 |
| 50768, the hour meter, two registers wide | 450768 | 50767 |
| 57635, last register of the data area | 457635 | 57634 |
Every entry clears the 465535 ceiling, so the whole area reads through one band without splitting it. Add no further offset by hand: MB_DATA_ADDR already carries the shifted form, and one extra register of subtraction moves every read and ends in the same rejected-address exception or in quietly shifted data. The middle row is the value the worked example below reads end to end.
Why does Wireshark show no Modbus TCP telegram from the S7-1200? #
An exception answer still needs a request and a reply on the wire, so a capture filtered on the meter's IP address that shows nothing while the PLC is supposed to be polling means the CPU never transmitted — and until a telegram appears, no change to MB_DATA_ADDR or MB_UNIT_ID can help anything.
That emptiness points at the client, and it pays to work it in one order:
- Watch MB_CLIENT online. If it never sets BUSY, the block is not being enabled in its scan, and the fault lives in the conditions ahead of the call rather than in any parameter value.
- Check the connection data. It must carry the meter's IP address, the Modbus TCP port 502 and a connection identifier unique within the CPU; the instruction documentation requires each MB_CLIENT instance to have its own, and two instances aimed at one server strangle each other's reads in exactly this way — why two MB_CLIENT instances stop Modbus TCP reads from one server covers that failure in full.
- Take the meter out of the question. Point the identical request at a PC running a Modbus TCP server simulator: if the simulator sees the telegram, the CPU transmits and the fault sits on the path to the meter; if it sees nothing either, the invocation is broken and no meter setting matters.
A request that dies before it ever reaches the server is a recognized fault shape of its own — why a virtual PLC Modbus TCP write fails before the server is the same silence from the write side — which is why the capture, not the STATUS display, is the honest witness here.
How do you reach the RS485 slaves behind a DIRIS A40 gateway? #
When the meter bridges Modbus TCP to its RS485 bus, the downstream slave is selected by the unit identifier carried in the request, so write the slave address — 2, 3 and 4 on a three-slave bus, as an example numbering — into MB_UNIT_ID before each request instead of leaving it unconfigured.
The unit identifier rides in the header of every Modbus TCP request, and a TCP-to-RTU gateway forwards it as the slave address it puts on the serial bus. A request whose MB_UNIT_ID is left unconfigured addresses the meter itself, so the DIRIS answers every poll out of its own registers and the RS485 bus is never touched. That is exactly the split symptom on this fault: the PC test client succeeded because its setup window has a slave-number box, while the PLC polled only the meter because its request never named a slave.
Write the value before each request, not while the block reports BUSY: MB_UNIT_ID lives in the MB_CLIENT instance data, so a MOVE instruction driven just ahead of the request puts the next slave's number in it, 2 first, then 3, then 4. Re-addressing the meter itself is not the fix — the meter's own slave number only governs how the meter answers, while the unit identifier is what a gateway forwards downstream. If the serial side misbehaves once the routing is right, troubleshooting DIRIS A40 RS485 monitoring failures is the checklist for that half of the link. None of this needs the meter opened: treat its voltage measurement circuits as live, and any wiring at the meter belongs to a locked-off circuit.
What does a working DIRIS A40 read look like in MB_CLIENT? #
Reading the two-register hour-meter value at DIRIS registers 50768-50769 needs MB_MODE 0 for the read, MB_DATA_ADDR 450768, MB_DATA_LEN 2, a two-word buffer at MB_DATA_PTR, and MB_UNIT_ID set to the meter's own slave address, 1 in this example, because these registers belong to the meter rather than a serial slave.
The next readable register is 50770, which is how the manual itself shows the hour meter spans exactly 50768 and 50769 — two 16-bit registers carrying one 32-bit value. Check the arithmetic line by line:
- MB_DATA_ADDR = 400000 + 50768 = 450768.
- Wire check: 450768 - 400001 = 50767, so the transmitted request names protocol address 50767, which is the manual's register 50768 counted from one.
- MB_DATA_LEN = 2 registers, meaning 4 bytes at MB_DATA_PTR.
- Ceiling check: 450768 is inside the 465535 band limit, and a quantity of 2 is far inside the 125-register maximum of the read-holding-registers function.
- MB_UNIT_ID = 1 selects the meter itself here; an RS485 slave behind the gateway would take its own address instead.
Pulse REQ, expect DONE, and read the capture once against this arithmetic: protocol address 50767, quantity 2, unit identifier 1. Two registers from the middle of the meter's data area is the right size for that first successful read; grow the block from there and keep every two-register value unsplit.
Which fix do you apply first when 8383 keeps coming back? #
Capture first, addresses second, unit identifier third: nothing in MB_DATA_ADDR or MB_UNIT_ID can rescue a request the CPU never transmits, and an illegal-data-address reply after a correct conversion points at the register block being asked for, not at the notation.
Work the decision top to bottom:
- Capture the link. Filter on the meter's IP address and the Modbus TCP port, then run one read of two registers from the middle of the data area; the capture splits every case below.
- No telegram. Bring the block online, confirm it sets BUSY, and verify the connection data: meter IP, port 502, and a connection identifier unique within the CPU. Decision: this is client-side — stay out of MB_DATA_ADDR until a telegram appears.
- Exception 02 in the reply. Re-enter MB_DATA_ADDR with the 400000 offset, re-check MB_DATA_LEN against the block the meter actually serves, and confirm the transmitted protocol address equals the manual number minus one. Decision: with the conversion correct, the meter's own registers read reliably.
- Clean replies that carry only the meter's own data. Write each RS485 slave address into MB_UNIT_ID ahead of its request and let the gateway forward it downstream. Decision: the serial bus becomes reachable with no addressing change at all.
- Scale up last. Grow the read toward the full data area, holding every quantity inside the read-function maximum and every two-register value whole.
Run in that order, this fault closes with a transmitting PLC, correctly shifted addresses for the meter's data area and one unit identifier per serial slave — every failure mode this combination produced.
Questions asked
Do DIRIS registers below 10000 also need the extended band?
No. A manual number below 10000 stays in the short band with 40000 added instead of 400000: manual register 1605, if the meter's map lists one, would be entered as MB_DATA_ADDR 41605, because 40000 + 1605 = 41605. The extended band exists only because this meter's data area is numbered 50512 and upward, past the short band's 49999 ceiling.
Can one MB_CLIENT call read the meter and an RS485 slave together?
No. One MB_CLIENT execution carries one request with one unit identifier, so finish the current job first, meaning DONE or ERROR must set, then write the next slave's number into MB_UNIT_ID and start the next request. A second MB_CLIENT instance can run in parallel, but it opens a second connection to the meter and needs its own connection identifier within the CPU.
What proves that STATUS 8383 really is exception 02 in my installation?
The captured reply does. A Modbus TCP exception response carries the function code with its high bit set plus one exception byte, and code 02 there means illegal data address; read that byte once in the capture and the pairing between this STATUS number, this meter and your firmware is settled for the rest of the job. The STATUS display is the label; the reply byte is the evidence.
Why does a register pair such as the hour meter need both registers?
A value wider than one register lives across consecutive registers, and a read that stops after the first half returns half a value. The read function itself accepts any quantity from one register upward, so nothing faults, but the data is simply incomplete. Read two registers at the pair's first address and join the two 16-bit words into the 32-bit result in the word order the meter's manual specifies.
