MS-DOS batch file

April 4, 2009 at 06:38:01
Specs: Windows XP
I want to write a batch file in MS-DOS for my project, it should be in MS-DOS, please if you can help me will be greatfull, the batch file job should be:

1-Send a string of data in ASCII or binary code or any another type, to a stepper motor driver through the serial port.

2-Wait for the stepper driver to execute that of data, till a "S" comming back from the stepper driver, and then send the next line of data again to the stepper driver, till all the file data will be sent, step by step.

Thanks for your help

See More: MS-DOS batch file

Report •

April 4, 2009 at 09:48:44
you are using the wrong tool for the job.

Unix Win32 tools | Gawk for Windows

Report •

April 4, 2009 at 11:03:07
Hard to figure how win32 tools will run in DOS, but I'll stay tuned.

If at first you don't succeed, you're about average.


Report •

April 4, 2009 at 17:01:13
Since you cannot directly address ports under a Windows environment, I would recommend an older computer running under DOS. If you want to directly control a stepper motor you might consider using the parallel port. It would be relatively easy to write the software in the BASIC language.

In #2 waiting for 'S' suggests that you already have a stepper device that has buffered input and uses a modified form of XON-XOFF flow control. In that case a modifed comm (terminal) program is what you need.

You will probably have to use a relative low baud rate on the serial port to prevent buffer overrun.

Report •

Related Solutions

Ask Question