A method for validation of programmed workflow sequences or teaching programs of a robot preferably with a robot controller, wherein the robot is preferably mounted on or next to a processing machine, in particular an injection molding machine, and serves for the extraction, handling, manipulation or further processing of injection-molded parts which have just been produced, wherein the travel parameters, equipment features and functionalities of the physical robot are stored on the control side in a configuration file, and the robot controller creates a virtual robot model from these stored data and uses the current teaching program in the robot controller for validation of a workflow sequence, wherein the visualization of the workflow sequences is displayed directly on an output unit of the robot controller.