Manufacturing › MWR: Manufacturing With Robots
Robot-cell simulation
An interactive simulation of a robot cell: move the robots, change the settings and see where the bottleneck is, in 2D or 3D.
- Built
- With AI assistance
- Stack
- JavaScript and HTML canvas (no libraries)
- Status
- Prototype
Who it helps
Small manufacturers and learners thinking about robots for the first time, who want to see what a robot cell does before committing money or floor space.
The problem
Before buying a robot it is hard to know whether it will keep up, where parts will queue, or whether a second robot would help. Reading about robots does not show you a bottleneck; watching a cell run does.
The approach
The cell is described once as a small piece of data: belts, robots, an optional machine and the rate parts arrive. A simulation engine steps that description forward in time and knows nothing about drawing. The 2D view only draws what the engine reports, and lets you drag robots and the machine to try layouts.
Because the description, the engine and the views are separate, the 2D view and the 3D view draw the very same simulation.
The result
Switch between a top-down 2D layout and a 3D view you can rotate and zoom. Three cells to explore: Pick and place (belt to belt, with an optional second robot), Machine tending, and Butcher shop: cutting and packaging (a real application of the machine-tending pattern -- intake, a portioning station, packaging). Change the arrival rate, robot speed, grip time, machine process time and belt speed, and watch throughput, time in the cell, queue size, and robot and machine utilisation. A plain-language line names the bottleneck, and a red reach ring shows when a robot cannot reach everything.
The figures come from a simplified model and are illustrative, not promises about a real factory.
Lessons for new architects
- Keep the data, the logic and the drawing separate: each can change without breaking the others.
- Make the numbers explain themselves: one plain sentence about the bottleneck teaches more than a chart.
- Test the logic without the screen: the engine runs on its own, so its results can be checked automatically.
- A simulation shows why, not only how many: the machine-tending cell tops out below what the machine alone could do, because the machine sits idle while the robot swaps parts.