Hello Guest it is September 21, 2019, 10:46:22 AM

Author Topic: Mach4 Printer Port Discussions  (Read 891665 times)

0 Members and 1 Guest are viewing this topic.

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: Mach4 Printer Port Discussions
« Reply #270 on: August 10, 2014, 08:46:42 PM »
found the problem with spindle the speed sensor has to be in the correct position for it to work did not check this before as don't have this problem with M3 speed changing is still a problem

Offline Tweakie.CNC

*
  • *
  •  7,911 7,911
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Mach4 Printer Port Discussions
« Reply #271 on: August 11, 2014, 03:21:42 AM »
Quote
  Im facinated that you get 10ms early on an MCode.. thats pretty early..

Just a heads up - after more tests and  assuming the wx.MicroSleep timing is accurate the Mcode is taking effect some 50mS before the completion of the preceding line of Gcode (5 x the figure I had first thought).  :)

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: Mach4 Printer Port Discussions
« Reply #272 on: August 11, 2014, 03:38:02 AM »
art I have set everything the way you suggested the only speeds I can do is 5000rpm if the pwm is set to 50, or 29000 if its set to 10 and different speeds in-between if I change the PWM rate.
I typed in to the mdi M3S5000 all the way to M3S26000 with out a speed change.
I have changed all the settings around to different settings too I was blue in the faces with out anything working properly.
and I have to have the pulse rate set to 19000 so the balls don't turn into sand LOL.

Offline ART

*
  • *
  •  1,698 1,698
  • Tough as soggy paper.
    • View Profile
Re: Mach4 Printer Port Discussions
« Reply #273 on: August 11, 2014, 07:26:05 AM »
Danielle:

  What base frequency do you have set in Mach3 and in Darwin?
Whats the min spindle speed and max spindle speed set in Mach4?
  hmm, maybe you should post your machine.ini file here so I can take
a look to see if I see anything obvious.. PWM changes here fine, Tweaky
has been able to use it as well, so Im pretty sure the code works ok..Unless
whatever bug is crashing us is affecting things...


  Art
Re: Mach4 Printer Port Discussions
« Reply #274 on: August 11, 2014, 09:25:48 AM »
Art,

One more piece of input on the port 2 problem I've been having.  I have a probe connected to port 2 pin 11 and a spindle sensor connected to port 2 pin 9.  As I mentioned, I get no response from the probe while looking at the port setup in Darwin.  However, pin 9 does toggle with the index input and pin 11 toggles in the reverse.  So pins 9 and 11 are somehow connected but are inverted.

Just passing it along as I know that sometimes the least likely clue turns up the answer.

Thanks

Peter

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: Mach4 Printer Port Discussions
« Reply #275 on: August 11, 2014, 03:13:36 PM »
Its set to 50, min spindle is 5000 max is 26000 its a rebuild emco pc mill 30 with a g540 and super pid.
it works really well in M3.
it could be my computer causing this problem I am going to do a reinstall M4 1936 as some of the other problems I was having have disapeard it will be something simple.

Offline ART

*
  • *
  •  1,698 1,698
  • Tough as soggy paper.
    • View Profile
Re: Mach4 Printer Port Discussions
« Reply #276 on: August 11, 2014, 03:49:15 PM »
Hi:

 I tested with your numbers and found a bug, next version should drive your 50hz pwm just fine,
a bug was clipping it at only a few speeds... you should notice a big change next version.

  Steve is trying to find a race condition causing the axis to disable..

Art

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: Mach4 Printer Port Discussions
« Reply #277 on: August 11, 2014, 04:51:42 PM »
cool thanks art new it was something simple.
Re: Mach4 Printer Port Discussions
« Reply #278 on: August 11, 2014, 05:56:08 PM »
I was able to do a quick test of Mach4 1936 with Darwin 1.12 and all appears to be working well again.

GCode files are running without any issues with CPU mostly staying below 30%. I haven't noticed any issues with settings disappearing but I only had a short time to try it out. I will try to get some time to give it a better test later in the week.

Alastair

Offline ART

*
  • *
  •  1,698 1,698
  • Tough as soggy paper.
    • View Profile
Re: Mach4 Printer Port Discussions
« Reply #279 on: August 13, 2014, 10:50:46 AM »
HI All;

  New darwin version is here. You need only update the plugin and the dll. The driver shouldn't need replacing.
This should fix any settings loss.

Note:  If you use a freq spindle, or frequency output, reconfig it in Darwin, the numbers have changed to properly
   reflect actual period frequencies as oppsed to toggle frequencies. So in a charge pump entering 12500 will now
properly give you 12.5Khz. If you use a PWM spindle..say at 50hz, you need to enter 25 in the box. PWM, due to the
way the timer works needs to be set to 50% of the actual base frequency used. This is also noted on the entry screen.

  MPG's are temorarily turned off for this release.

Thx
Art