Roborun+ --> switch tab "Scripting" to tab „Run“
6 years 2 months ago #29533049
by Marc
Roborun+ --> switch tab "Scripting" to tab „Run“ was created by Marc
I’m novice….in Roborun+, i write a small script in „Scripting“ tab, the programm is running. Wenn I click on the tab „Run“ my BLDC motor do anything ….why? THANKS
Please Log in or Create an account to join the conversation.
6 years 1 month ago #29533057
by blake
Replied by blake on topic Roborun+ --> switch tab "Scripting" to tab „Run“
please share your script
Please Log in or Create an account to join the conversation.
6 years 1 month ago #29533059
by Marc
Replied by Marc on topic Roborun+ --> switch tab "Scripting" to tab „Run“
cycle:
setconfig(_MMOD, 1, 0)
setcommand(_G, 1, 100)
wait(2000)
setcommand(_G, 1, 0)
wait(2000)
setcommand(_G, 1, -100)
wait(2000)
goto cycle
setconfig(_MMOD, 1, 0)
setcommand(_G, 1, 100)
wait(2000)
setcommand(_G, 1, 0)
wait(2000)
setcommand(_G, 1, -100)
wait(2000)
goto cycle
Please Log in or Create an account to join the conversation.
6 years 1 month ago #29533076
by blake
Replied by blake on topic Roborun+ --> switch tab "Scripting" to tab „Run“
Hello Marc I apologize for the late reply.
One reason your motor may not be moving is because of the serial watchdog timer (see page 147 of our user manual). This is set to 1000ms by default, so if the controller doesn't receive a new motor command every second it will stop the motors. Your script has a wait time of 2 seconds. You can either increase or disable the watchdog, or decrease the wait time of your motor commands.
One reason your motor may not be moving is because of the serial watchdog timer (see page 147 of our user manual). This is set to 1000ms by default, so if the controller doesn't receive a new motor command every second it will stop the motors. Your script has a wait time of 2 seconds. You can either increase or disable the watchdog, or decrease the wait time of your motor commands.
Please Log in or Create an account to join the conversation.
6 years 1 month ago #29533078
by Marc
Replied by Marc on topic Roborun+ --> switch tab "Scripting" to tab „Run“
Thanks Blake for your support, I try several combination without results, increase the watchdog, disable the watchdog (0 ms)... Maybe you have another suggestion ?
(FYI, independently to my listed problem, I use Firmware V1.6 and it runs whithout bug (Installed on all my FBL2360). My "Interface script/CAN" doens't work with V1.7)
(FYI, independently to my listed problem, I use Firmware V1.6 and it runs whithout bug (Installed on all my FBL2360). My "Interface script/CAN" doens't work with V1.7)
Please Log in or Create an account to join the conversation.
5 years 11 months ago #29533206
by Erik
Replied by Erik on topic Roborun+ --> switch tab "Scripting" to tab „Run“
Mark is it fixed now? Did you try V1.7?
Please Log in or Create an account to join the conversation.
Moderators: tonysantoni
Time to create page: 0.095 seconds