laser on too early
Hi,
When using inkscape with repetier plugin I made a g-code file of some text.
Manually I have to set the Z-height so the laser is focussed.
When I start the g-code the laser instantly switches on even before starting engraving the text.
So from the 0,0 coordinates to the start of the text laser already on.
My text is offset from center due to delta printer.
Is the a bug or is there a way to fix this problem?
thanks
When using inkscape with repetier plugin I made a g-code file of some text.
Manually I have to set the Z-height so the laser is focussed.
When I start the g-code the laser instantly switches on even before starting engraving the text.
So from the 0,0 coordinates to the start of the text laser already on.
My text is offset from center due to delta printer.
Is the a bug or is there a way to fix this problem?
thanks
Comments
In de repetier plugin for inkscape there is no setting for that.
This is the beginning of the code created bij repetier plugin:
etc etc etc
So at which point does laser turn on? You can send it line by line to check that. Maybe firmware is not configured correctly.
laser switches on (pin 57 HIGH) with this line: G0 X46.6438 Y-14.1442
In configuration.h
#define SUPPORT_LASER 1
If I move the head manually using G0 X10 Y10 laser is on also when moving using repetier host manual control
is this correct?
thanks
You see if (com->G == 0 sets laserOn false, so should be off at that move. And so far it always worked so wondering what you did that it does not work here. Does laser turn off for G1 instead? Then you might have LASER_ON_HIGH wrong also it would be safer that it only turns on with high signal. Also check no other function uses pin 57 to interfere.
Still not working correctly.
I checked, no other assigned to pin 57 except #define ANALYZER_CH7 57 // ysig in Repetier.h
The code in Commands.ccp is same so no issue there.
I tried the following.
Two letters, A and B about 5 cm apart from each other in inkscape
made a gcode file using repetier plugin.
The first move: G0 X30.0391 Y-17.3763 laser already on.
The other G0 move in the code laser is off. So very strange.
Complete code below.
Today I tried a few things.
Replaced my Arduino mega -> no difference
Uploaded the latest firmware -> no difference
Still first G0 move laser on
I am out of ideas ..
Does laser turn off for G1 instead? Then you might have LASER_ON_HIGH wrong also it would be safer that it only turns on with high signal. Also check no other function uses pin 57 to interfere.
Like he said, does it move manually and remain off, with a G1 code? From the looks of it you have a G!,G2 and G3 code used between the G0 codelines.
btw how doe I check if pin 57 is used by something else?
If I use other software like 'laser engraver' there is no issue at all.