A robot system comprising an industrial robot with a control system
including a main memory (5) with at least one robot program an external
computer (4) connected to the control system, wherein the robot system is
adapted such that the robot program is editable in the external computer.
The robot system comprises means 816) for obtaining a reference to that
part of the robot program which is to be edited and for creating a local
reflection in the external computer of said part, means (14) for
generating and sending an order to the control system to carry out a
change directly in said part of the robot program in the main memory of
the control system, and means for updating the reflection. A method for
editing a robot program from an external computer, which is connected to
the control system of the robot. The method comprises obtaining a
reference to that part of the robot program that is to be edited,
creating a local reflection of said program part in the external computer
by fletching a copy of the program part according to the reference,
editing the program part in the external computer, sending an order to
the control system to carry out a change in the robot program in
dependence on said editing and carrying out said change directly in the
main memory of the control system, and updating the reflection.