- Forum
- Roboteq Motor Controllers
- Controller Configuration & Operation
- Power ON problem with USB and analog
Power ON problem with USB and analog
7 years 7 months ago #29531080
by VRTECH
Power ON problem with USB and analog was created by VRTECH
Dear,
I use FBL2360 controler.
I want to use the controler only with analog command input.
In the final application the controler will not have a computer and no RS232 connection.
In my script i manage motor command. So the analog input is not driving directly a motor control.
In configuration parameters, the 'analog input use' is set to motor command but no motor selected (case 1 and 2 not checked).
Every thing work well when the RS232 is established with a roborun utility software.
In the command priority , i have put 1.RS232, 2.Analog, 3.none and in the software the RS232 command scrolbar are mute.
My problem : When the USB is not connected, the controler does not run after power ON.
The script is well loaded but no motor run.
When i connect the usb after power ON the controler, i see that Status say Analog mode. So it is normal. but no motor move.
I see in console that i request value on the SetCommand(_GO,1,value) so it should run.
I have changed priority order and select only one 1;Analog and other to none. But it is the same problem.
Please can you tell me what is wrong or what i must do to get the motor running with only analog input and a script that manage the motor command value?
Thank you in advance.
I use FBL2360 controler.
I want to use the controler only with analog command input.
In the final application the controler will not have a computer and no RS232 connection.
In my script i manage motor command. So the analog input is not driving directly a motor control.
In configuration parameters, the 'analog input use' is set to motor command but no motor selected (case 1 and 2 not checked).
Every thing work well when the RS232 is established with a roborun utility software.
In the command priority , i have put 1.RS232, 2.Analog, 3.none and in the software the RS232 command scrolbar are mute.
My problem : When the USB is not connected, the controler does not run after power ON.
The script is well loaded but no motor run.
When i connect the usb after power ON the controler, i see that Status say Analog mode. So it is normal. but no motor move.
I see in console that i request value on the SetCommand(_GO,1,value) so it should run.
I have changed priority order and select only one 1;Analog and other to none. But it is the same problem.
Please can you tell me what is wrong or what i must do to get the motor running with only analog input and a script that manage the motor command value?
Thank you in advance.
Please Log in or Create an account to join the conversation.
7 years 7 months ago #29531081
by TechSupport
Replied by TechSupport on topic Power ON problem with USB and analog
USB is not a robust communication setting so it will drop when you drive the motors.
Since you made analog first priory, it ignores all serial commands.
You should leave serial as first priority and make analog second priority. If you are connected to Roborun+ in the run tab, you select the mute checkbox to the left of the slider and that will mute the serial and move to next priority.
Since you made analog first priory, it ignores all serial commands.
You should leave serial as first priority and make analog second priority. If you are connected to Roborun+ in the run tab, you select the mute checkbox to the left of the slider and that will mute the serial and move to next priority.
Please Log in or Create an account to join the conversation.
7 years 7 months ago #29531082
by VRTECH
Replied by VRTECH on topic Power ON problem with USB and analog
Ok that is what is set from the begining.
When USB RS232 is connected and slider muted. All is working well.
I trun OFF power and then restart, every thing is ok.
Then i turn OFF and remove the USB port. Then i restart, nothing is workng.
Then i connect the USB port and i see that the controler is in analog mode.
In the console i see that i put my order to command but nothing move
Do you have another idea ? what wrong or what must i do ? maybe by script ?
When USB RS232 is connected and slider muted. All is working well.
I trun OFF power and then restart, every thing is ok.
Then i turn OFF and remove the USB port. Then i restart, nothing is workng.
Then i connect the USB port and i see that the controler is in analog mode.
In the console i see that i put my order to command but nothing move
Do you have another idea ? what wrong or what must i do ? maybe by script ?
Please Log in or Create an account to join the conversation.
7 years 7 months ago #29531084
by TechSupport
Replied by TechSupport on topic Power ON problem with USB and analog
You're analog input has to be centered upon power up everytime, otherwise it doesn't set it as active ready.
Please Log in or Create an account to join the conversation.
7 years 7 months ago #29531085
by VRTECH
Replied by VRTECH on topic Power ON problem with USB and analog
OK i have already check this.
In configuration parameters i have tried with Analog centered enable and disable in safety analog.
But nothing change.
In my script i also verify that analog are centered
And my script is running so verifying by script is also made and good.
Print("INITIALISATION : EN ATTENTE DU CENTRAGE DES COMMANDES ANALOGIQUES\n")
Do While Ana1 <> A1Ctr
Ana1=GetValue(_ANAIN, 2)
'Print("ANA1 NON CENTRE :", Ana1 ,"\n")
wait(200)
Loop
Print("COMMANDE ANALOGIQUE 1 : OK ... \n")
'Verification du centrage de la commande analogique AN3
Do While Ana2 <> A2Ctr
Ana2=GetValue(_ANAIN, 3)
wait(200)
Loop
Print("COMMANDE ANALOGIQUE 2 : OK ... \n")
So i do not know why nothing move when analog only is connected.
In configuration parameters i have tried with Analog centered enable and disable in safety analog.
But nothing change.
In my script i also verify that analog are centered
And my script is running so verifying by script is also made and good.
Print("INITIALISATION : EN ATTENTE DU CENTRAGE DES COMMANDES ANALOGIQUES\n")
Do While Ana1 <> A1Ctr
Ana1=GetValue(_ANAIN, 2)
'Print("ANA1 NON CENTRE :", Ana1 ,"\n")
wait(200)
Loop
Print("COMMANDE ANALOGIQUE 1 : OK ... \n")
'Verification du centrage de la commande analogique AN3
Do While Ana2 <> A2Ctr
Ana2=GetValue(_ANAIN, 3)
wait(200)
Loop
Print("COMMANDE ANALOGIQUE 2 : OK ... \n")
So i do not know why nothing move when analog only is connected.
Please Log in or Create an account to join the conversation.
7 years 7 months ago #29531086
by TechSupport
Replied by TechSupport on topic Power ON problem with USB and analog
Is your script set to auto start upon power up?
Please Log in or Create an account to join the conversation.
7 years 7 months ago #29531087
by VRTECH
Yes the script is auto start : enable.
Event if safety analog is disable/enable that is the same.
After power ON and nothing move, i connect the usb port.
So i see that the controlleris in analog mode.
In console i see message from my script.
It say what is the command applied to motor.
but nothing move....
Replied by VRTECH on topic Power ON problem with USB and analog
TechSupport wrote: Is your script set to auto start upon power up?
Yes the script is auto start : enable.
Event if safety analog is disable/enable that is the same.
After power ON and nothing move, i connect the usb port.
So i see that the controlleris in analog mode.
In console i see message from my script.
It say what is the command applied to motor.
but nothing move....
Please Log in or Create an account to join the conversation.
7 years 7 months ago #29531088
by TechSupport
Replied by TechSupport on topic Power ON problem with USB and analog
Please download and run teamviewer.
Send id and password to This email address is being protected from spambots. You need JavaScript enabled to view it.
I can then see what is happening from your computer screen. Settings and script stuff.
Send id and password to This email address is being protected from spambots. You need JavaScript enabled to view it.
I can then see what is happening from your computer screen. Settings and script stuff.
Please Log in or Create an account to join the conversation.
7 years 6 months ago #29531197
by VRTECH
Replied by VRTECH on topic Power ON problem with USB and analog
Dear Tech support,
I come back today to tell you that i have resolved my problem.
First sorry for no answer since few days, but no internet connexion on the pc with use roborun soft. So it was not possible to continue by your way.
I think that i have resolve the problem by making a better script.
Like for other language, event if variables are set to Zero at init, it is very important to start the script by declaring variables type and values of ALL variables used in the script.
And also to take care in the initialsaion situation that the script is not in a dedicated action that unable motor to be control.
I hope that it will help some beginer developper in roboteq script to make good script.
Your controler is very good.
Best regards
I come back today to tell you that i have resolved my problem.
First sorry for no answer since few days, but no internet connexion on the pc with use roborun soft. So it was not possible to continue by your way.
I think that i have resolve the problem by making a better script.
Like for other language, event if variables are set to Zero at init, it is very important to start the script by declaring variables type and values of ALL variables used in the script.
And also to take care in the initialsaion situation that the script is not in a dedicated action that unable motor to be control.
I hope that it will help some beginer developper in roboteq script to make good script.
Your controler is very good.
Best regards
Please Log in or Create an account to join the conversation.
Moderators: tonysantoni
- Forum
- Roboteq Motor Controllers
- Controller Configuration & Operation
- Power ON problem with USB and analog
Time to create page: 0.090 seconds