Freedrive_mode() enters and exists in UR5e remote mode

Continuing the discussion from Robot Control 30003 "FreeDrive" not working as intended:

the same problem: the robot is in remote mode and connected using tcp 30002 port. we send “freedrive_mode()” and the robot enters the freedrive mode then immediately exits?

so how to use the freedrive_mode in robot remote mode?

Hi,
I’ve had that problem before and managed to fix it. I sent, however, the “freedrive_mode()” through the 30003 port in the form of a script. Never had any problem ever since.