Forum Replies Created
-
AuthorPosts
-
December 9, 2025 at 11:43 am in reply to: MQTT Publisher publishes wrong values (e.g., 2.6E-322) instead of OPC DA values #17396
pbalseiro
ParticipantHi Mikhall,
What I observeDrvOpcClassic (OPC DA device) shows correct values in Communicator (e.g., channels 101–105 = 5, Quality = Good).
DrvMqttPublisher (MQTT Publisher device) publishes to the broker and topics appear, but payload values are wrong (e.g., 2.6E-322) or the publisher “Current Data” shows 0.000 / NaN.
Attached files:
ScadaComm.log (Communicator main log)
Line000.log (communication line 0 log)
Device001.txt (OPC Classic device settings)
Device002.txt (MQTT Publisher device settings)
PPT/screenshots showing channel list and MQTT Publisher settings
What I’m observing:
OPC Classic device shows correct current values (e.g., 5) in Communicator UI.
MQTT Publisher publishes incorrect values (often 2.6E-322) or zeros instead of the OPC values.
Relevant excerpts from ScadaComm.log:
There are intermittent connection errors to the local ScadaServer data source: connection refused on 127.0.0.1:10000, and “connection forced to close by remote host”.
ScadaComm
ScadaComm
Could these disconnections cause the MQTT Publisher to read invalid/uninitialized channel values?
If not, which part of the configuration should I validate next (channel data type / data length / mapping between OPC channels and MQTT Publisher items)?Thank you!
-
AuthorPosts