Re: getting the 57cnc to work with G540

Discussions and file drops for Auggie
Post Reply
ArtF
Global Moderator
Global Moderator
Posts: 4557
Joined: Sun Sep 05, 2010 5:14 pm
Contact:

Re: getting the 57cnc to work with G540

Post by ArtF »

Hi Dan:

>>I was told these board where shit's of things to set up well they are not, they are too easy to set up.

  I have to say its the easiest setup Ive ever done. Wiring is a bit of pain as I had to get all the various ribbons, but setting it
up is easy, and you can jog in the setup, so testing is easy. Its why I left setup in the pokeys, they did fine, why would I duplicate
it? Once we get a few users I suspect setup questions will be easy.. Rule generally is, get it jogging/homing in the pokeys ,
Auggie will take it form there.. (You'll notice Auggie has very little config..thats by design, I agree totally with Pokeys
putting the config in their device, I think it increases their versatility and is a HUGE part of why I selected a Pokeys
as the hardware I decided to work with. ).

    In the interests of fairness, and because I know almost all the hardware developers, let me state categorically that
I have no affiliation with Pokeys and no sort of business arrangement, when I praise their capabilities its an honest
appraisal, and if, at some point in the future another device is as feature rich in terms of C-Libraries and open development,
I may add that to the program to allow more people to play, I want a core set of abilities before Id even consider that
though as hardware variances cause a lot of trouble during development.. not so much after..


>>on a side note in the pokeys software they seem to run the motors a bit smoother, than in auggie you can only tale by sound movement is fine. I have all motors working good, I have not tested homing yet, that will be some time this week, then I will get the limits and spindle going (does spindle control work in auggie). it will be through the G540 to a superpid.

  Remember in Mach3 how Keyboard jog sounded better than planned motion? It was due to a differing way of doing the
accelerations. When you jog the Pokeys, what you hear is the old Mach3 jogging. Bang Bang accel from what I hear,
( thats not a knock, most hardware steppers are bang bang planners, but once Auggie starts doing Jogging or Planned motion,
both are SCurves planned, so timing variations are on purpose and change the sounds. Play with Jerk till your happy, but to
almost duplicate the old Mach3 sound, just set  jerk of  50,000,000. That will apporach the unlimited jerk of a bang bang.

>>(does spindle control work in auggie). it will be through the G540 to a superpid.

  The script calls are there. The super PID wants a frequency? Then Id feed it Axis #8 steps pulses, and in the
MainScreenInit script, call  FreeSetAxisType( 8,1 ); //sets 8 to freq. mode..

  Then in the SetSpindleState( state ) script, youd do something like

if( state)

    speed = GlobalGet("SpindleSpeed");
    FreeSetSpeed( 8, speed );
}
else
{ FreeSetSpeed( 8,0);
}

    Thats would allow a spindle turn on and off. And you could also add such a script to a
SpindleOn button and a Spindle Off Button. To complete the safety picture, in the
System callbacks there is a script canned OnEnable() in which we can put a spindle off
command so that an EStop will kill the spindle..

  When you get there we'll help and ensure the proper calls are available so your
options are large as to exactly how to set it up, and versions then will have that as a
default condition on delivery to be modified by folks with a different way of
controlling a spindle. Auggie should be able to handle pretty much all spindles,
including ModBus as Pokeys has ModBus built in as well...


>>the problem with the motors maybe because they are old sanyo decke steppers made in 1987

  No way of telling yet :), with experience, we'll all figure that one out.

Art

DanL
Site Admin
Posts: 357
Joined: Thu Sep 11, 2014 12:35 am

Re: getting the 57cnc to work with G540

Post by DanL »

Art even if you got a kick back from pokeys, I would never have a problem with that, you just made a trucken excellent selection.
leveing the settings in pokeys very good idea sinces I know that now  ;D,

it's matanices week, so I have a big router to check over squire up calibrate, a manual mill and lathe to do as well. so when I have time I have to finish the re wiring on my little machine before I get to try my hand a Monkey
DanL
Site Admin
Posts: 357
Joined: Thu Sep 11, 2014 12:35 am

Re: getting the 57cnc to work with G540

Post by DanL »

Hi art still can't get the motors to run smooth, question is homing working in auggie, I have the home switches connected to the G540, by looking at the board pinout it looks like it won't work through Test IO.
they are connected and working through the G540 but doing nothing in auggie, I have not tried in the pokeys set up yet.

by looking at the pinout should I just connected them to the Axis switch connector.

the superpid is through the G540 I will start on the script when I have time. have not finished the wireing.

I will be putting the probe in the probe spot.

