# Cells

A cell is the robot and everything it works with. Kata plans and checks against the cell, so the plan is only as true as the cell description: keep it matching the floor.

## What a cell holds

- **The arm.** UR3e, UR5e, UR10e, UR16e, UR20 or UR30, with its reach and payload.
- **The gripper.** Fingers or vacuum.
- **Stations.** Each has a kind, a place and a size:

| Kind | What it is |
| --- | --- |
| Conveyor | A belt. A *fed* conveyor brings parts to a pick position, and only its front part can be picked |
| Pallet | Slots in rows and columns, stacked up to a number of layers |
| Bin | Parts are dropped in, for rejects or finished parts |
| Table | A flat surface with slots, such as a parts table |
| Machine | Something the arm loads and runs a cycle on, such as a CNC |

  A station says which part kinds it **accepts**, how many **slots** and **layers** it has, and what's in each slot now. A **source** keeps receiving parts of one kind, so a production loop never runs dry.
- **Parts.** Every kind has a size and a weight. Parts can be fragile, damaged, raw or finished, and lying upright, upside down or on a side.
- **Signals.** Named digital inputs and outputs, such as `door_closed` or `lamp`. An input can say what the part at the pick position is, for example "damaged" or "red".
- **Waypoints.** Named positions you can send the tool back to.
- **Safeguarding.** How the cell is really protected. See below.

Directions in Kata are from the operator's side: right is +x, left is −x, front is +z, back is −z, and y is up from the robot's base.

## Safeguarding mode

| Mode | Means | Top tool speed |
| --- | --- | --- |
| Fenced | Guards and interlocked doors | 1000 mm/s |
| Scanner | A scanner slows and stops the arm as people approach | 1000 mm/s |
| Collaborative | People work beside the arm | 250 mm/s |

The mode is a statement about the real cell, and it's the integrator's to get right: Kata can't see whether a fence is closed or a scanner works. A collaborative cell still needs a risk assessment to ISO/TS 15066. Hand-over and freedrive steps are only allowed in a collaborative cell. See [Safety](/docs/safety).

## Building and editing a cell

Edit a cell in the cell editor, or just say it:

- "New cell with a UR5e and a vacuum gripper"
- "Add a pallet on the left"
- "Add 4 billets to the table"
- "Add an input called door_closed on pin 2"

Kata lays out what you don't specify so that it's reachable and overlaps nothing.

Editing a cell's layout or safeguarding after its safety validation has been signed off means it must be validated again before runs on a real robot.

## Built-in cells

| Cell | What's in it |
| --- | --- |
| Demo line (UR10e) | Conveyor, two pallets, reject bin, CNC with a parts table |
| UR3e bench (collaborative) | Parts tray, CNC, finished tray, reject bin |

Use them to try things out; the demo cell is the one on the [public demo](https://kata-seventh-axis.vercel.app/demo).
