Adding a linefeed to a gcode line
- sajurcaju
- Offline
- Premium Member
Less
More
- Posts: 86
- Thank you received: 6
05 Jan 2025 23:59 #318182
by sajurcaju
Adding a linefeed to a gcode line was created by sajurcaju
F-engrave allows the user to add a one line header. I want to have two pieces of gcode added:
G64 P0.001 and G4 P3
The three second delay is the ramp up time on my spindle.
Including both on the one line allowed results in an Axis error, it says I can't have multiple P words on the same line.
I tried inserting /n (and \n) in between; Axis complains about the slash.
Is there some other way to get Axis to interpret a single line of gcode as two lines, or to allow two P words?
Thanks!
G64 P0.001 and G4 P3
The three second delay is the ramp up time on my spindle.
Including both on the one line allowed results in an Axis error, it says I can't have multiple P words on the same line.
I tried inserting /n (and \n) in between; Axis complains about the slash.
Is there some other way to get Axis to interpret a single line of gcode as two lines, or to allow two P words?
Thanks!
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 4033
- Thank you received: 1741
06 Jan 2025 09:26 #318204
by Aciera
Replied by Aciera on topic Adding a linefeed to a gcode line
One solution would be to put those lines in a subroutine and insert the subroutine call into F-engrave.
Please Log in or Create an account to join the conversation.
- phillc54
- Offline
- Platinum Member
Less
More
- Posts: 5714
- Thank you received: 2090
06 Jan 2025 11:16 #318206
by phillc54
Replied by phillc54 on topic Adding a linefeed to a gcode line
Does the pipe character create a new line?
G64 P0.001 | G4 P3
Please Log in or Create an account to join the conversation.
- sajurcaju
- Offline
- Premium Member
Less
More
- Posts: 86
- Thank you received: 6
06 Jan 2025 13:06 #318214
by sajurcaju
Replied by sajurcaju on topic Adding a linefeed to a gcode line
Nice idea, but it still says "bad character"
Please Log in or Create an account to join the conversation.
- phillc54
- Offline
- Platinum Member
Less
More
- Posts: 5714
- Thank you received: 2090
06 Jan 2025 22:50 #318268
by phillc54
Replied by phillc54 on topic Adding a linefeed to a gcode line
It works for me in master branch on the axis_mm sim using f-engrave 1.75
Please Log in or Create an account to join the conversation.
- sajurcaju
- Offline
- Premium Member
Less
More
- Posts: 86
- Thank you received: 6
06 Jan 2025 22:57 #318269
by sajurcaju
Replied by sajurcaju on topic Adding a linefeed to a gcode line
Weird. I tried it as you wrote, with just the G64/G4 on one line (other commands removed). I still get the error. I'm using Axis 2.8.4-76-g6082f1df7.
Aciera, I will try the subroutine and report back when I get a chance.
Aciera, I will try the subroutine and report back when I get a chance.
Please Log in or Create an account to join the conversation.
Time to create page: 0.054 seconds