Serial RS232 -Motor controller to Aduino
7 years 2 months ago #29531854
by issahmd
Serial RS232 -Motor controller to Aduino was created by issahmd
Hello everybody ,
Is it possible to send Data via serial from the controller to the arduino.Something like the position (Markers count) , batterie status , error etc.. It will be very helpfull .
Is it possible to send Data via serial from the controller to the arduino.Something like the position (Markers count) , batterie status , error etc.. It will be very helpfull .
Please Log in or Create an account to join the conversation.
7 years 2 months ago #29531862
by niko
Replied by niko on topic Serial RS232 -Motor controller to Aduino
Hello this can be done with two ways:
- Arduino sends console commands and controller sends responses.
- Write a script in controller that will send data to arduino via serial (using SCRO command to choose the output and the print command).
- Arduino sends console commands and controller sends responses.
- Write a script in controller that will send data to arduino via serial (using SCRO command to choose the output and the print command).
Please Log in or Create an account to join the conversation.
7 years 2 months ago #29531864
by issahmd
Replied by issahmd on topic Serial RS232 -Motor controller to Aduino
Hello Niko ,
Thanks for the reply.
The second solution suits me better.But , technically , i just understood that i should print the variable that i want to send via serial something like "Print("a = ", a, "\n")" .WHat's a SCRO command ??
Thanks for the reply.
The second solution suits me better.But , technically , i just understood that i should print the variable that i want to send via serial something like "Print("a = ", a, "\n")" .WHat's a SCRO command ??
Please Log in or Create an account to join the conversation.
7 years 2 months ago #29531868
by niko
Replied by niko on topic Serial RS232 -Motor controller to Aduino
SCRO command is used in order to choose the output of the print command. If you set setconfig(_SCRO, 1) then the data are going to RS232, if setconfig(_SCRO, 2) then the data are going to USB.
Please Log in or Create an account to join the conversation.
Moderators: tonysantoni
Time to create page: 0.074 seconds