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:

ScreenWhat it shows
Production WindowThe program pointer and the line that runs.
Program EditorThe program, with the program pointer and the motion pointer.
Program DataThe program's data and its values as the program runs.
Inputs and OutputsThe robot's signals. Select a signal to set it.
JoggingThe robot's axes and the tool point.
Event LogWhat 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

CommandKeysWhat it does
StartF5Runs the program from the program pointer.
StopShift+F5Stops at the next instruction.
Step overF10Runs one instruction; a routine call runs to its end.
Step intoF11Runs one instruction; goes into a routine that is called.
Step outShift+F11Runs to the end of the routine and stops in the routine that called it.
Run to cursorCtrl+F10Runs to the line with the cursor.
BreakpointF9Sets or clears a breakpoint on the line. The program stops there.
End simulationStops 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.

CommandWhat it does
PP to mainMoves the program pointer to the first line of main.
PP to cursorMoves the program pointer to the line with the cursor.
PP to routineMoves the program pointer to the start of a routine you select.
Show pointerShows the program pointer's line in the editor.
Show motion pointerShows 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.