Hello Guest it is March 28, 2024, 12:37:49 PM

Author Topic: Mach3 sending pulses to wrong LPT pins  (Read 4955 times)

0 Members and 1 Guest are viewing this topic.

Mach3 sending pulses to wrong LPT pins
« on: October 09, 2016, 03:29:49 AM »
I have built CNC router, just testing to move X-axis to calculate mm/full cycle.

I set X-axis port setting and "Step per" to 1 as shown in images below, so it will move one step per unit.

I run "G0 X200" to move motor one full cycle. (because most motors have 200 full steps per cycle)

I monitor the LPT port with another program.

After running this code "G0 X200", I thought it should send 200 pulses to D0 - Step pin (second LPT pin) as I set in Port Setting.

LPT monitor shows, Mach3 is sending pulses to D4 & D5 (6th & 7th pin)

Why Mach3 sending pulses to D4 & D5 (6th & 7th pin), expect it should send pulses to D0 (2nd pin)?

Please help, I'm newbie here with Mach3.
« Last Edit: October 09, 2016, 03:33:55 AM by musicworld1 »

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Mach3 sending pulses to wrong LPT pins
« Reply #1 on: October 09, 2016, 03:59:00 AM »
My guess would be that you have Max CL Mode ticked on ports and pins setup.
Re: Mach3 sending pulses to wrong LPT pins
« Reply #2 on: October 09, 2016, 04:05:51 AM »
Yes, you are right.

But what it means? In 'MaxNC Mode' section, there are to options, only 'Max CL Mode' is checked.

Should I un-check it?

What does 'Max NC-10 Wave Drive' option mean?

Thanks

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Mach3 sending pulses to wrong LPT pins
« Reply #3 on: October 09, 2016, 04:28:46 AM »
Should I un-check it?

What happened when you tried it?
Re: Mach3 sending pulses to wrong LPT pins
« Reply #4 on: October 09, 2016, 04:47:25 AM »
After unchecking it, LPT monitor shows, after running G0 X200, pin 6 & 8 keeps high and all over low.

The numbers in X-units keep changing on screen, but the through out 0-200, pin 6 & 8 keep high and all others keep low as shown in attached image.


Note: Working on Win 7.
« Last Edit: October 09, 2016, 04:57:21 AM by musicworld1 »
Re: Mach3 sending pulses to wrong LPT pins
« Reply #5 on: October 09, 2016, 05:08:04 AM »
I just want to move X-axis motor, 200 steps or 1 cycle. What should be the ideal setting.

Step pin is attached to 2nd LPT pin.

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Mach3 sending pulses to wrong LPT pins
« Reply #6 on: October 09, 2016, 05:17:43 AM »
You had MaxCL mode selected which is quadrature on two pins. At 1 step per unit at (say) a feed of 60 the signals on D4 and D5 would be changing at around 1Hz. That's well within parmon's ability to show it and well within your ability to see it.

Now you've switched MaxCL off, you're using step/dir mode. The step pulse will be on pin 2. A step pulse typically lasts around a few microseconds so there's no way parmon can show that and even if it could you wouldn't be able to see a two or three microsecond pulse.

Stop messing with parmon - it won't help you with step pulses.

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Mach3 sending pulses to wrong LPT pins
« Reply #7 on: October 09, 2016, 05:38:23 AM »
I just want to move X-axis motor, 200 steps or 1 cycle. What should be the ideal setting.

Step pin is attached to 2nd LPT pin.

Your motor should be turning fine now that you've turned off MaxCL mode. Is it?

BTW - 200 steps will only turn the motor 1 complete revolution if you are not using micro-steps. What driver do you have connected?
Re: Mach3 sending pulses to wrong LPT pins
« Reply #8 on: October 09, 2016, 11:08:21 PM »
Last time, I was just testing Mach3 with Parmon that was not right way to test.

Any way, by un-checking Max CL mode", it is working now

Thanks a lot for your guidance....

Note: I'm using L298 & L297 driver to drive bipolar stepper motor.
« Last Edit: October 09, 2016, 11:10:28 PM by musicworld1 »

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Mach3 sending pulses to wrong LPT pins
« Reply #9 on: October 10, 2016, 04:36:23 AM »
Glad you're making progress.