Re: getting the 57cnc to work with G540

Discussions and file drops for Auggie
DanL
Old Timer
Posts: 362
Joined: Wed Sep 10, 2014 1:35 pm

Re: getting the 57cnc to work with G540

Post by DanL »

Changing computers did nothing it still ran ruff with 4 motors turned on, everything else was the same
GlennD
Old Timer
Posts: 80
Joined: Tue Oct 18, 2011 4:19 pm

Re: getting the 57cnc to work with G540

Post by GlennD »

Dan
I added these lines to my System\SystemCallBacks  OnHome script and it will Zero them out every time.

Code: Select all

  if (axis ==1){ GlobalSet("Axis1CurPos",0.0);} 
  if (axis ==2){ GlobalSet("Axis2CurPos",0.0);} 
  if (axis ==3){ GlobalSet("Axis3CurPos",0.0);} 
Glenn
DanL
Old Timer
Posts: 362
Joined: Wed Sep 10, 2014 1:35 pm

Re: getting the 57cnc to work with G540

Post by DanL »

Ta I am offr on holiday for a week starting tomorrow I will put it in when I get back, with YaNvrNo homing script it must be a bug that it happens sometimes by it self, more for Art to do.

I tried to get pin 20 PWM pin 14 on the G540 to work the 57CNC and Auggie did not like it one bit, I am going to use the 57CNC to do the spindle control, it did not have a problem with pin 17 on the G540 being used what is output 1 to turn the spindle on and off that was working.

will have to see if bob get's a 57CNC if he can work it out or someone else it's the same with the limits. but that depends on if the new 57CNC is V 1.2 or V 1.3, there is meant to be a certified version coming out next week or week after

in Mach 3 it all works fine with Art not having a G540 it make's it a bit hard to find the problem, the X, Y and Z stepper driver on the G540 work so it's not that much of a problem
User avatar
ArtF
Global Moderator
Global Moderator
Posts: 4648
Joined: Sun Sep 05, 2010 6:14 am
Contact:

Re: getting the 57cnc to work with G540

Post by ArtF »

Dan:

Enjoy your vacation, Auggie will be here when you get back. :)

  Im still puzzled by Mach3 vs the CNC57...when you think of it,
its my code in both cases, mach3 and Auggie,lol, so if I'm a bit stumped,
you can imagine how curious the results are.

    I had a G540, but that's the one Bob is using. I wanted to see it put to use,
but its one of the first ones ever made, Marris sent it to me to play with
in my retirement, and I suspect its near serial #2. I think he'd be glad its being
used to troubleshoot new software. :) (Marriss is nothing if not a curious
individual..)

    So while testing on other drivers reveals smooth stepping on Bobs system,
and you'd think that would prove the G540 is doing something or expecting
something odd, the fact MAch3 runs it fine is very puzzling. I mean, I wrote the
pulse code for both, and I cant see much of a difference, other than pulse width.
  Mach3 is about 3us, Auggie is 20us on 3axis, and 1/2F on the CNC57.

  The final thing I can think of, and its not likely, is that pins 18-25 on a printer port are
usually grounded together. Perhaps only 1 of them is really grounded in the G540,
and we're not grounding the right one to the CNC57's ground?

  Anyway, it will likely show up eventually.. enjoy your vacation..

Art



   

DanL
Old Timer
Posts: 362
Joined: Wed Sep 10, 2014 1:35 pm

Re: getting the 57cnc to work with G540

Post by DanL »

thanks art the V1.2 is meant to be pin for pin, I stuck to what the pokeys is set to on the 32 pin but it just would not work it maybe something in Auggie, when I still had all the limits and home wired into the G540 M3 picked them up and they all got set by the pokeys, plus the pin 17 and 14 (20 on pokeys).

Its no problem rely it just means a lot of wires going all over the show, When and if the problem get sorted it wont be hard to stick them back into the G540.

I just need to get of my arise and do some coding.
DanL
Old Timer
Posts: 362
Joined: Wed Sep 10, 2014 1:35 pm

Re: getting the 57cnc to work with G540

Post by DanL »

Hi art I am still not able to get the spindle to run, I have been trying to do it in M3 as well, I have asked the pokeys people about it i have not had a reply yet, it is wired correctly between the G540 and the superpid and the pins are set, the only thing I can think of is that on the pokeys config the pin's 17, 20, 21, 22 are red.

