Knowledge
Technical guides with sample code we ran, its real output, and references.
Smart factory27 min readAsk Your Factory Data in Plain Language: How an AI Agent Connected to SCADA and MES WorksInstead of waiting for IT to build a report, a manager can type a question such as which line had the lowest OEE yesterday and why. This article explains how an AI Agent connects to factory data, and what must be guarded against so it does not become a loophole.
Machine vision26 min readHow Does AI Fruit Sorting Work? Hyperspectral Grading of Durian and Longan Without Cutting Them OpenAI fruit sorting uses cameras (including hyperspectral) to analyse the ripeness, defects and sweetness of each fruit on a conveyor and sort it automatically, which, when well set up and validated, can be faster and more consistent than the human eye. This article explains the principle and real use in Thai fruit packing houses.
Automation14 min readWhat Is OEE? Formula and a Worked Example from a Sample Production LineOEE = Availability × Performance × Quality, a common machine-efficiency metric in factories. This article explains the formula, a step-by-step calculation example, and a commonly cited benchmark with its caveats.
AI for businessAI by department27 min readPreparing Company Documents for AI: Organize Your Data Before RAGBefore an AI answers from company documents, you need to know who owns them, which version is current and who may read them. This is a step-by-step prep guide.
AI for businessUsing AI safely24 min readWhat Is AI Hallucination: Why Confident Answers Can Still Be WrongWhy language models answer confidently and still get it wrong, how to measure the error rate with a question set that has known answers, and how to check numbers against cited sources, with runnable TypeScript, real output and tests (Thai text).
ERP and CRM24 min readIn Stock but Not Sellable: On-hand, Reserved and AvailableCompute on-hand, reserved and available per item and warehouse in SQL from a stock-movement ledger instead of an editable quantity column, with runnable code, real output and a reconciliation query (Thai text).
Websites and web apps27 min readDocument Uploads in a Web App: File Type, Access Rights and RetentionAn upload/download service for business documents: size limit applied while streaming, magic-byte type check, sanitised Thai filenames, random storage names outside public folders, per-document authorization and retention, with runnable TypeScript and real output (Thai text).
Automation2 min readDI, DO, AI and AO: Reading a Machine's I/O ListInputs and outputs are named from the controller's side. DI/DO carry on/off signals or commands; AI/AO carry continuous values within the device's range, such as weight or a control value that needs scaling.
Automation2 min readNPN vs PNP: Matching a Sensor to the PLC InputNPN/PNP describes the transistor output and how it pairs with the input circuit; NO/NC describes switching behaviour. They are separate things, and two sensors that look alike may not be interchangeable.
Automation26 min readModbus RTU vs TCP: Where RS485 and Ethernet FitRS485 and Ethernet are the wire; Modbus is the language spoken over it. Wiring, serial settings, register numbering, 32-bit byte order and a runnable byte-level Python example (Thai text).
Automation26 min readPLC and HMI Not Communicating: Separating Port, Settings and Data ProblemsA layered walk-through for an HMI that will not talk to a PLC: TCP, unit id, shifted addresses, swapped float words, slow or lost replies and exception codes, with runnable TypeScript against a simulated PLC, real output and a manual physical-layer checklist (Thai text).


