Hello Guest it is May 17, 2024, 04:14:06 PM

Author Topic: Jog working but not step  (Read 749 times)

0 Members and 1 Guest are viewing this topic.

Jog working but not step
« on: May 02, 2024, 03:57:30 AM »
MACH3, Dell 2g machine running Windows 7, Parallel breakout and a generic 6040 router. I did have this working when I set it all up after purchasing it some 4 or 5 years ago but it has sat unloved since then. I cut a new instrument panel for my sailplane with it but now want to re-jig things so broke out the system and have been getting everything running again.

The controller breakout was replaced by a NOVUSUN ethernet unit so config was lost, I have now swapped back to the parallel HK breakout board.

JOG works. Lovely and smooth.
Generate Frequency works ... nice and smooth.

But trying to set the steps or run GCode results in stalled and noisy motors.

Break out the oscilloscope after much fiddling ....

In Jog and frequency modes the DIR signal works as expected, only reversing polarity when a change of motor direction is required.

In axis setup and GCode run the direction signal is changing on each pulse step with the result that the motors effectively stand still!

Most bizarre.

Disconnecting the DIR signal allows the motors to step ax expected but obviously with no direction control, defaulting to the drivers default direction.

Any help? ( Ireally want to go and fly this weekend with my new little electrical sub-panel in place! )
Re: Jog working but not step
« Reply #1 on: May 02, 2024, 06:26:59 AM »
Have you got the DIR polarity wrong?  Sounds like the dir signal state may be changing on the edge of the pulse signal.
Re: Jog working but not step
« Reply #2 on: May 02, 2024, 06:44:36 AM »
I don't think so. It works for jog just fine.

In Jog the signal only changes when a different direction is commanded.

In normal moves the direction signal toggles to coincide with each step pulse.
Re: Jog working but not step
« Reply #3 on: May 02, 2024, 06:46:44 AM »
Quite, but if the edges of dir and step are synchronous the driver may not respond properly.  Very easy to try, just a tick box in config.
Re: Jog working but not step
« Reply #4 on: May 02, 2024, 06:50:45 AM »
I'll go try that. Any clue on the config box to tick? :)

And any idea why it does it for moves but not for jog and frequency generate?

Re: Jog working but not step
« Reply #5 on: May 02, 2024, 06:55:25 AM »
See Figure 5.4 on page 5-3 of the manual Rev 1.84-A2.  Look at the Dir LowActive column.
Re: Jog working but not step
« Reply #6 on: May 02, 2024, 06:57:38 AM »
For jog the dir level is constant unless direction changes.  What do you mean by frequency generation?
Re: Jog working but not step
« Reply #7 on: May 02, 2024, 07:10:36 AM »
servo frequency generator. 2000 hz reverse every 2 seconds ....... X axis cycles back and forth nicely.

In G move DIR should stay the same if direction change is not required. Mine seems to be toggling at every step.
Re: Jog working but not step
« Reply #8 on: May 02, 2024, 07:12:20 AM »
Just try changing the polarity as suggested.  Can't hurt, may solve your problem.
Re: Jog working but not step
« Reply #9 on: May 02, 2024, 07:18:31 AM »
thanks. Changed dir and step polarities individually and both. All the Dir does is change direction effective when jogging but no change when moving unde program ( well the motor tones change quite a bit but thats it)

This is very similar to a very old issue I found ( 2008? ) on another forum where accelerations and speeds were suspect. Played with all of those to little effect!

Baffled as to why it works in Jog but not under control of GCODE