Knowledge
Technical guides with sample code we ran, its real output, and references.
Machine vision27 min readFalse Accept vs False Reject: Setting Acceptance Criteria for AI Quality InspectionA runnable Python walkthrough of AI inspection error rates: threshold sweep for FAR/FRR, EER, cost-based thresholds, a manual-check gray zone, and how many test samples you need before claiming a rate.
Machine vision26 min readVision to PLC Handshake: Trigger, Result and Rejecting the Right PartThe camera flags a bad part but the air jet hits the wrong one. PLC logic that ties each result to an encoder count: timing budget, gate pulse, reject by default, discarding duplicates, with runnable code and real output (Thai text).
Machine vision26 min readInspection AI Used to Be Accurate and Now Misses: Tracking Model Drift on the LineA Python (numpy) script that compares weekly model confidence, image brightness and reject rate against a reference window with PSI and KS, with real output, alert thresholds and what to do on an alert: check light and camera first, sample images for relabelling, then a retrain gate (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).
Automation26 min readRecipe Dosing and Weighing with a PLC and a Web App: Who Does WhatWeb app owns recipes and batch records, PLC owns valves and weight. Runnable simulation with coarse/fine feed, self-adapting in-flight compensation, alarms and a handshake that never doses twice (Thai text).
Automation26 min readLoad Cell Analog or RS485: Choosing for a Weighing SystemChoosing a load cell and signal path by calculation, from mV/V to counts per kg, with runnable TypeScript: a calculator that fails a design and fixes it, and a simulated Modbus RTU read of an RS485 weighing indicator (Thai text).
Business email and cloud21 min readSPF, DKIM and DMARC: Checking That Company Email Settings Line UpA Node.js script that checks SPF (counting lookups against the limit of 10), DMARC and DKIM on real domains, then uses the result to plan a none → quarantine → reject rollout.
Business email and cloud24 min readBackups That Can Restore the Business: Setting RPO and RTO by Calculation and Proving Them with a Restore TestCalculate the worst-case data-loss window from a backup schedule, compare it with each system's RPO, then prove it with a real restore. Runnable Node 24 code that backs up, verifies, simulates a failure, restores and catches a corrupted backup, plus notes for PostgreSQL, email and cloud files (Thai text).

