Running CNC machine with stepper motors - will this work wit
Moderator: Moderator Team
Running CNC machine with stepper motors - will this work wit
I developed software for running XYZ cnc machine (like plotter) through parallel port. We use stepper motors to drive machine.
Software work fine on win98 and win2000, but with WinXP machine movement are not so smooth like win98 or win2000.
M$FT is not supporting win98 and we are having problems to find computers.
Now we use used computer with win98 on it. But what in the future??
Why it dosenot work with winXP and will it work with REACTOS?
I guess WinXP is doing something 20 times a second, and that is what make problems for smooth running.
Software work fine on win98 and win2000, but with WinXP machine movement are not so smooth like win98 or win2000.
M$FT is not supporting win98 and we are having problems to find computers.
Now we use used computer with win98 on it. But what in the future??
Why it dosenot work with winXP and will it work with REACTOS?
I guess WinXP is doing something 20 times a second, and that is what make problems for smooth running.
It is an application
I use inpout32.dll to read a write to paralell port:
http://logix4u.net/Legacy_Ports/Parallel_Port.html
But something else must be a problem. I dont know much about OS.
For moving stepper motor throug printer port timing is important, and I guess some XP processes in the background is making problems.
It works fine and smooth with 98 and win2000 but with XP it works but it is not smooth
http://logix4u.net/Legacy_Ports/Parallel_Port.html
But something else must be a problem. I dont know much about OS.
For moving stepper motor throug printer port timing is important, and I guess some XP processes in the background is making problems.
It works fine and smooth with 98 and win2000 but with XP it works but it is not smooth
By callingGreatLord wrote:windows nt parellport have a delay buildin to 10ms
I have not my self found a way around it in user mode apps. only with a kmode drv.
timeBeginPeriod(1);
you can get the timer down to 1ms (depends on motherboard though).
Use
TIMECAPS resolution;
timeGetDevCaps(&resolution, sizeof (TIMECAPS));
to check.
side effects
This has a number of side effects - it increases the responsiveness of the system to periodic events (when event timeouts occur at a higher resolution, they expire closer to their intended time). But that increased responsiveness comes at a cost - since the system scheduler is running more often, the system spends more time scheduling tasks, context switching, etc. This can ultimately reduce overall system performance, since every clock cycle the system is processing "system stuff" is a clock cycle that isn't being spent running your application. For some multimedia applications (video, for example) the increased system responsiveness is worth the system overhead (for instance, if you're interested in very low latency audio or video, you need the system timers to run at a high frequency).
============================================
MY PROGRAM WORKS FINE ON WIN2000 - PROBLEM IS WITH WINXP
I will stick to win2000 (gave up fixing problem with XP)
JUST wondering how it will work with REACTOS.
REACTOS is not RTOS,
============================================
MY PROGRAM WORKS FINE ON WIN2000 - PROBLEM IS WITH WINXP
I will stick to win2000 (gave up fixing problem with XP)
JUST wondering how it will work with REACTOS.
REACTOS is not RTOS,
Re: side effects
The side effects you quoted sound quite scary when indeed I did not find them to be that noticeable (or did you set the process priority up too?). I used this little trick in production test software to speed up the I2C programming (test time = $).cnccnc wrote:This has a number of side effects (...)
If 2000 works I'd also suggest not bothering with XP.
Since the reasons for the problem is still a mystery, no-one can tell, the best answer will come from testing it yourself. and btw I should imagine that 'rtos' is one of many abbreviations for reactos, no harm in that.JUST wondering how it will work with REACTOS.
REACTOS is not RTOS,
Working on the assumption that it's something in the background interfering I suppose you've tried shutting down as many of the background services as you can and seeing if you can isolate a particular daemon, sorry "service" :p that might be causing the problem.
Another thing, if your program is doing anything that might invoke a compatibility shim, then that might do spooky stuff, but I don't know anything about that, so it's a stab in the dark.
If none of the above then that'd probably be a systematic problem with XP, and being closed source then there's nought you can do about it, enjoy.
PS: It would be interesting if the problem is present in Vista, I would bet on it.
I will be OK for next few years
I will be OK for next few years cause it will be easy to find PC with WIN2000.
M$FT will support win 2000 till 2010. What I can do after? Can I legally make a copies of software that is not supported.
I am willing to pay, that is not a problem, but they are not selling.
And my business depends on it!
========================================
I started to develop external board with PIC processor so I will comunicate throuh USB, but all timing will be outside of the PC ...
But, anyway it is a question for REACTOS team. Can you make it works RTOS (Real Time OS) like WINCE or WINXP embedded. It is important.
Motion control, robotics need that!
http://www.kickas88smachinesinc.com/photose.htm
Copy and paste link but remove 88
M$FT will support win 2000 till 2010. What I can do after? Can I legally make a copies of software that is not supported.
I am willing to pay, that is not a problem, but they are not selling.
And my business depends on it!
========================================
I started to develop external board with PIC processor so I will comunicate throuh USB, but all timing will be outside of the PC ...
But, anyway it is a question for REACTOS team. Can you make it works RTOS (Real Time OS) like WINCE or WINXP embedded. It is important.
Motion control, robotics need that!
http://www.kickas88smachinesinc.com/photose.htm
Copy and paste link but remove 88
CNC, I'm currently doing some drafting on the side and iv gone out of the way to install Reactos on our plotter so that we can free up a 2000 license for one of our drafting boxes. The plotter has its own server software and side pc. If you have a net bassed plotter you should have no problem. Just install the software that came with the plotter into reactOS. Personaly our server is more stable since the switch. It used to crash all the time dew to crossed packets on the network. Its poorly poorly coded, but I dont have the strength to try and install linux on the dam thing and rewrite the server. So for now reactOS will do just fine.
I need to find a legal way of getting Autocad to run on ReactOS. Sigh! So I can burn my NT 2000 Licenses.
Dam corporations that don't support Linux!!!
P.S. You don't happen to work for John Crane By chance do you?
I need to find a legal way of getting Autocad to run on ReactOS. Sigh! So I can burn my NT 2000 Licenses.
Dam corporations that don't support Linux!!!
P.S. You don't happen to work for John Crane By chance do you?
Who is online
Users browsing this forum: No registered users and 45 guests