Home Programming


Left ArrowBack to discussions page
MrTylerMrTyler Posts: 5 Apprentice
I am running a small program where I need the robot to change speed rather drastically. I have found that using a stopl(1.0) for example lets the robot decelerate and stop before moving on. Everything I have found says that after a stopl() or stopj() the robot will continue on with the program but for some reason my program stops and never continues. anyone have any suggestions? It would be greatly appreciated. 


  • nsteldernstelder Posts: 6 Apprentice
    edited September 2018
    You could slow everything down by changing the slider speed in a script. 
    socket_open("",30002)<br>socket_send_line("set speed 0.10")
    For 10% you set the speed to 0.10, when you want to speed up you simply run the script again with the speed set to 1.0. 

  • matthewd92matthewd92 Founding Pro, Tactile Sensor Beta Testers Posts: 1,264 Handy
    You can actually send this in as multiple string commands as well so that you can use a variable in the structure, UR docs are here 

    var speed=0.1
    socket_send_string(“set speed”)

    The send byte line is needed so that the server mnows you are done sending jn the command in the command and execute, it’s the end of line character. 

    This would allow you to use something in the program dynamic to drive the actual speed slider such as tying it to an digital or analog input. 
Sign In or Register to comment.
Left ArrowBack to discussions page