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 »

I have not done the spindle code yet. that was the roadrunner file, it just shows you got it correct for the spindle control.

I have worked out the code for a on off button with no direction control (will never need it on my routers) that was easy if statement YaNvrNo and Scott tough me that one in M4.

as you posted.

this will be in a button

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

or this just playing on inside computer they both compile ok

//my frequency spindle will use axis 8 step output
global MySpindleAxis = 8;
//axis 8 will be set to constant speed mode
FreeSetAxisMode(MySpindleAxis,1); //set spindle to freq mode

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

then as you said this
FreeSetAxisType( 8,1 ); //in the MainScreenInit script
Last edited by DanL on Sat Jan 23, 2016 7:42 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 »

Art I cant get any movement with a G code, I have not turned any scripts on just left as as is from install.

Here is the G code and log the scripter show nothing
Attachments

[The extension txt has been deactivated and can no longer be displayed.]

[The extension has been deactivated and can no longer be displayed.]

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:

Because you've used the software before, your scripts are on.  I suspect your failure is because you dont
have a spindle turned on. If the GCode library or call back libraries are on, at least one spindle library must be
on. Also, there was a version early today where the root scripts button didnt properly turn off all scripts.
  Anyway, turn on the GCode lib, and a spindle and see if it runs..

  Watch todays video to see how to see whats failing by turning on the scripter..

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 »

i have seen the vid I will try again soon with a spindle control on, and all off.

it works fine in M3

I will test a few ideas and post back
DanL
Old Timer
Posts: 362
Joined: Wed Sep 10, 2014 1:35 pm

Re: getting the 57cnc to work with G540

Post by DanL »

hay Art I have got it down to the spindle control not working, I am going to get it all going through M3 so it gives me the pin numbers, then get it working in Auggie, I am very sure it's the spindle.
I worked it through from nothing ticked, bringing up the scripting window each time, it showed what was need to be turned on or off, I did that and repeated to it got to the spindle control.
using the scripting window to test makes it quite fast.
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:

If you turn on a spindle library it should run... relayonly maybe..

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 »

I got going the 57CNC or computer needed to be powered down, or pin 17 needed set it was one of these 3 I did all 3
Last edited by DanL on Tue Jan 26, 2016 6:46 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 »

:)

  Next version will have some safeties as Ive added ways for a script to call
a routine name which may or may not yet exist, and do so with no error. This
will keep you from erroring out..

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, it's still a problem with the G540 the other pin does not show up so I may have to do it through the 57CNC only more testing will tale I should have 2 pins active, I only have pin 17 output 1,
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:

You shouldn't really get any errors in run-time based on what the G540 is doing.. I don't think I'm following
whats happening, yell if you need a hand or it isn't making sense..

Art
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 am trying to following along on the G540 stuff, incase I don't like these chinese drives.
From the way I understand it you are not seeing a signal on pin 17 out of the 57CNC?
What about the pin20 PWM(2) which looks like pin 14 on the Gecko parellel cable?

What were the other two pin numbers you turned on out of curiosity?

Thank you
Glenn
Last edited by Anonymous on Wed Jan 27, 2016 10:46 am, 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 »

I have a signal on 17 it only came up after I fired up M3 I will turn on pin 20 and see if I am getting anything on pin 14 PWM output in the G540, its a bit of not knowing the corresponding pins, there is 3 things I have to look at it to get the info I need it get's a bit confusing.
I know pin 17 is working it's turning the superpid on from pot to pwm control, its just the PWM output that needs done.

Art the G540 is still unstable with 4 motors turned on, the problem with the net being on is gone, I will test the Ethernet connection soon.

I ran the roadrunner code it started good as it got to half way through the code and crashed, I will run the 2 examples to see if it's more than just random
most times when I home the machine it does not zero out the work concordats.

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

Re: getting the 57cnc to work with G540

Post by DanL »

Art the Ethernet it still run's ruff.
the 2 example file's run fine, that as far as I have got 2 day I will bring up the scripting window and run it again just to see if anything poops up.
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:

Homing will not zero the work coordinates, you need to manually do that. Sometimes one would want to, other times one wouldn't.. its nice to see losses before cancelling them out. But in the end a personal homing script could do it for you.

  I'm still stumped on the roughness, I'm beginning to think its CPU speed or graphics speed, I use a pretty good machine. ENet should be the smoothest if that were the case, but I still cant find a spot where that may happen as yet, but I'm sure it will be found eventually.  The weird thing is, Bob find his bad on 3 axis, not 4, and I find mine much smoother on 4, than on 3. Makes sense, the 8 axis engine has 1/2 pulse width..

  More testing I guess, we'll figure it out over time..

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 »

homing is fine like that, it does Zero out sometimes by it self 1 in 5 times. I will try my fast machine to see if that helps
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests