Empty Modbus Poll Groups: Block Zero-Register Requests Before Deployment
A polling configuration can look valid in a spreadsheet and still generate a request for zero registers. This happens when a tag group is disabled, a template contains no selected points, or a configuration export leaves an empty group behind. The failure belongs in the polling-plan validation process, before the request reaches an instrument.

Key takeaways |
An empty application group should emit no poll. Validate generated quantities against the exact function and device map, and prove that valid populated groups continue to work. Do not conceal missing data by substituting a zero reading. |
For maintenance teams, the useful question is not simply why an error banner appeared. Ask which request was generated from which configuration, and whether an empty group was supposed to be omitted. Resolve that relationship before changing a transmitter setting or substituting a value in the dashboard.
1. An empty group must not become a read command
The Modbus Organisation’s application specification defines a quantity of 1–125 registers for function 03, Read Holding Registers. Zero is outside that range. Its exception code 03 concerns an unacceptable request data field or structure; it does not, by itself, diagnose an engineering value stored in a register.
PTC’s official driver reference makes the same distinction between an illegal request value and the application’s interpretation of a stored value. Keep the function identifier and exception identifier separate when reading a log: an error labelled “03” needs the surrounding transaction to explain it.
The practical design decision is straightforward: if a group has no active points, exclude it from the generated polling list. Do not encode “nothing to read” as a zero-length field request. This also makes the configuration easier to review because every emitted poll has a named purpose.
2. Worked example: a disabled tag group leaves a zero count
Consider a hypothetical configuration generator, not a test of any particular product. A template contains a holding-register group starting at address 0x0020. After all its tags are disabled, the generator produces the application-layer request bytes 03 00 20 00 00: function 03, starting address 0x0020, quantity zero. These bytes omit the transport framing and are not a complete RTU command.
The generator should suppress that group rather than send it. Do not automatically replace zero with one: that would create a new read whose purpose and permitted address have not been approved. Restore a documented group only when it contains the complete values the application actually needs.
In a simulator or authorised test environment, keep the defective generated output as a regression example. After correcting the generator, verify that the empty group produces no transaction, while a valid populated group still produces its intended request. That checks both the repair and the behaviour beside it.
3. Check the generated request at the converter boundary
An RS485-to-LoRaWAN converter provides a useful example of where configuration becomes a field request. Dragino documents AT+COMMANDx as the command sent during RS485-LN sampling, with a separate option controlling addition of the Modbus CRC. It also documents comparing the expected request with the actual RS485 traffic when troubleshooting.

Use the pictured RS485-LN as an example of the architecture, not an assertion that it generates zero counts automatically. Confirm the installed hardware and firmware before applying its instructions. The polling template, converter configuration and connected instrument map each need their own version record.

4. A review checklist for generated polling plans
Give every group an owner and purpose. Record its device, function, start address, quantity and the points it supplies. A group that cannot be traced to required points should be reviewed rather than silently retained.
Validate after all configuration transformations. Check the final exported plan after filtering disabled tags, expanding templates and applying site-specific options. Reviewing only the original spreadsheet can miss a defect introduced later.
Check empty and boundary cases offline. Include no selected tags, one complete value, the largest permitted group and a group spanning a documented gap. Apply the connected device’s limits as well as the protocol limits; do not assume the protocol maximum is a universal device capability.
Separate a disabled point from a failed point. Agree how the application will show each state. Neither should silently appear as a new measurement of zero, and a retained last-good reading needs its age and quality to remain visible.
Capture the actual request during acceptance. Match it to the approved plan and keep a timestamped paired response where a transaction is expected. Protect production communications from competing test clients; have the responsible integrator choose the test arrangement.
5. Close the fault without concealing missing data
After the repair, reconcile the active tag list with the emitted polling list. Confirm that intentionally disabled groups remain absent and that required points resume updating through to their final display. A successful export alone is not acceptance evidence.
Record the affected configuration revision, the interval of missing or uncertain readings and the recovery result. Do not backfill measurements that were never taken. For assistance, provide the exact converter and instrument models, firmware, register-map revision and a short example of the generated request. That gives ProSense a concrete starting point for checking the integration.




Comments