How do I force CAM to set gcode on every line
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
How do I force CAM to set gcode on every line
I am using the following option
// always write G-code, even if it is the same as on the previous line:
this.alwaysWriteGCode = true;
but it seem to disregard this setting. Some lines following a G1 command only has coordinates, and even that is acceptable in most CNC machines, mine require a Gcode on every line.
How do I fix this?
// always write G-code, even if it is the same as on the previous line:
this.alwaysWriteGCode = true;
but it seem to disregard this setting. Some lines following a G1 command only has coordinates, and even that is acceptable in most CNC machines, mine require a Gcode on every line.
How do I fix this?
Re: How do I force CAM to set gcode on every line
Please attach the complete configuration you are currently using (.js file), thanks.
Re: How do I force CAM to set gcode on every line
Attached
- Attachments
-
- ruijie.js
- (3.25 KiB) Downloaded 418 times
Re: How do I force CAM to set gcode on every line
Here is a gcode file created by it:
- Attachments
-
- Power_Con_channel.gcode.txt
- (887 Bytes) Downloaded 415 times
Re: How do I force CAM to set gcode on every line
Please add the following lines to your configuration:
ruijie.prototype.gotModeChange = function(m) { return true; };
Re: How do I force CAM to set gcode on every line
Does not work yet...
Code: Select all
G21
G92 X0 Y0
G0 F20000
G1 S0.8
G1 F800
G00 Y-10
M3
G4 P200
G01 Y-60
X270
Y-10
X0
M5
G00 Y48
M3
Re: How do I force CAM to set gcode on every line
Current workaround is to manually add the G0 and G1 into the lines.
What else can I try?
What else can I try?
Re: How do I force CAM to set gcode on every line
I cannot reproduce this. I'm using your exact configuration from above with the additional three lines I've posted.
Common mistakes are:
- QCAD/CAM not restarted after changing configuration
- Looking at the wrong output data (old version of a file, wrong file)
Common mistakes are:
- QCAD/CAM not restarted after changing configuration
- Looking at the wrong output data (old version of a file, wrong file)
Re: How do I force CAM to set gcode on every line
Thank you. Working perfectly after actually saving the 3 extra lines into the .js file...
Go figure.
Go figure.
Re: How do I force CAM to set gcode on every line
Ah, yes - another classical one This happens to everyone. Glad it works now!qharley wrote:Thank you. Working perfectly after actually saving the 3 extra lines into the .js file...