Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feed speed on raster G0 not picked up #11

Open
Cromaglious opened this issue May 26, 2016 · 2 comments
Open

Feed speed on raster G0 not picked up #11

Cromaglious opened this issue May 26, 2016 · 2 comments

Comments

@Cromaglious
Copy link

somewhere around line 635 in turnkeylaser.py

 if(cutFeed < self.options.Mfeed):
        gcode += 'G0 X'+str(curve['x'])+' Y'+str(curve['y'])+' F'+str(self.options.Mfeed)+'\n'
    gcode += 'G0 X'+str(curve['x'])+' Y'+str(curve['y'])+' '+cutFeed+'\n'

basically compares str F200 < int 2200
I changed mine to

 if(cutFeed != "F"+str(self.options.Mfeed)):
        gcode += 'G0 X'+str(curve['x'])+' Y'+str(curve['y'])+' F'+str(self.options.Mfeed)+'\n'
    gcode += 'G0 X'+str(curve['x'])+' Y'+str(curve['y'])+' '+cutFeed+'\n'
@nextime
Copy link

nextime commented May 29, 2016

I've changed it in my fork with:
if(int("".join([x for x in list(cutFeed) if x.isdigit()])) < int(self.options.Mfeed)):

@Cromaglious
Copy link
Author

nextime,

Thanks that's a better Solution, I'm changing mine as well to;

if(int("".join([x for x in list(cutFeed) if x.isdigit()])) < int(self.options.Mfeed)):

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants