How can I write a MS DOS program for serial communication with a stepper driver?

AI Thread Summary
The discussion centers on writing a program in MS-DOS to facilitate serial communication with a stepper driver using data from a CSV file. The user seeks to send a stream of 7 bits to the driver and wait for feedback before sending additional data, specifically for three stepper drivers. It is clarified that the stepper driver operates on waveforms rather than direct serial control, and the user is running Windows XP. Suggestions include using a console program rather than a traditional MS-DOS program, with recommendations for libraries and resources to assist in development. Understanding the specific hardware and communication requirements is essential for successful implementation.
gimini75
Messages
50
Reaction score
0
Hi and thanks for your help

I have a table in Excel spreadsheet which is containing data to motor through a stepper driver I can convert this spreadshhet by save as CSV file, the problem I have know is to write a programme in MS DOS throgh windows to send this CSV file to the serial port and wait for the feedback from the stepper driver to come back and then another 4 pice of stream data because the stepper driver does not have hand shacking, can you please help me how to write this programme in MS DOS, really Iam not familier with MS DOS programming and serial communication?



Thanks for your help
 
Physics news on Phys.org
Your question is a little ill-defined.

Hardware-wise, is your stepper driver meant to be controlled with a serial port, or does it just take in waveforms to control the firing of the coils?

Software-wise, do you actually have a Windows 3.1 / DOS setup? Or do you run something like XP, and mean that you need to write some kind of software (a console--i.e. non-GUI--program) to control the stepper driver?

If you answer these, we may or may not be able to help you. Posting links to the hardware in question would also help.
 
Thank you very much for your help

Really the stepper driver will not be controlled by the serial port it just take in waveforms to control the firing of the coils? for the software I will run Windows XP and I need to writ a programme in MS-DOS after I run (cmd), the programme should send a stream of 7 bites each time to the stepper driver an wait for the driver feedback and send after another 7 bites to it till all the required bites will be send in this way to stepper drive actually it will be 3 stepper drivers (X, Y, Z), that's the jobe of the programme which I have to write it?



Thanks for your help
 
gimini75 said:
Really the stepper driver will not be controlled by the serial port it just take in waveforms to control the firing of the coils?

Well, it really depends on what you're using as a stepper driver (and you *are* using a stepper driver, yes? A serial port will not supply enough current to drive a stepper motor). If you were using something like the following, you could control it with a serial port (and now you'll need to find out if you have unipolar or bipolar):
http://store.qkits.com/moreinfo.cfm/KT-5197A
http://www.active-robots.com/products/motorcon/ (scroll to the bottom of the page)

More on stepper motors, and stepper motor control in general:
http://www.cs.uiowa.edu/~jones/step/

gimini75 said:
for the software I will run Windows XP and I need to writ a programme in MS-DOS after I run (cmd), the programme should send a stream of 7 bites each time to the stepper driver an wait for the driver feedback and send after another 7 bites to it till all the required bites will be send in this way to stepper drive actually it will be 3 stepper drivers (X, Y, Z), that's the jobe of the programme which I have to write it?

Thanks for your help

You are *NOT* writing a MS-DOS program, but rather a console program (one that doesn't have a user interface, like most Windows programs, and just pops up the text black and white DOS-like window). This wouldn't be too hard (with, say, Microsoft Visual C++ Express). You could quite easily read in a csv file and slowly spit out the bytes in the fashion you describe. But you'd need to do a fair bit of reading, and probably find a library or few.
 
Hi

Thanks for your reply

Iam using a different power supply for the stepper motor and the stepper motor unipolar?
 
Thread 'Have I solved this structural engineering equation correctly?'
Hi all, I have a structural engineering book from 1979. I am trying to follow it as best as I can. I have come to a formula that calculates the rotations in radians at the rigid joint that requires an iterative procedure. This equation comes in the form of: $$ x_i = \frac {Q_ih_i + Q_{i+1}h_{i+1}}{4K} + \frac {C}{K}x_{i-1} + \frac {C}{K}x_{i+1} $$ Where: ## Q ## is the horizontal storey shear ## h ## is the storey height ## K = (6G_i + C_i + C_{i+1}) ## ## G = \frac {I_g}{h} ## ## C...
Back
Top