# Simulation

Every plan runs in Kata's sandbox, a digital twin of your cell, before it can be sent for approval. The simulator builds the full program, move by move, and checks it against the cell.

## What it checks

| Check | What it catches |
| --- | --- |
| Reach | A move the arm can't get to |
| Joint limits | A joint that would have to turn past ±360° |
| Collisions | Any part of the arm, gripper or held part touching a station or another part |
| Payload | A part heavier than the arm can carry |
| Fit | A part going somewhere that doesn't accept it, or with no room left |
| Fragile parts | Anything placed on a fragile part |
| Safeguarding | Speeds over the cell's cap, and steps a fenced or scanner cell doesn't allow |
| Force | Contact steps beyond what the arm's force sensor can measure |
| Logic | Loops that don't leave the gripper as they found it, signals that don't exist, a machine run with nothing loaded |

Where a move would collide, the simulator searches for a way round before calling it a problem. What it can't fix goes back to the planner, so most plans you see are already clean.

## Reading the result

A simulation gives you:

- **Clean or not.** Only a clean program can be sent for approval.
- **Problems**, each with its step, in plain words. See [Troubleshooting](/docs/troubleshooting).
- **Cycle time**, from the real speeds and accelerations.
- **Notes for the operator**, such as "watch the first run: contact is simulated nominally".
- **Counts** of parts placed and rejected.

## Speeds

Plans run at up to 1000 mm/s, capped at 250 mm/s in a collaborative cell whatever the plan asks for. Approaches, touchdowns and fragile parts are slowed automatically: the arm comes in at 250 mm/s and touches down at 30 mm/s. Say "slow" or "careful" for 250 mm/s throughout.

## What it can't see

The simulation is only as true as the cell description. It doesn't see a person, a loose tool, or a part that's different from its model. It doesn't replace the cell's guarding or the controller's safety configuration. See [Safety](/docs/safety).

## Playground moves

Throwing and tossing a part work in the simulator for fun. They're marked as playground, and are never exported to a robot.
