G-Code Error

G-Code Error

Anonymous
Not applicable
636 Views
6 Replies
Message 1 of 7

G-Code Error

Anonymous
Not applicable

Hi,

 

When creating a G-Code for the post processor WinCNC an error occurs with curves. For example, when I am trying to make a circle (g3) is not added on line 13. This only allows the first half of the circle to be made and not the second half. When I manually add (g3) to line 13 the code runs fine. Is there something I need to change in the post processing to fix this?

 

gcode missing g3.jpg

0 Likes
Accepted solutions (1)
637 Views
6 Replies
Replies (6)
Message 2 of 7

LibertyMachine
Mentor
Mentor

Most controllers are smart enough to recognize what are called "Modal" commands. Most G codes fall into this category, and most machines don't have an issue with a single callout, just as they don't with G00 or G01.

What post processor are you using and what machine/control configuration are you running?

Didn't see that you already provided that.


Seth Madore
Owner, Liberty Machine, Inc.
Good. Fast. Cheap. Pick two.
0 Likes
Message 3 of 7

Anonymous
Not applicable

What are Modal commands?

0 Likes
Message 4 of 7

LibertyMachine
Mentor
Mentor

Open up your post processor and change this line:

var gMotionModal = createModal({}, gFormat); // modal group 1 // G0-G3, ...

to this:

var gMotionModal = createModal({force:true}, gFormat); // modal group 1 // G0-G3, ...

Seth Madore
Owner, Liberty Machine, Inc.
Good. Fast. Cheap. Pick two.
0 Likes
Message 5 of 7

LibertyMachine
Mentor
Mentor

@Anonymous wrote:

What are Modal commands?


Modal commands are commands that stay active until a certain event, such as the command of another G code, Reset button, cycle end etc.

2018-12-03_17h41_53.png


Seth Madore
Owner, Liberty Machine, Inc.
Good. Fast. Cheap. Pick two.
Message 6 of 7

Anonymous
Not applicable

Im sorry, am I opening the post processor within Fusion?

0 Likes
Message 7 of 7

LibertyMachine
Mentor
Mentor
Accepted solution

Here, just use this file. Save it to your local drive or the Cloud. You will need to change the Post location though.

 


Seth Madore
Owner, Liberty Machine, Inc.
Good. Fast. Cheap. Pick two.