A robot controller for teaching a robot with high efficiency. The robot
controller including command storage unit (21) where a movement command
and a work command are stored, command identifying unit (24) for
discriminating between the movement and work commands, unit (22) for
making/editing a series of work programs or discrete work programs by a
combination of the commands, work program storage units (23) where the
work programs are stored so as to control the robot according to the
stored program, further including a work section identifying unit (25)
for identifying a work section of the work program by way of the command
identification unit (24) and work section automatic stopping unit (27)
for automatically stopping or suspending the execution of the work
program at the work section in a standby state when the work section
identifying unit (25) identifies the work section during the execution of
the work program.