Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Mc2 on July 02, 2013, 07:15:49 PM

Title: Brains and MPG from CNC4pc.
Post by: Mc2 on July 02, 2013, 07:15:49 PM
I have had my MPG for a few years now and set it aside when I could not get my MPG to work like they should. I used the brains examples provided by CNC4PC and was not happy. I recently dug it back out and attached it to my Smooth Stepper ESS and got it working again. I am much more familiar with brains now and fixed a few issues I was having. First of all I used the inputs from the MPG to drive continues on off timers that pulsed on and off every second. This fixes a possible read of an oem button getting activated. If Mach misses the signal the first time, it comes back within the next second or two. This completely fixed that bug. The next issue that I have is that when I am in MPG mode motion is too choppy at lower speeds or multiple single steps. I have tried using both step and muti step and both are too choppy. Can anyone give me any hits on how to smooth this out? I was wondering if it would be possible to play with ACC/Dec temporarily while the MPG is on.

Any information would be great.

By the way, in its current state this MPG is tons better than any pendant that runs through a keyboard interface.

Jim.
Title: Re: Brains and MPG from CNC4pc.
Post by: HimyKabibble on July 02, 2013, 08:35:49 PM
Not sure why you're using brains at all to make an MPG work - wire it directly to two input pins, and configure those pins as MPG inputs, and Mach3 will take care of the rest.

Regards,
Ray L.
Title: Re: Brains and MPG from CNC4pc.
Post by: Mc2 on July 03, 2013, 08:19:09 AM
Well that, I have not tried. The reason brains is in play here is that it performs a few functions. This MPG pendant has selector switches for axis selection and increment sizes. I will give your way a shot however I am sure that I will revert back to brains to control the MPG switches. This is faster and easier than bringing up the MPG screen and selecting the function.

Thanks, Jim.
Title: Re: Brains and MPG from CNC4pc.
Post by: mvoros on September 01, 2013, 04:34:11 PM
Hi Mc2,
I too have an MPG2 from CNC4PC, but for the love of God can't get the increment selector to work on it The brain that he supplied doesn’t address that function. Could you share your revised brain with me? Other than this, I'm using the MPG.
Mike
Title: Re: Brains and MPG from CNC4pc.
Post by: bevins on September 27, 2013, 08:11:17 PM
I also have purchased the MPG2 and C22 from CNC4PC and it is not working.

I think it is the brains. It shows it is selecting it in Mach3 but it does nothing. I am talking about the X1, X10, X100 switch. NEver changes even though I am doing exactly what he says in his documentation. ALso the X axis not working. The light does not even come on, so this maybe a hardware issue with the C22.

Slower speeds is choppy. I tested the pinouts fom the mpg and they are just fine. Really frustrating.
Title: Re: Brains and MPG from CNC4pc.
Post by: poppabear on September 29, 2013, 08:51:20 PM
see the plugins thread, and try the beta MPG plugin for CNC4PC pendants....
Title: Re: Brains and MPG from CNC4pc.
Post by: bevins on September 29, 2013, 10:43:35 PM
see the plugins thread, and try the beta MPG plugin for CNC4PC pendants....

Sorry, but I cannot find a plugins thread that deals with cnc4pc mpg.

What plugins thread are you speaking of?
Title: Re: Brains and MPG from CNC4pc.
Post by: bevins on September 29, 2013, 11:09:25 PM
I found it and installed it. It works except the switch for X1, X10 and X100 doesnt  work. Need the different  speeds.
Title: Re: Brains and MPG from CNC4pc.
Post by: poppabear on October 04, 2013, 03:16:34 PM
Ok, download the new plugin from the plugins section...
It is all working here, but you try it and if you don't mind, answer on the plugins area section under the plugin thread for it.

scott
Title: Re: Brains and MPG from CNC4pc.
Post by: poppabear on October 06, 2013, 11:17:03 AM
Ok, the release version of the plugin is in the "Finished" Plugin thread.

The Zip file has the "MPG4_6v3.m3P" installer, and a ReadMe 1st file (and yes, it should
be read first........)

Fixed a bug, for the FS/SS ovr, in where the 4th axis would move if it was enabled.

Everything is working on my 6 axis pendant (using all functions).
NOTE: If you have ANY Brains or Macro-pumps, or cyclic Macros that are using the same input/output that this plugin is using, your going to have issues. Turn off/disable any thing
else that may be running.  NOTE: For diagnosing your pendant to see if you have the correct function going to the correct input/output pin on your pendant. Download and install my "Map All I/O" plugin, and look on it's diagnostic page. You will see ULEDS that are tied to I/O that normally does not have an OEM ULED, (like the pendants here use).

