Knowledge
Technical guides with sample code we ran, its real output, and references.
Smart factory28 min readOPC UA, MQTT and Modbus: Choosing the Communication Layers in a Smart FactoryModbus reads register numbers, OPC UA gives values their meaning, MQTT carries messages upward to many receivers. Three names, three layers. A runnable single-machine example shows what each layer does, with TypeScript, real output and production cautions (Thai text).
Smart factory26 min readCollecting data from an old machine with no network port: CT clamp, count pulses and MQTT that survives network dropsReading run/idle/off from motor current, counting parts from a bouncy pulse input, summarising in time windows and publishing over MQTT with store-and-forward, with runnable TypeScript, real output and electrical-safety notes (Thai text).
Smart factory26 min readEnergy Monitoring: Measuring Energy per Unit Produced in a Way That Means SomethingThe total power bill cannot tell you whether the plant is using energy well. Place meters and compare against output and product mix.
Smart factory28 min readAlarm Management in SCADA: Cutting Needless Alarms Without Missing What MattersWhen alarms sound all day, people stop listening. Set priority, delay, deadband and a response guide.
Smart factory24 min readOT/IT Network Segmentation: Separating the Plant Network from the Office NetworkZones, a DMZ and an allow-list written as data, a Node 24 checker that finds connections that should not exist, and an example nftables ruleset that is only printed, never applied (Thai text).
Smart factory30 min readHow Long to Keep Plant Data: Planning Sampling and Historian StorageReduce plant data with deadband and swinging door while knowing what you lose, build rollups that keep spikes and gaps visible, plan raw / 1-minute / 1-hour tiers, size the storage and query the right tier, with runnable code and real output (Thai text).
Smart factory2 min readMTBF, MTTR and OEE: Picking the Metric That Fits the Machine ProblemMTBF looks at running time between failures, MTTR at average time to repair or restore, and OEE at the parts of production effectiveness. Each answers a different question, and each needs a clear definition.
Smart factory28 min readFactory Charts with Mismatched Times: Checking Timestamps, Time Zones and Data GapsOne record can carry the time the event happened, the time the central system received it and the time a screen showed it. Different time zones or buffered data can make charts show events in the wrong order.


