A method for validation of programmed workflow sequences or teaching programs of a robot, preferably with a robot controller, which 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 in the robot controller and/or in the robot a virtual robot model, in particular a digital twin, which represents the image of the actual robot and/or of the system or work cell, respectively, is represented, wherein all the necessary data are queried and read out from the connected, components, in particular the robot, the processing machine, the tool, etc., by the robot controller for generation of the virtual plant model.