IF your using an ESS (I am here), I Had to set the MPG De-bounce to 1.0, to get a read, but it will still miss "ticks" on the MPG.

Scott
Title: Re: Brains and MPG from CNC4pc.
Post by: bevins on October 06, 2013, 11:23:52 AM
I thought I replied already. I verified the pinouts of the mpg and they are correct. The brain works with the exception of the X1,X10,x100.

Your plugin works also with the exception of the X1,X10,X100.

I can see I am hitting the correct pins in mach3 when switching X1,X10,X100 so it is getting into mach3 but mach is not doing anything with it with the brains or with th plugin.
Title: Re: Brains and MPG from CNC4pc.
Post by: poppabear on October 06, 2013, 11:58:59 AM
Humm, look on the "General Config" page, and MAKE sure you have values in the 1st three boxes, these boxes is what the X1-100 selector is pulling from. If they have NO value in them, then........  if you still NOT getting, that, then READ the read me 1st that I just posted inside the MPG4 6 version 3 plugin, and MAKE sure your using the SAME OEMtriggers for those functions.....  If it still doesn't work for you then I don't know what to tell you. It is working here, with both my 4 axis and 6 axis pendants (two different pendants from cnc4pc).

Arturo, of CNC4PC also has this working at his shop on those same kind of pendants.

So, that leads me to believe, you have an error in your set up, or hardware issue.
Perhaps worse case, your XML is corrupted, you could at most do a reinstall/ or build another profile and try again.

NOTE: I have looked at the finished plugin and see NO downloads, so you are not running version 3.0
here is the direct link for that:

http://www.machsupport.com/forum/index.php/topic,25596.msg180450.html#msg180450

Scott
Title: Re: Brains and MPG from CNC4pc.
Post by: bevins on October 06, 2013, 03:25:50 PM
Hi Scott,

OK, I loaded the latest version and it still does the same thing. I loaded your I/O test, and the switches are hitting the correct OEM triggers, but nothing is happening.

I am in velocity mode and hoping it works in velocity mode where speed depends on the rate you are turning the mpg. Is this how it works?

I am stumped, other than to say I am using the blue screen set, shouldnt make a diff I wouldnt think. I will try the default screen set.

My machine is running and making parts so I dont want to do a new profile and start over. I did backup the Mach3 directory in case.
Title: Re: Brains and MPG from CNC4pc.
Post by: bevins on October 06, 2013, 03:29:02 PM
Not working with the screenset from the ALL I/O plugin.
Title: Re: Brains and MPG from CNC4pc.
Post by: poppabear on October 06, 2013, 06:52:20 PM
Then, I have no clue what to tell you, it is all working here, and Arturo has it all working, plus a few of his clients have reported in and it is working there.........

I am running the Map all I/O (Modified stock version of the 1024.set), and an ESS through a C32 BOB.

I guess you're going to have to dig DEEP to figure out why it is not working on yours.

Oh, and I am running the pendant in "Single Step" mode here, since velocity mode the mpg looses steps through the ESS, the 1.0 debounce is as low as you can go, but it needs to be shorter, and 0.0 is
to much noise.....  no real happy medium here.

If Brains was working for you, I would go back to them, if you can't figure it out. Or, modify the brains, or build your own for your needs. The Macro pump can also be used, both can be used if your seeing the I and O light up on the diagnostics screen.

NOTE: I am using the latest "Lock down" version of Mach3, that uses the new plugin SDK.

Scott
Title: Re: Brains and MPG from CNC4pc.
Post by: hobbybob on May 03, 2020, 03:59:20 PM
Did you guys solve this eventually ? It's now 7 years later and today i connected my Pendant in Mach3, i am so happy to have found this, but....
I have the same issue, i see the X1-X10-X100 switching when i rotate the switch. When i push the TAB button in Mach 3, i see it switches to MPG. So happy.

But when 1 rotate 1 click my y-axis ALWAYS moves 8.7mm, regardless of what setting of X1-X100...

I filled in values from 100 to 0.00001 and seems not to have any effect.
What am i doing wrong ?

Hope some one can help me out.
Title: Re: Brains and MPG from CNC4pc.
Post by: Cad cam man on May 15, 2020, 11:58:15 AM
hobbybob ,
Did you get your mpg to work ? I have the same issue and I have not been able to get a fix for it