Page 8 of 20
Re: getting the 57cnc to work with G540
Posted: Sat Jan 23, 2016 10:18 pm
by ArtF
Dan:
Was that an arc move it did that overspeed detection on?
(Looks like your spindle code is working at any rate..
Art
Re: getting the 57cnc to work with G540
Posted: Sun Jan 24, 2016 3:15 am
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
Re: getting the 57cnc to work with G540
Posted: Mon Jan 25, 2016 10:30 pm
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
Re: getting the 57cnc to work with G540
Posted: Mon Jan 25, 2016 10:54 pm
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
Re: getting the 57cnc to work with G540
Posted: Mon Jan 25, 2016 11:12 pm
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
Re: getting the 57cnc to work with G540
Posted: Wed Jan 27, 2016 1:12 am
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.
Re: getting the 57cnc to work with G540
Posted: Wed Jan 27, 2016 1:31 am
by ArtF
Dan:
If you turn on a spindle library it should run... relayonly maybe..
Art
Re: getting the 57cnc to work with G540
Posted: Wed Jan 27, 2016 4:09 am
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
Re: getting the 57cnc to work with G540
Posted: Wed Jan 27, 2016 12:29 pm
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
Re: getting the 57cnc to work with G540
Posted: Wed Jan 27, 2016 7:00 pm
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,