pin 14 on the DB25 from the G540 (VFD PWM) is pin 20 on the 57CNC whats a PWM output.

I am stumped to what to do
User avatar
ArtF
Global Moderator
Global Moderator
Posts: 4648
Joined: Sun Sep 05, 2010 6:14 am
Contact:

Re: getting the 57cnc to work with G540

Post by ArtF »

Hi Dan:

  Lets back this up just a bit.. and figure out how to get it running..

The SuperPID needs two things to operate, it has to have 5 volts on its RUN input, and a PWM at 50hz to control its
speed.

  So , lets use the Pokeys software first to make it run. Then , get Auggie to duplicate what it takes..

So, couple things first, ( I'll be overly verbose as others will probably read this thread in future and may
want to duplicate what your doing..

kk, so when you hook  SuperPID to the Gecko, ( or any device) it requires a RUN signal and a PWM thats 50hz.
Your hooking it to the CNC57, so its not as easy as a 56 where I could just specify to you the pins to use..

  First, we need a RUN signal, so lets verify that first. What signal did you hook to the G540
on pin 17 or 1? One of those pins I assume is hooked to the G540 RUN signal. Which G540 pin did you use?
There are a lot of possibilities..

  The PWM on Pin 14 on the G540 needs 50Hz PWM.. so we need to also know what pin you used on the CNC57
to hook to that..


    Take note here, Dan, you cannot just plug a 25 pin ribbon in the TestIO plug, while x,y,z may match the G540 ,
the rest of the pins do not, the PWM for example is on pin 20 of that connector and woudl be grounded by convention.

So, I need to know exactly how your connecting.. My advice would be from the TestIO plug as follows..

TestIOplug-Pin      G540Pin

    (2 - 9)      --------------  (2 - 9)
      14          -------------      14      // PWM control from 57 to G540

  // and now we need RUN. The TestIO connector has only 2 outputs, pin1 ( labeled Xaxis Enable)
and pin 16, which is connected to pin 45 on the pokeys chip. Lets assume you kill
the charge pump input by switch on the G540, ( You only need charge pumps with a printer port..),
so you need to hook up a signmal for spindle ON to the G540 on pin 17, so best to use pin 16
on the Pokeys plug test IO... so that makes it..

TestIOplug-Pin      G540Pin

    (2 - 9)      --------------  (2 - 9)
      14          -------------      14      // PWM control from 57 to G540
      16          -------------      17      //note this is the only one thats isnt pin for pin , youd need to make sure this wire
                                                      //is swapped.

  So, ios this how its hooked up? If so, try it, TO get the PWM to test, lets do it in Pokeys software first.

Pin 16 of the TestIO plug is actually Pokeys Pin 45 and the PWM pin 14 is actually the PWM from pin20 of the
Pokeys. So all we need to do then is run the Pokeys config software, turn on pin 45 as digitial ouptut for RUN..
and set PWM in the perifierals dialog for PWM setting, to the speed we want on PWM channel(2), which is actually
pin 20 on the pokeys chip, pin 14 on the testIO connector and pin14 on your db25.

  Can you confirm thats what we're looking at as far as wiring? You need to set 50hz as the PWM signal strength
but with hose connections and the Pokeys software all should work fine. Let me know how this matches up so far..

Thx, good luck
Art


     
DanL
Old Timer
Posts: 362
Joined: Wed Sep 10, 2014 1:35 pm

Re: getting the 57cnc to work with G540

Post by DanL »

Hi art there is a few ways to wire the superpid, I think I have a way to do it.

I don't think the G540 can do what is needed at all the output pins 1 and 2 in the 57CNC DB25 are different to the G540 one's pin 14 is the only pin that line's up I will have to just try the other 3 different ways to do it.

pin 14 was doing what it was meant to do fault the superpid so it was getting the machine ok not ok signal, just not the PWM signal. I will post back soon after I have moved the wires
BobL
Global Moderator
Global Moderator
Posts: 467
Joined: Sun Sep 05, 2010 7:18 am

Re: getting the 57cnc to work with G540

Post by BobL »

Hi Guys;

Good News...

The problem with stutter on my motors using Auggie is finally gone.  For weeks now I've been trying to isolate where this problem came from, I switched controllers, installed new shielded cables, added grounds, tried various pokeys, added pull up resistors, even tried IC's to shape the pulses, however nothing I did worked. The symptoms were everything worked fine using Pokey software, however Auggie introduced a stutter on my motors while moving. Since then, Mat from Pokey provided me with test code to test my connections, results showed a somewhat slower response than what I saw on Art's system, so then Art did his magic and added a solution in Auggie to fix this. Long story short, I believe the fix has to do with setting speeds on your network, but maybe best if I let Art fill in the details with this one, all I know it fixed my stuttering motors. Solution is found in the Dev version of Gearotic, then in Auggie, go to Configuration/ Engine Config/ , select the down tab, here click Engine /Planner Config and change your network delay to "0" from the default of "1". Worked for me...

Anyhow thanks to all of you for your input, but a special thanks goes to Art for his dedication to get this one fixed. I do suggest from my tests however that you use a fast enough computer with Auggie, lots going on with this guy, and my 1.6Ghz processor is about the slowest I'd go?



Cheers
Bob
:D    
Last edited by ArtF on Thu Feb 18, 2016 9:40 am, edited 1 time in total.
Gearotic Motion
Bob
DanL
Old Timer
Posts: 362
Joined: Wed Sep 10, 2014 1:35 pm

Re: getting the 57cnc to work with G540

Post by DanL »

thanks bob I will try that soon. art I am going try to run it like whats on page 24 in the superpid manual it will be connected to pin 14 and 17 on the 57cnc
DanL
Old Timer
Posts: 362
Joined: Wed Sep 10, 2014 1:35 pm

Re: getting the 57cnc to work with G540

Post by DanL »

it's still not correct the spindle turns on and off with the stop button or emergency in pokeys. no on/off control at all.

I can change the speed with the pokeys PWM dialog.

the spindle runs at 5000 rpm just sitting there.

changeling pin 45 to high or low does nothing at all turning it of does nothing at all.

the only other way I can see to do it would be to put the output on one of the ADC pin's, pin 45

and the pwm on pin 17 or pin 20 in the encoder plug

just not use the G540 for spindle control at all.
User avatar
ArtF
Global Moderator
Global Moderator
Posts: 4648
Joined: Sun Sep 05, 2010 6:14 am
Contact:

Re: getting the 57cnc to work with G540

Post by ArtF »

Dan:

>>t's still not correct the spindle turns on and off with the stop button or emergency in pokeys. no on/of

  But wait, if Estop is stopping it, what signal is the one making it go off and on?

Art
DanL
Old Timer
Posts: 362
Joined: Wed Sep 10, 2014 1:35 pm

Re: getting the 57cnc to work with G540

Post by DanL »

god only knows having it in the pin 45 on the ADC connection does fa I can turn 45 off and the spindle turns off turn it on and the spindle runs.

on the G540 all I can do is change the speed in pokeys

I tried it on pin 17 on the 57cnc did nothing.

I have wired it in all the different way the superpid can be

I am going to try pin 20 on the 57cnc.

going by the superpid manual all I need is a pwm (pin20) and a output for off and on(pin 45), or a 0 to 10 vdc plus output for off and on(pin45).

I may have to ask on cnczone to see if anyone has got a superpid working with a 57cnc and a G540.

any mad ideas i will try
Last edited by DanL on Fri Feb 19, 2016 3:23 pm, edited 1 time in total.
DanL
Old Timer
Posts: 362
Joined: Wed Sep 10, 2014 1:35 pm

Re: getting the 57cnc to work with G540

Post by DanL »

taking pin 45 from the 57CNC gives me on and off if I turn the pin on and off. (is this normal inverting the pin does nothing)

taking pin 20 from the 57CNC gives me speed control only have it in pot for now, it should work in the PWM on the superpid.

above is in pokeys config

I have it working in M3 only turning on and off
Last edited by DanL on Fri Feb 19, 2016 8:58 pm, edited 1 time in total.
User avatar
ArtF
Global Moderator
Global Moderator
Posts: 4648
Joined: Sun Sep 05, 2010 6:14 am
Contact:

Re: getting the 57cnc to work with G540

Post by ArtF »

Dan:

  Well, in fact either pin "could" turn it off or any as a matter of sending speed
command if the on/off is floating high, OR sending a on/off if the speed is floating high..

  So if Pin20 is PWM#2, so to use the speed youll need to modify Auggies spindle scripts
to use PWM#2 instead of PWM4 which I typically use. And that should be tied to the Speed
of spindle ... Pin 45 sounds good as an ON/OFF control, but I think its 5v digital logic, or can
be used as an analogue input..

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest