Tiza Group

Home / Guides / Testing, commissioning and faults

Inverter Returning Nonsense Modbus Data: Causes and Test

SCADA reads absurd or shifted inverter values over Modbus: ranked causes, the SunS signature test and how to fix it. We configure it remotely.

By Shadai García, CEO and protection engineer at Tiza Group.

Short answer

When an inverter answers over Modbus but the values make no sense, communication works and the error is in the interpretation: shifted address, register type, 32-bit word order, sign, scale factor or not-implemented values. It is separated by reading raw registers and comparing them with the inverter's local display.

Symptom

The SCADA or the gateway reads the inverter with no communication errors, but the numbers make no sense: negative power that does not match, energy that jumps to billions, voltages ten times higher or lower, values that stick at a strange number, or quantities that seem swapped with others. This symptom is different from dropped communication (see inverter offline in the portal): here the device answers, and that already rules out cables, baud rate and device address.

The problem is usually one of interpreting the register map. To understand how that map is built and what SunSpec offers, see integrating inverters into the SCADA over Modbus and SunSpec. This guide is for ordering the suspects once the values already come out wrong.

Probable causes, from most to least likely

CauseHow to recognize itWhat confirms it
Address shifted by one position, or by a blockValues that correspond to the neighboring quantity; the whole map shiftedThe SunS signature appears one position before or after the expected one
Scale factor ignored or wrongly appliedValues 10, 100 or 1,000 times larger or smallerCompare with the inverter display; read the scale register
32-bit word order reversedHuge energy or power values, or negative for no reasonSwapping the order gives a value consistent with the display
Sign: signed and unsigned integers confusedValues close to 65,000 when they should be small and negativeReinterpret as a signed integer
Wrong register type (holding or input)Readings stuck at zero or that never changeTry the other function code and see which returns live data
“Not implemented” or reserved valuesA fixed, extreme number, always the same, on quantities the device does not measureThe manufacturer’s map defines the reserved value; it must be discarded in the SCADA
Wrong device address on a gateway with several invertersData from another inverterCompare power against each local display
Read that crosses a block boundaryException response for illegal address, or incomplete dataThe combination of start address and quantity exceeds what the device allows
New firmware that changed the mapThe problem appeared after an updateCompare the map version with the firmware version

How to diagnose it

  1. Read raw registers, without scaling or conversion. Use a Modbus query tool connected to the same point as the SCADA, or the raw view of the gateway. Note the address and the value in decimal and in hexadecimal. If the SCADA has already transformed the data, information is lost.
  2. Verify the base. On a SunSpec device, the map starts with the “SunS” marker, which in hexadecimal is 0x53756E53 and takes two registers. Read it at the address your tool believes is the base. If it appears exactly there, the numbering is correct. If it appears one position before or after, change the numbering convention: some manuals count from 1 and the protocol frame from 0. The next header, the model identifier and its length, confirms you are in the right block.
  3. Compare with the local display. Choose a stable quantity, such as grid voltage or power, and compare the raw register with what the inverter shows at that instant. The ratio between the two (1, 10, 100, 0.1) tells you the scale factor.
  4. Check the data type. The manufacturer’s map says whether each register is a signed or unsigned integer, 16 or 32 bits, or floating point. An unsigned integer of 65,336 that is really signed is −200.
  5. Test the word order. If a 32-bit value makes no sense, swap its order and compare with the local display.
  6. Look at fixed values. A quantity that never changes, always with the same extreme number, is usually a value reserved for “not available”. It is not a measurement.
  7. Check the version. Compare the firmware version with that of the map in use.

Illustrative example

An accumulated energy is read in two registers: 0x0001 and 0x86A0. If the device sends the high word first, the value is 0x000186A0 = 100,000 (units defined in the manufacturer’s map). If the SCADA takes the low word first, it forms 0x86A00001, which as an unsigned integer is 2,258,632,705 and as a signed integer is −2,036,334,591. If the manufacturer’s map gives energy in Wh and the local display shows 100 kWh, the correct order is the first and the second is the source of the absurd value. In the same way, a power that arrives as 4,215 with a scale factor of −1 is worth 4,215 × 10⁻¹ = 421.5 in the map unit; without applying the factor, the SCADA shows it ten times larger. It is an illustrative example with general figures.

What to do

  • Numbering: fix one convention in the SCADA and in the gateway and document it in the signal table. Confusion between counting from 0 and from 1 is the most frequent cause of shifted maps.
  • Scale: apply each signal’s factor, reading it from the scale register when the map provides one, or from the manufacturer’s fixed table. Record the factor per signal in the signal list.
  • Word order and sign: adjust in the gateway or the client for each data type, not globally, because one device can mix types. The guide on the Modbus data model and functions explains it.
  • Reserved values: discard them with a rule that marks the signal as no data instead of displaying the number.
  • Device address: if a gateway concentrates several inverters, verify each one’s address against its display; the protocol gateway must have a clear table per device.
  • Firmware: if the map changed, ask the manufacturer for the map version for your firmware and update the table before updating devices; see inverter firmware.
  • Closing: compare each corrected signal with the local display under two load conditions, and keep the result as an acceptance test.

Field checklist

  • Raw registers read with an independent tool.
  • SunS marker at the expected position, or offset corrected.
  • Type and length of each register per the manufacturer’s map.
  • Scale factor of each signal confirmed against the local display.
  • Word order tested on the 32-bit values.
  • Sign checked with known negative values.
  • Reserved values identified and filtered.
  • Device address checked on each inverter.
  • Firmware and map versions noted.

What not to do

  • Do not write control registers “to test” a theory: a write register can change the power or disconnect the inverter.
  • Do not fix the symptom in the SCADA with an arbitrary multiplier without understanding whether the error is one of scale, order or sign: it breaks on the next device.
  • Do not use the wrong data for billing or power control; in power control or zero export, a wrong value produces wrong actions.
  • Do not poll at excessive speed: it can saturate the device and produce incomplete responses.
  • Do not open the communications compartment of an energized inverter.

When to call us

If the corrected map still does not match the display, if there are several manufacturers in the same plant or if the data feeds power control, we review the signal table and the gateway configuration. We configure it remotely.

Common problems

Absurd inverter values on the SCADA screen

How it shows. The inverter shows correct data on its own panel, but the operator screen presents a power above rating, an impossible temperature or a fixed number such as 65,535 or −32,768.

Likely causes, from most to least likely.

  1. A reserved “not implemented” value shown as a measurement: in SunSpec models a signed 16-bit integer uses 0x8000 and an unsigned one 0xFFFF; other types have their own.
  2. Scaling applied twice, in the gateway and again in the SCADA, or in neither.
  3. The raw reading is correct, but the screen object is linked to the signal of another inverter or to another quantity.
  4. Engineering unit, range or number format wrongly defined in the signal database.

How to diagnose it. Follow a single signal at four points at the same instant: inverter panel, raw register, gateway output and SCADA database. The first place where the number changes shows which configuration is wrong. If the database holds the right value and the screen does not, check the graphic object link and its format.

What to do. Turn reserved values into invalid data before scaling, keep the conversion in a single link of the chain and correct the screen template for every inverter that uses it. Exclude the wrong samples from totals and reports, recording the affected period.

References

  • Modbus Organization, Modbus Application Protocol Specification (16-bit registers and exception responses; it does not fix the word order of a 32-bit value).
  • SunSpec Alliance, SunSpec Information Models and the Modbus profile specification (SunS marker, common models and scale factors).
  • Register map and firmware version from the manufacturer of each inverter.

Frequently asked questions

How do I know if the register address is shifted by one position?

Read the SunS marker of a SunSpec map: it is the first two registers of the map and holds the characters S, u, n and S. If you read it at the position you expected, the base and the offset are correct; if you see it one position before or after, the tool numbers registers from 1 and the device from 0, or the other way round. Manufacturer maps use both conventions.

Why does a 32-bit value come out as a huge or negative number?

Because two 16-bit registers were combined in the wrong order. The protocol defines each register as 16 bits, but it does not fix how the two halves of a 32-bit value are ordered; each manufacturer chooses. If you swap the word order in the SCADA or the gateway, the value is corrected.

What does it mean when a value arrives 10 or 100 times larger than the real one?

Almost always that the scale factor was not applied. In SunSpec maps, many quantities carry a separate register with a power-of-ten exponent, and the real value is the integer multiplied by ten raised to that exponent. In other maps the factor comes in the manufacturer's table, for example tenths or hundredths.

WhatsApp