Forum Header

Mach3 XML and Stepconfig issues.

More
9 years 6 months ago #92062 by Todd Zuercher
Well, you do what works. The stepgen type 0 produces a pulse that is always the same length (set by stepgen.N.steplen). Stepgen type 2 produces a pulses whose length equals 1/2 the frequency. We still don't know for sure what the pulse that Mach3 generates looks like. (Until you scope it.)

The last few posts between you and Andy seemed to imply that you were having trouble setting up and getting the stepgen type 2 phase-A signal to work. That is why I posted the hal file I used to show that signal in my last post.

But according to your Mach3 set up screen it should be the type 0 with a step length of 5000 (or maybe its inverse) That is why I suggested going back to that with the settings I suggested in my previous post. (Nice and confusing huh? If you under stand all this your probably smarter than me.)

Please Log in to join the conversation.

More
9 years 6 months ago #92063 by tecno
"But according to your Mach3 set up screen it should be the type 0 with a step length of 5000 (or maybe its inverse) "

And that did not work either way inversed or not. Quad pulses no better either. Still as a bad two-stroke.

So I have to take down my scope and look how the signal from Mach looks like.

Please Log in to join the conversation.

More
9 years 6 months ago #92064 by Todd Zuercher
At this point I think that is the only way to be certain what exactly is going on. Use the "real" scope to see just what Mach is doing. Then set up Linuxcnc to replicate that. Then use the "real" scope to confirm that Linuxcnc is actually doing what you configured it to. If Linuxcnc isn't doing what it is configured to then something isn't configured right, there is a big latency problem, or you've found a rather nasty bug.

Please Log in to join the conversation.

More
9 years 6 months ago #92065 by Todd Zuercher
I wonder if maybe there might possibly be something goofy going on with your chargepump causing this output or maybe all of them.to pulse. Is there a way that you can check to see if the outputs on your breakout board stay on steady when it is set to a constant true value while Linuxcnc is powering the chargepump?

Please Log in to join the conversation.

More
9 years 6 months ago #92072 by tecno
Something is fishy that is for sure.

Attachment not found


Mach3 out = 1µs sweep = 5µs pulse as set in Mach3

Attachment not found


LCNC delivers with 1ms sweep a pulse of 2.75ms or something like that.

Attachment not found



Input is set to 1V/div

Please Log in to join the conversation.

More
9 years 6 months ago #92075 by tecno
Above is with 250000 steplen so it figures, but shorter and spindle will not start.
Will go down after dinner and test stepping down until there is no spindle starting.

Tested with 2500 and nothing

Obviously I am missing something here

Please Log in to join the conversation.

More
9 years 6 months ago #92081 by andypugh
Is the parport output voltage actually higher with Mach3?

Some parports have a stronger drive in EPP mode. Perhaps Mach3 forces this mode?

I think we would currently be expecting a longer pulse in LinuxCNC if you are still in quadrature mode.

Can you compare the pulses-per-screen on a longer timebase at the same spindle speed with both configs?

On a long timebase, does the LinuxCNC output look steady, or is it visibly pulsing?

Please Log in to join the conversation.

More
9 years 6 months ago #92084 by tecno
Testing in 0,0,0
Now I have set steplen to 5000 and I can start spindle BUT it takes for ever about 35 to push the plus sign before spindle starts. Scope says 30mikro s and not 5.
Now also I have smooth spindle rotation.

How to get spindle starting earlier and why not working in MDI?

Please Log in to join the conversation.

More
9 years 6 months ago #92086 by tecno
Position scale did the trick but still no MDI

Please Log in to join the conversation.

More
9 years 6 months ago #92088 by tecno
Doh, homing axis now MDI works

Please Log in to join the conversation.

Time to create page: 0.092 seconds
Powered by Kunena Forum