another question what are the plugs on the 57cnc called
ArtF
Global Moderator
Global Moderator
Posts: 4557
Joined: Sun Sep 05, 2010 5:14 pm
Contact:

Re: getting the 57cnc to work with G540

Post by ArtF »

Dan:

>>Hi art still can't get the motors to run smooth,

  This is yet an open question, BobL is alow trying to get a 540 to work and is finding the motors dont sound good, but
he says they dont sound good jogging in pokeys either.. I havent yet seen this and Im not sure if its a G540 thing or not,
but the one time I had very odd motion, it seemed as if I has two threads running in my CPU as a reboot solved all
that issue, it hasnt repeated. So we'll report in the next few days... Is your jogging good in the Pokeys, just noisy in
Auggie, or is it good in jog, bad in motion..or ? 

>> question is homing working in auggie, I have the home switches connected to the G540, by looking at the board pinout it looks like it won't work through Test IO.
they are connected and working through the G540 but doing nothing in auggie, I have not tried in the pokeys set up yet.

  You have to make sure they home in PoKeys, Auggie simply tells Pokesy to home that axis, its the only time , other then MPG
use where motion comes from the Pokeys planner.

>>by looking at the pinout should I just connected them to the Axis switch connector .

  Yes, or anywhere, but if you set them as pin0, you just use the input on the axis plug
on the pokeys..


>>>the superpid is through the G540 I will start on the script when I have time. have not finished the wireing.
>>I will be putting the probe in the probe spot.

  I dont yet allow probeing, but eventually.. :)

>>another question what are the plugs on the 57cnc called

  I call them a pain in the ass, but your free to call them as you wish. :)
Personally, I like the terminal strips better, but thats a highly personal thing.
But as it forces tme to add a din rail and some terminal strips, I should like them
better as the unit will look better..
GlennD
Site Admin
Posts: 80
Joined: Wed Oct 19, 2011 3:19 am

Re: getting the 57cnc to work with G540

Post by GlennD »

Dan
;D I agree with Art screw terminals would have been nice.
The connectors are IDC connectors as far as I know.
Digikey link for the cables http://www.digikey.com/product-search/en?keywords=h3cch-1006g that I bought.
The connector board I built has not been hooked up and tested so I haven't shared the files yet.  As soon as I get it hooked up and it works I will share.  Art's solution is easier since it is a purchased option but I am too cheap. :)
DanL
Site Admin
Posts: 357
Joined: Thu Sep 11, 2014 12:35 am

Re: getting the 57cnc to work with G540

Post by DanL »

Art it's smooth in pokey ruff in auggie, I dropped the speed down to they came right, I will speed them up a little bit a see if I can tune them through the G540 I just have to rember to get my ceramic skewdriver.

I will try to get them to home in pokeys, if that fails I will just plug them into the correct plug I have some header that will fit, it's a rewire but nothing hard.

it's still fun and terminals would be better or if they came with the plugs that would be even better.
ArtF
Global Moderator
Global Moderator
Posts: 4557
Joined: Sun Sep 05, 2010 5:14 pm
Contact:

Re: getting the 57cnc to work with G540

Post by ArtF »

Dan:

Mine sounds pretty much the same either way, Bobs sounds bad but he's on a 57E which has shorter pulses,
we'll see if its a current limitation..

  So once you tune in the motors let me know, really Auggie should be as smooth or smoother
than the pokeys config..

Art
ArtF
Global Moderator
Global Moderator
Posts: 4557
Joined: Sun Sep 05, 2010 5:14 pm
Contact:

Re: getting the 57cnc to work with G540

Post by ArtF »

Dan:

Oh, one other thing to check, Augie is running in Buffered mode, so its
sensitive to network conditions for motion. If its noisy.. it may be the network,
so make sure the "Time anomolies" DRO on the diags stays at zero, if not, yell
and we'll discuss how to troubleshoot that..

Art
DanL
Site Admin
Posts: 357
Joined: Thu Sep 11, 2014 12:35 am

Re: getting the 57cnc to work with G540

Post by DanL »

Yer I will have to rember to turn the internet off, wireless. both my laptops are win10 so I can sink to and from them, what's a cool thing win10 has, it make remembering your passwords easy.

next time I get stepper drivers I am not getting geckos, they work well but are a pain in arse to tune, if I had a scope it would be easy 
DanL
Site Admin
Posts: 357
Joined: Thu Sep 11, 2014 12:35 am

Re: getting the 57cnc to work with G540

Post by DanL »

Art turning the net off and tuning the G540 did the trick, I was able to take it up to the machines max speed 600. that's that job done, now to the home/limit switches.
Post Reply