# URScript export

Every clean program has a URScript version: the exact program the bridge sends to the controller. Open it on the program's page to read or review it.

## What's in it

- A header with the instruction it came from and when it was generated.
- `set_payload` for the gripper and, while a part is held, the part, with its centre of gravity, so the controller's own limits use the real load.
- The moves, with corners between moves through open air blended so the arm doesn't stop at each one.
- Approaches at 250 mm/s and touchdowns at 30 mm/s, whatever the plan's top speed.
- Force and part-present checks. On a real arm a failed check stops the program with a message on the pendant; on URSim they only log, since URSim has no force sensor.
- Loops as real URScript loops, when the cell comes back to the same state each time round.

## Reviewing it

The script is generated from the simulated program, so the simulator's checks apply to it. The approval is bound to the script's hash: if anything in it changes, the bridge refuses to run it.

To run a program, send it for approval and start it in Kata; don't copy the script to the pendant by hand. A hand-loaded script skips every check in [Approving and running](/docs/approving-and-running).

## URSim

You can run Kata against Universal Robots' official simulator, URSim, before going near a real arm. Mark the robot as URSim at 127.0.0.1 and pair a bridge on the same PC.
