Home› Programming
Discussion
Back to discussions page
MrTyler
Posts: 5 Apprentice
Using script stopl() |
81 views
|
Answered | |
/ Most recent by matthewd92
in Programming
|
2 comments |

in Programming
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.
Tagged:
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.
var speed=0.1
socket_open(“127.0.0.1”,30002)
socket_send_string(“set speed”)
socket_send_string(speed)
socket_send_byte(10)
socket_close()
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.