Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

steppper motor control via RS232

hii

 

i am new to this stepper motor controlss section.

i am using vaccum compatible stepper motor .. the whole manual of this is ayyached alongwith..and the program made by

me is also attached along with..i had run the other stepper motor with the same code..i do not know where is the problem..

 

please help me..

thanks

do not hesitate to give kudosSmiley Happy
0 Kudos
Message 1 of 8
(6,843 Views)

sorry forgot to attach the files...

now here these are.

thanks

do not hesitate to give kudosSmiley Happy
Download All
0 Kudos
Message 2 of 8
(6,842 Views)

Hey Sahil,

 

Thanks for posting on the forums. Hopefully this was the thread you were referring to in the Engineer Awesome ni.com/community group discussion. Sorry that you did not receive any feedback from your issue, that is fairly rare.

 

Anyway, in regards to the issue at hand. The fact that you are using a stepper motor is not as significant as the fact that you are communicating to your instrument (in this case I would image that it is your motor controller/drive) via RS232. I hate to point you to another resource, but the instrument control forum may be the most appropriate location for your query.

 

In the Engineer Awesome discussion, you mentioned that you were able to control the device through a third party application but you were having trouble doing so in LabVIEW. My first reaction after looking at your code is termination characters. Does your controller expect any sort of termination character? Also, are you sure that you are sending the same commands via LabVIEW as you are in the third party application? If you use a port sniffer application to monitor the traffic over your RS 232 connection when your third party application is running and compare that to when your LabVIEW code is running (you could use NI SPY for this when you are using NI VISA), how do the two situations compare.

 

If I had to guess, I would think that you are not sending commands/termination characters to your instrument that it is expecting.

 

Lastly, a more detailed description of what your issue is, what you have tried, and what is and isn't working would really help everyone understand what is going on and how to help. As it is, it is unclear what the issue is or what you are trying to accomplish.

Hope this helps.
-Ben

WaterlooLabs
0 Kudos
Message 3 of 8
(6,719 Views)

hii Ben

 


If you use a port sniffer application to monitor the traffic over your RS 232 connection when your third party application is running

 


please tell me how can i monitor my RS232 connection when third party application is running.

 

as we can monitor RS232 connection by NI Spy only when NI software is running.

please tell me.

 

 

 

thanks

do not hesitate to give kudosSmiley Happy
0 Kudos
Message 4 of 8
(6,707 Views)

Hey Sahil,

 

NI Spy keeps track of any NI VISA calls you make. This is why you can monitor the calls to your device from NI software. A serial port monitor is not really something new, there are plenty of offerings if you do a simple Google search for 'serial port monitor'. The goal of this serial port monitor is to see what your third party software that seems to be working is sending to your device; then comparing that to what you LabVIEW code is sending to your device. 

 

I do not have a lot of experience actually using any serial port monitoring software, so I am not sure that I can recommend any specific serial port monitoring software; however, here is one example: Serial Port Monitor.

Hope this helps.
-Ben

WaterlooLabs
0 Kudos
Message 5 of 8
(6,699 Views)

hiii BEN

 

thanks for yours help ... i am now able to run the stepper motor....

the problem was simple ...

here i will say that analysing the actual problem is  half the race won.....

once again i will say that i am too much thankful to you and also waterloo labs.

thanks

do not hesitate to give kudosSmiley Happy
0 Kudos
Message 6 of 8
(6,647 Views)

hi sahil 

I have same problem . would you please say what was the problem ? 

 

Best REgards 

Mehdi

0 Kudos
Message 7 of 8
(5,904 Views)

Hi Sahil and Mehdi,

 

I have exactly the same problem with the same dual stepper motor drive (SMD2).

I'd be most grateful if you could share with me how you resolved the problem.

 

Best regards.

0 Kudos
Message 8 of 8
(4,927 Views)