
🏭 Manufacturing · State Machine
The states a production order goes through on the shop floor, from release by planning to closure, including material shortages, rework and scrap.
Drawing diagram…
State machine for a manufacturing production order: Planned, Released, Material Staged, In Progress, Quality Inspection, Completed, Goods Received, Closed. A material shortage puts it On Hold until material arrives. Inspection failures go to Rework, and unrecoverable parts are Scrapped.
stateDiagram-v2 [*] --> Planned Planned --> Released: Planner releases Released --> MaterialStaged: Materials picked Released --> OnHold: Material shortage OnHold --> MaterialStaged: Material arrives MaterialStaged --> InProgress: Operator starts InProgress --> QualityInspection QualityInspection --> Completed: Pass QualityInspection --> Rework: Minor defect QualityInspection --> Scrapped: Major defect Rework --> QualityInspection Completed --> GoodsReceived: Posted to warehouse GoodsReceived --> Closed Scrapped --> Closed Closed --> [*]
An incoming and in-process quality inspection flow: sampling, measurement against the spec, and what happens to a batch that fails.
A connected factory: machines and sensors on the shop floor, an edge layer, MES and ERP, and cloud analytics for OEE and predictive maintenance.
How production orders flow from ERP planning to the shop floor MES and how confirmations, goods movements and scrap flow back.
How vibration and temperature data from machines becomes a maintenance work order before the machine fails.
How materials flow from suppliers to customers in a manufacturing business: purchasing, inbound quality, production, warehousing and distribution.
A schema for multi-level bills of materials: items, BOM headers and lines, routings and work centres.