Teach_mode() does not work

i want to use script to control ur in teachmode,
i write c++ prog
tcpclient->write(“movej……\n”) it works
but tcpclient->write(“teachmode()\n”) it does not works, the log in teachpendant show the teachmode prog is over
i also try put this script in a timer, but it alse dose not works
please tell me why?

For future reference, the script manual usually contains good information. :slight_smile:
I don’t know if the issue you’re experiencing is due to the command being deprecated, but I would definitely try to use freedrive_mode() instead. You can read more about the command in the script manual section 13.1.15.

image

EDIT: This is only true for e-series robots. If you’re using a CB robot, your issue is not with the command. :slight_smile: