- Forum
- Roboteq Motor Controllers
- PC Software
- Interfacing the AX2500 via RS232 and Microsoft visual c++
Interfacing the AX2500 via RS232 and Microsoft visual c++
- gadaga
- Topic Author
17 years 6 months ago #7371578
by gadaga
Interfacing the AX2500 via RS232 and Microsoft visual c++ was created by gadaga
<P style="MARGIN: 0px">Hi,
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">Just bought the AX2500 and I intend to use it via my PC's serial port running visual c++ V6.0 code.
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">Is there any comprehensive SW package or library existing to directly control the AX2500 over RS232 ? or (if not) a comprehensive C++ RS232 library ?
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">I would be very greatfull for any links of code
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">Just bought the AX2500 and I intend to use it via my PC's serial port running visual c++ V6.0 code.
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">Is there any comprehensive SW package or library existing to directly control the AX2500 over RS232 ? or (if not) a comprehensive C++ RS232 library ?
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">I would be very greatfull for any links of code
Please Log in or Create an account to join the conversation.
- gadaga
- Topic Author
17 years 5 months ago #7459064
by gadaga
Any help from anyone ? Would be very much appreciated.......
Replied by gadaga on topic Re:Interfacing the AX2500 via RS232 and Microsoft visual c++
Any help from anyone ? Would be very much appreciated.......
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 22
- Thank you received: 0
17 years 5 months ago #7464861
by tonysantoni
Robotony
Replied by tonysantoni on topic Re:Interfacing the AX2500 via RS232 and Microsoft visual c++
<P style="MARGIN: 0px">Hello
<P style="MARGIN: 0px">I do not have Visual C++ 6.0 but I have 'Visual C++.Net 2003'. The two should work more or less the same way.
<P style="MARGIN: 0px">In 'Visual C++.Net' you would use a MFC component called 'MSComm32.OCX' which handles the RS232 port.
<P style="MARGIN: 0px">Check if you have it in your toolbox.
<P style="MARGIN: 0px">If you don't, you can add it. You go into the screen Tools>Add/Remove Toolbox Items and click the tab COM_Components. Select the item 'Microsoft Communication control' and then the toolbox will show it shaped like a little telephone.
<P style="MARGIN: 0px">In case you do not have the component itself, you can download it from the Microsoft site. Start from:
<P style="MARGIN: 0px">
<P style="MARGIN: 0px"><A href="msdn.microsoft.com/library/default.asp?u...8/dt_vbobjComm_P.asp" target=_blank>msdn.microsoft.com/library/default.asp?u...8/dt_vbobjComm_P.asp
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">
If you have problems let me know and I will e-mail it to you. As far as the actual code, I have a demo application which runs the Roboteq controller. It would be useful to you probably only if you can use VC++.Net
<P style="MARGIN: 0px">There is a lot of code which is automatically generated, which probably would not run in VC++ 6.0
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">Let me know if you want it. It needs a little cleaning, otherwise it runs.
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">Tks
<P style="MARGIN: 0px">Tony
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">Tony
<P style="MARGIN: 0px">Roboteq
<P style="MARGIN: 0px">I do not have Visual C++ 6.0 but I have 'Visual C++.Net 2003'. The two should work more or less the same way.
<P style="MARGIN: 0px">In 'Visual C++.Net' you would use a MFC component called 'MSComm32.OCX' which handles the RS232 port.
<P style="MARGIN: 0px">Check if you have it in your toolbox.
<P style="MARGIN: 0px">If you don't, you can add it. You go into the screen Tools>Add/Remove Toolbox Items and click the tab COM_Components. Select the item 'Microsoft Communication control' and then the toolbox will show it shaped like a little telephone.
<P style="MARGIN: 0px">In case you do not have the component itself, you can download it from the Microsoft site. Start from:
<P style="MARGIN: 0px">
<P style="MARGIN: 0px"><A href="msdn.microsoft.com/library/default.asp?u...8/dt_vbobjComm_P.asp" target=_blank>msdn.microsoft.com/library/default.asp?u...8/dt_vbobjComm_P.asp
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">
If you have problems let me know and I will e-mail it to you. As far as the actual code, I have a demo application which runs the Roboteq controller. It would be useful to you probably only if you can use VC++.Net
<P style="MARGIN: 0px">There is a lot of code which is automatically generated, which probably would not run in VC++ 6.0
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">Let me know if you want it. It needs a little cleaning, otherwise it runs.
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">Tks
<P style="MARGIN: 0px">Tony
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">Tony
<P style="MARGIN: 0px">Roboteq
Robotony
Please Log in or Create an account to join the conversation.
- gadaga
- Topic Author
17 years 5 months ago #7468460
by gadaga
Replied by gadaga on topic Re:Interfacing the AX2500 via RS232 and Microsoft visual c++
Hi Tony,
Sorry for getting a bit imparient... Once I've rceived the controller I was so much looking forward using it... Sofar however no luck when using c++. With the terminal application it runs like a charm btw. For information : the Roborun application I can'nt get to work changed the port to COM 3 and set that port up as requested bus it recognises the controller but that's all. No version displayed etc....
For c++ yes please I am very interested. Especially two questions :
-How to decrare the strings, what kind of variable.... "!A44" or "!A44
" or anything else ?
- is it necesarry to receive controller sent data or is just sending enough ? Maybe if I don't read what the controller sends its buffer will overflow ?
- Yes please send the code you have to me. I'll send you a mail
Thanks a lot
Sorry for getting a bit imparient... Once I've rceived the controller I was so much looking forward using it... Sofar however no luck when using c++. With the terminal application it runs like a charm btw. For information : the Roborun application I can'nt get to work changed the port to COM 3 and set that port up as requested bus it recognises the controller but that's all. No version displayed etc....
For c++ yes please I am very interested. Especially two questions :
-How to decrare the strings, what kind of variable.... "!A44" or "!A44
" or anything else ?
- is it necesarry to receive controller sent data or is just sending enough ? Maybe if I don't read what the controller sends its buffer will overflow ?
- Yes please send the code you have to me. I'll send you a mail
Thanks a lot
Please Log in or Create an account to join the conversation.
Moderators: tonysantoni
- Forum
- Roboteq Motor Controllers
- PC Software
- Interfacing the AX2500 via RS232 and Microsoft visual c++
Time to create page: 0.059 seconds