Need help to program smoothing into G61 / G64

Need help to program smoothing into G61 / G64

sies5DRVJ
Contributor Contributor
1,816 Views
3 Replies
Message 1 of 4

Need help to program smoothing into G61 / G64

sies5DRVJ
Contributor
Contributor

I'm starting to use CAM in Fusion360 and I run a 3-axis milling machine controlled by EdingCNC.

A post processor file was already available for this controller and I've edited it to fit my requirements for as far as I could.
My question is, why do I keep getting G61 (exact mode) in my g-code when I turn on smoothing? I was expecting to get G64 P0.05 when I enable smoothing in my operation with a tolerance value of 0.05, because I see some programming about this in the *.cps file. But unfortunately this is not the case. 

 

Can someone please point me in the right direction for this? I've added the cps file and the resulting g-code for a simple operation is posted below since somehow it won't be added as attachment.

 

Thanks in advance!

 

%
(1001)
(T66 D=6 CR=3 - ZMIN=-12 - ball end mill)
G90 G94
G17
G21
M9

(2D Contour1)
T66 M6
S24000 M3
G54
M8
G0 X34.8 Y0.6
G43 Z15
G61
Z5
G1 Z-11.4 F300
G18 G3 X34.2 Z-12 I-0.6
G1 X33.6 F2500
G17 G3 X33 Y0 J-0.6
G2 X-33 I-33
X33 I33
G3 X33.6 Y-0.6 I0.6
G1 X34.2
G18 G2 X34.8 Z-11.4 K0.6
G0 Z15
G17
M9
M30
%

0 Likes
1,817 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

@sies5DRVJ try to comment out the lines in the post processor that contain this function?

0 Likes
Message 3 of 4

sies5DRVJ
Contributor
Contributor

Thanks for responding. I'm not sure what you mean by "comment out the lines", but if you search for this text, you'll find the section I think is meant to introduce G64 P... commands for smoothing.

 

(gFormat.format(64), "P"

 

I guess what I've pasted below are the relevant lines. One level higher is a very big section called "function onSection".

I assume this is supposed to create a G64 code with a P-value if the smoothing tolerance > 0. And else write G61 (exact mode). This is exactly what I want, but don't see happening. Unfortunately I'm not a programmer. I'm just able to recognize pieces of code and experiment from there. Takes me where I want to be in 90% of the cases, but unfortunately, this time, it's not enough...

 

if (hasParameter("operation-strategy") && (getParameter("operation-strategy") != "drill")) {
    if (properties.smoothingTolerance > 0) {
      if (!g64Active) {
        writeBlock(gFormat.format(64), "P" + xyzFormat.format(properties.smoothingTolerance));
        g64Active = true;
      }
    } else {
      if (g64Active) {
        writeBlock(gFormat.format(61));
        g64Active = false;
      }
    }
  }

0 Likes
Message 4 of 4

Anonymous
Not applicable

I am not a programmer either, i have just a little experience with modifying the Post-processor

so try this, in your place I ll try to add // (comment out) the lines where there r functions you dont need.

if (hasParameter("operation-strategy") && (getParameter("operation-strategy") != "drill")) {
    if (properties.smoothingTolerance > 0) {
      if (!g64Active) {
        // writeBlock(gFormat.format(64), "P" + xyzFormat.format(properties.smoothingTolerance));
    
      }
    } else {
      if (g64Active) {
        //writeBlock(gFormat.format(61));
      
      }
    }
  }

0 Likes