Re: Couple of ramps1.4 questions? November 02, 2014 03:17PM |
Registered: 13 years ago Posts: 643 |
Re: Couple of ramps1.4 questions? November 02, 2014 03:30PM |
Registered: 9 years ago Posts: 121 |
Re: Couple of ramps1.4 questions? November 02, 2014 03:38PM |
Registered: 9 years ago Posts: 121 |
Re: Couple of ramps1.4 questions? November 02, 2014 04:22PM |
Registered: 13 years ago Posts: 643 |
if(serial_char == ';') comment_mode = true; if(serial_char == '(') comment_mode = true; if(!comment_mode) cmdbuffer[bufindw][serial_count++] = serial_char; if(serial_char == ')') comment_mode = false;
Re: Couple of ramps1.4 questions? November 02, 2014 04:52PM |
Registered: 9 years ago Posts: 121 |
I just copy and pasted this in a it still does the same thing.I can even get it to mess up by typing the command (aste) into the command bar and sending..But if i put a ; in front of the same command it will not attempt to send it.. But it sends it and gets errors with the ( )Quote
Andrew Smith
Any chance you can rewrite your post processor to not drop Z onto the next line. Fixing that would be a bit of a pain.
I did fix the post processor so it puts all the z axis moves in the same line at the other axis. just this was one of the shortest g codes i have for an axample...
Taking F codes as their own command is doable, just add an 'if code_seen('F') clause amongst the G and M clauses that contain the switch statements. Something like:
if(code_seen('F')){
get_coordinates();
prepare_move();
}
The alternative is to rewrite your post processor to put lone feedrate statements into a G1 command.
As for the comments, the end of that section should look exactly like this:
For this about what line would i ad this?And how does it know to use the value following the F?
if(serial_char == ';') comment_mode = true; if(serial_char == '(') comment_mode = true; if(!comment_mode) cmdbuffer[bufindw][serial_count++] = serial_char; if(serial_char == ')') comment_mode = false;
This idea is to go into comment_mode if we see a ; or a (, and drop back out of it if we see a ). While in comment mode, we skip characters, otherwise we put them into the cmdbuffer. So long as you never put a ) inside a ; comment, this should work perfectly, but your gcode doesn't seem to have ; comments so thats not an issue.
Re: Couple of ramps1.4 questions? November 02, 2014 05:12PM |
Registered: 9 years ago Posts: 121 |
Re: Couple of ramps1.4 questions? November 02, 2014 05:56PM |
Registered: 13 years ago Posts: 643 |
Re: Couple of ramps1.4 questions? November 02, 2014 06:34PM |
Registered: 9 years ago Posts: 121 |
Re: Couple of ramps1.4 questions? November 02, 2014 06:42PM |
Registered: 9 years ago Posts: 121 |
Re: Couple of ramps1.4 questions? November 02, 2014 07:12PM |
Registered: 9 years ago Posts: 121 |
Re: Couple of ramps1.4 questions? November 03, 2014 10:11PM |
Registered: 9 years ago Posts: 121 |
Re: Couple of ramps1.4 questions? November 04, 2014 01:30AM |
Registered: 9 years ago Posts: 121 |
Re: Couple of ramps1.4 questions? November 04, 2014 12:38PM |
Registered: 9 years ago Posts: 121 |
Re: Couple of ramps1.4 questions? November 04, 2014 01:47PM |
Registered: 13 years ago Posts: 643 |
Re: Couple of ramps1.4 questions? November 04, 2014 05:22PM |
Registered: 9 years ago Posts: 121 |
Re: Couple of ramps1.4 questions? November 04, 2014 08:32PM |
Registered: 13 years ago Posts: 643 |
Re: Couple of ramps1.4 questions? November 04, 2014 09:34PM |
Registered: 9 years ago Posts: 121 |
Re: Couple of ramps1.4 questions? November 04, 2014 11:21PM |
Registered: 9 years ago Posts: 121 |
Re: Couple of ramps1.4 questions? November 05, 2014 12:40AM |
Registered: 9 years ago Posts: 121 |
Re: Couple of ramps1.4 questions? November 05, 2014 05:11AM |
Registered: 13 years ago Posts: 643 |
Re: Couple of ramps1.4 questions? November 05, 2014 12:28PM |
Registered: 9 years ago Posts: 121 |
Re: Couple of ramps1.4 questions? November 05, 2014 12:46PM |
Registered: 13 years ago Posts: 643 |
Re: Couple of ramps1.4 questions? November 05, 2014 05:24PM |
Registered: 9 years ago Posts: 121 |
Re: Couple of ramps1.4 questions? November 12, 2014 12:02AM |
Registered: 9 years ago Posts: 121 |