IMD Solution Computing Library
Plant-floor computing, explained.
Practical answers for the engineers who specify, install and maintain industrial PCs, edge devices and the software that runs on them.
Read the latest articlesLatest articles
Troubleshooting
LatestWhy buffered MQTT records replay corrupt or out of order
Corrupt or out-of-order replay is caused by the buffer script, not by MQTT or the broker. The reader scans fixed blocks for one @ while the writer frames records with a five-byte delimiter, current data publishes before the backlog, and the file is erased before delivery is confirmed. Parse the full delimiter across block boundaries, replay the backlog first, and hold the buffer until your chosen confirmation stage is reached.
Troubleshooting
JVM FIFO allocation errors behind silent MQTT drops
When an MQTT publisher on an Ewon Flexy gateway disconnects silently while the event log shows JVM ABORT, a tryPutFifo failure and a failed 4096-byte allocation at one timestamp, the gateway's Java runtime ran out of memory mid-publish. Correlate every disconnect with those entries, back up the unit, and test string-buffer preallocation before blaming the broker, firmware or hardware.
Explainer
Why each historian instance needs its own license
A historian license attaches to each running historian instance, not to the logging job, the tag count across destinations or the storage location. A primary plus a second active historian needs two licenses; a backup copy that only sits on disk for recovery needs none. Count instances first, then decide between redundancy and backup.
Explainer
How a VPN gateway on a controller routes you to the machine LAN
A VPN client on the machine-side gateway becomes a router to the machine LAN only when IP forwarding is enabled on both the tunnel and LAN interfaces, the server advertises the machine subnet and binds it to that client with iroute, and replies find a way back through the device gateway or an SNAT rule on the gateway. A worked packet example shows both directions.
How-to
Connecting MQTT Transmission to Azure Event Grid MQTT broker
MQTT Transmission can now publish Sparkplug B through Azure Event Grid MQTT Broker because the broker supports retained messages and LWT. Match the Primary Host ID on both modules, set the MQTT Engine reorder timeout above your measured worst-case delivery displacement, and keep every message under the broker's 1 MB limit.
Explainer
Why a 16K AVEVA Edge runtime license does not set Thin Client count
The 16K figure in an AVEVA Edge runtime license is the tag-database ceiling, not a Thin Client count. Any license includes one concurrent Thin Client and the rest are separate line items — 99 more on the quote for a 100-client requirement — and whether one runtime actually carries that load is proven by a stepped load test of the real application, not by the tag tier.
Explainer
When one edge PC can host the MQTT broker for the rest
Yes: MQTT is publish-subscribe over plain IP reachability, so one edge PC can host the broker for the whole cell and every device needs only a TCP path to that one address. The design work is per connection: protocol version, QoS, TLS, retained messages and the last will. Verify each client's path and the failure behavior, not the broker app.
How-to
Historian 23.2.1 to 25.4: upgrade historians before collectors
Upgrade both Historians from 23.2.1 to 25.4 before any collector. Version 25 collectors default to gRPC, and the version 23 Historian does not have that transport, so collector-first lands on an incompatible default; sender/receiver does not make it safe. Upgrade collectors in verified batches only after both Historians run the new version.
Troubleshooting
Node-RED crash and memory growth: systemd restart recovery
Set a Restart policy in the Service section of the Node-RED unit file so systemd brings the process back after a crash, and prove it with a controlled failure test. Then trend Node-RED and device memory side by side: a climb that ends in a crash after about 30 hours is flow-side growth, and no restart policy removes it.
Troubleshooting
Write PI bad quality as a system digital state in UFL
A quality label such as Bad or NaN cannot enter a Float32 PI tag through the value argument. Map it to the status argument of StoreInPI instead: 0 writes the value as good, -290 writes the system digital state Bad Data on a non-digital tag. Declare STATUS as a string, parse every field above the IF branch, and keep the StoreInPI call outside it so each record writes its own value and timestamp.
Troubleshooting
Why PI AF SDK writes stall after a PI Server reboot
After a PI Server restart, AF SDK writes can return no errors while nothing lands in the archive, because PiServer.ConnectionInfo.IsConnected keeps reporting the old connection state and snapshot errors go unchecked. Gate recovery on operation-level errors instead, and preconfigure PI Buffer Subsystem so BufferIfPossible actually queues events through the outage window.
Troubleshooting
Why AFElementSearch throws error BC30182 type expected
BC30182 Type expected is a Visual Basic compiler and debugger diagnostic, not a message from AFElementSearch or the AF Server. Keep the Category-only query unescaped, materialize FindObjects with ToList into a List(Of AFElement), and read any genuine search failure as an exception at that materialization line.