Modbus FIFO Reads Repeat Events: Separate Reading from Queue Consumption
Repeated event records do not necessarily mean repeated physical events. Before changing poll rates, establish whether reading the device queue consumes its contents and how the downstream system identifies an event.

Original conceptual illustration; not a live software screen, specific product or customer installation.
Key takeaways
Confirm whether the read consumes data.
Identify events using the documented source contract.
Reconcile unique events and observed replies.
1. Check the meaning of the read
Modbus function 24 reads a FIFO queue without clearing it. The returned queue count describes data registers, not the count register itself. This is a protocol distinction; a product that supports basic register reads does not necessarily implement this function.
For a gateway project, the BG200 industrial IIoT gateway can be assessed as part of the communications architecture. Ask for explicit confirmation of the required function and connected-device behaviour. A general Modbus support statement does not establish FIFO support.
2. Define the event identity before polling
Ask the equipment supplier which fields identify an event: for example an event sequence, boot/session identifier and source asset. A process value alone is usually weak evidence of identity. Two real events can legitimately contain identical measurements.
Document how the event queue advances, what happens when it fills and whether an acknowledgement is required. These are device-specific questions. Do not invent a clearing write or assume that a read reply authorises deletion. Keep acquisition separate from any approved acknowledgement process.
3. Work through a duplicate example
In a hypothetical isolated test, the first read returns events E41 and E42. No new event occurs before the second read, which returns E41 and E42 again. A downstream collector that appends every received item now reports four events although only two distinct source events were presented.
The intended acceptance outcome is two retained events plus evidence of two observations. That outcome needs a stable event identity and a documented deduplication policy. It cannot be guaranteed by discarding adjacent equal values; a later event E43 may have the same value as E42.

Original explanatory infographic. Values and test cases are hypothetical; equipment selection and implementation require project-specific verification.
Diagnostic comparison
Observation | Check next |
Same event IDs on successive reads | Check replay handling, not just poll speed. |
Same values but different event IDs | Preserve legitimate repeated events. |
Sequence restarts after reboot | Check source session identity. |
4. Test restart and interrupted delivery
Use a simulator or safely isolated supported device. Include an unchanged queue, a newly appended event, an interrupted reply, collector restart and source restart. For each case, record the queue state, raw response and downstream event identities.
A restart may reset an event number. Decide how the commissioning design distinguishes a fresh source session from replay of an old record. If the device supplies insufficient information, record the ambiguity and agree a limitation rather than claiming exactly-once acquisition.
Confirm whether the read consumes data.
Identify events using the documented source contract.
Repeat an unchanged queue read in isolation.
Test source and collector restart separately.
Reconcile unique events and observed replies.
5. Keep the handover evidence useful
A passing screenshot of one read proves little about long-term event accounting. Retain the expected sequence, actual received records and the reconciliation result. State whether lost events can be detected, how queue overflow is exposed and who responds to a gap.
Do not alter production event clearing or acknowledgement settings to make a demonstration look clean. Any state-changing test requires equipment-specific authorisation, recovery planning and competent personnel. Monitoring software is not a replacement for the machine safety system.
Recommended equipment / related solutions
For a Modbus integration enquiry, assess the BG200 industrial IIoT gateway. Its catalogue lists Modbus TCP and RTU support; confirm the exact firmware, device map and required acceptance tests.
For a broader remote-asset monitoring scope, review the ProSense RTU Monitoring Kit. Confirm the supplied interfaces and whether a kit is appropriate; it is not a substitute for checking the connected device or an authorisation for control writes.
Related practical guide: Modbus TCP Replies Crossed? Match Transactions Before Trusting the Register Value
Frequently asked question
Can I clear the queue after every successful read?
Only if the exact device documents and authorises that workflow. A received response and a durable downstream save are separate stages; an unsupported clearing write can destroy evidence.
Technical references
Need help with your application?
Send the equipment models, current documentation and a sanitised test example. Discuss this integration and equipment requirement with ProSense; confirm the actual functions, interfaces and acceptance scope before purchase or deployment.
.png)
