Cellwrite Studio operating manual · CWS-OM-001, revision A
Running programs offline
This chapter describes the Simulate tab: running a robot's program on this computer with the virtual FlexPendant. Nothing in this tab reaches a robot.
What runs
The program runs as the controller runs it: instructions, data, routines, interrupts, error handlers and waits. Moves play in the 3D view with the robot's model, at the speeds and zones the program gives. Signals the program waits for can be set by hand.
Instructions that need the real controller's hardware or options are passed over, and the event log says which.
The virtual FlexPendant
Simulate > Open pendant opens the virtual FlexPendant in a window of its own, with the robot's program loaded. It has the screens of the real FlexPendant:
| Screen | What it shows |
|---|---|
| Production Window | The program pointer and the line that runs. |
| Program Editor | The program, with the program pointer and the motion pointer. |
| Program Data | The program's data and its values as the program runs. |
| Inputs and Outputs | The robot's signals. Select a signal to set it. |
| Jogging | The robot's axes and the tool point. |
| Event Log | What the program logged and the errors it met. |
The operating mode switch and the hold-to-run button behave as on the real FlexPendant.
Running and stepping
| Command | Keys | What it does |
|---|---|---|
| Start | F5 | Runs the program from the program pointer. |
| Stop | Shift+F5 | Stops at the next instruction. |
| Step over | F10 | Runs one instruction; a routine call runs to its end. |
| Step into | F11 | Runs one instruction; goes into a routine that is called. |
| Step out | Shift+F11 | Runs to the end of the routine and stops in the routine that called it. |
| Run to cursor | Ctrl+F10 | Runs to the line with the cursor. |
| Breakpoint | F9 | Sets or clears a breakpoint on the line. The program stops there. |
| End simulation | Stops the program and closes the simulation. |
The program pointer
The program pointer (PP) is where the program runs from. The motion pointer (MP) is the move the robot makes.
| Command | What it does |
|---|---|
| PP to main | Moves the program pointer to the first line of main. |
| PP to cursor | Moves the program pointer to the line with the cursor. |
| PP to routine | Moves the program pointer to the start of a routine you select. |
| Show pointer | Shows the program pointer's line in the editor. |
| Show motion pointer | Shows the motion pointer's line in the editor. |
Time
Simulate > Time sets how fast the program runs against its own clock:
- Real time: as fast as on the robot;
- 10x speed;
- As fast as possible: for long programs, when only the result is wanted. The cycle time is still the program's own time.
Note
The cycle time measured offline comes from the robot's model and the moves' speeds and zones. On the robot, waits for signals, the process and the load change it.