Welcome! Log In Create A New Profile

Advanced

spindle speed

Posted by Anonymous User 
Anonymous User
spindle speed
September 27, 2013 12:22PM
Hi,
Is there a simple way to implement spindle speed function into this plugin?
I just want to get possible to set spindle speed in pcb-gcode interface.
In the result of course it should be after M3 in gcode something like S20000 depends what speed i set in program.
Thanks for all you replies
Anonymous User
Re: spindle speed
October 25, 2013 05:30AM
I second that request. Its not hard to add s10000 to each gcode file, but it would be convenient to have a box in the pcb-gcode script! thanks
Re: spindle speed
October 25, 2013 06:04AM
That's a good idea, and I'll keep it in mind for the next release.

In the meantime, you can edit the gcode-defaults.h file found in the settings folder so that you don't have to edit each file generated. This is covered beginning on page 33 of the manual. Specifically, you can make the following edits:

Around line 27, insert a new SPINDLE_SPEED definition:

string SPINDLE_SPEED = "S10000";

Then around line 57, change this line:

string SPINDLE_ON = "M03" + EOL + DWELL;

To this:

string SPINDLE_ON = "M03 " + SPINDLE_SPEED + EOL + DWELL;

Regards,
JJ

[www.pcbgcode.org]
[groups.yahoo.com]
[www.facebook.com]
Re: spindle speed
October 25, 2013 06:16AM
Modify your "user-gcode.h" to include "S10000" (without quotes) in the "FILE_BEGIN[ALL]" area and make sure your have the check to use this file. It will now put S10000 in the begining of each g-code file.

Simple and no extra changes needed.
Art
Country Bubba
Anonymous User
Re: spindle speed
January 04, 2014 02:45PM
I have do this already. Like you suggest i modify postprocessor.
Still, i today realized that this spindle speed should be diffrent for milling and drilling.
I mill on 20k rpm, but drilling should be on lower speed. That high is not optimum for drilling bits.

And like someone say is not very big deal at all. I just mention that, because one time i forgot modify gcode file after generating, and machine start milling with spindle off, and broke engraving bit.

Today also i found some issue. Maybe not even issue.
But on the beginning gcode file for drilling is some thing like this:
"comments
G21
(Absolute Coordinates)
G90
M05
G00 Z30.0000
G00 X0.0000 Y0.0000
M06 T01 (1.0000 )
G00 Z1.0000
M03 S20000
G04 P2.000000
G82 X-4.0640 Y10.2870 Z-1.3000 F200.00 R1.0000 P0.500000"

This is good., But on the beginning milling file is:
"comments
G21
(Absolute Coordinates)
G90
G00 X0.0000 Y0.0000
M03 S20000
G04 P2.000000
G00 Z1.0000
G00 X-2.6562 Y2.5779
G01 Z-0.1200 F200.00
G01 X-2.6562 Y2.7561 F500.00"

After G90 there is no G0 Z....
There is just not code for tool change.
Before i run the code i insert proper tool in chuck and measure it like that:
[www.youtube.com]
but i don't use metal additional metal plate, because pcb on the top is conductive. And when i zero G54 and forgot move up spindle and run code i get scratch doing by engraving bit
Re: spindle speed
January 04, 2014 03:19PM
It will be in the next release. Three speed settings, etching, milling, and drilling.

Regards,
JJ

[www.pcbgcode.org]
[groups.yahoo.com]
[www.facebook.com]
Anonymous User
Re: spindle speed
January 04, 2014 03:26PM
That's great news. Thank you so much.
With best regards.
Anonymous User
Re: spindle speed
April 29, 2014 10:20AM
Hi JJ, these changes were the best I ever saw, very good... smileys with beer
Anonymous User
Re: spindle speed
May 01, 2014 11:48AM
I download yesterday latest version of your soft.
It' is great now smiling smiley For me it's perfect smiling smiley
Thank you so much for you work.
With best regards.
Sorry, only registered users may post in this forum.

Click here to login