Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

Mach3 post procesor

andrei2306KSQQ6
Participant

Mach3 post procesor

andrei2306KSQQ6
Participant
Participant

Hello

I use the post procesor from fusion 360 for Mach3 but i have some problems with the code because is milling in my model some times. I will leave my code is just a contour for example but the code is doing strange things.



(1001)
(T2  D=10. CR=0. - ZMIN=-72.5 - FLAT END MILL)
G90 G94 G91.1 G40 G49 G17
G21
G28 G91 Z0.
G90

(2D CONTOUR2)
M5
T2 M6
S5000 M3
G54
M8
G0 X-15.212 Y42.871
G43 Z10. H2
Z5.
G1 Z3.5 F333.
X-15.207 Y42.866 Z3.379 F600.
X-15.193 Y42.849 Z3.261
X-15.169 Y42.823 Z3.145
X-15.136 Y42.786 Z3.035
X-15.094 Y42.739 Z2.932
X-15.044 Y42.684 Z2.837
X-14.987 Y42.62 Z2.751
X-14.924 Y42.549 Z2.677
X-14.855 Y42.472 Z2.615
X-14.782 Y42.39 Z2.565
X-14.705 Y42.304 Z2.529
X-14.626 Y42.215 Z2.507
X-14.546 Y42.126 Z2.5
X-13.879 Y41.38
G3 X-12.467 Y41.301 I0.746 J0.666
G2 X-1.47 Y45.5 Z2.08 I10.997 J-12.301 F333.
G1 X1.47 Z1.977
G2 X17.97 Y29. Z1.072 I0. J-16.5
G1 Y6. Z0.269
G2 X6.47 Y-5.5 Z-0.362 I-11.5 J0.
G1 X-6.47 Z-0.814
G2 X-17.97 Y6. Z-1.445 I0. J11.5
G1 Y29. Z-2.248
G2 X-1.47 Y45.5 Z-3.153 I16.5 J0.
G1 X1.47 Z-3.256
G2 X17.97 Y29. Z-4.161 I0. J-16.5
G1 Y6. Z-4.964
G2 X6.47 Y-5.5 Z-5.595 I-11.5 J0.
G1 X-6.47 Z-6.047
G2 X-17.97 Y6. Z-6.677 I0. J11.5
G1 Y29. Z-7.481
G2 X-1.47 Y45.5 Z-8.386 I16.5 J0.
G1 X1.47 Z-8.488
G2 X17.97 Y29. Z-9.393 I0. J-16.5
G1 Y6. Z-10.197
G2 X6.47 Y-5.5 Z-10.827 I-11.5 J0.
G1 X-6.47 Z-11.279
G2 X-17.97 Y6. Z-11.91 I0. J11.5
G1 Y29. Z-12.713
G2 X-1.47 Y45.5 Z-13.618 I16.5 J0.
G1 X1.47 Z-13.721
G2 X17.97 Y29. Z-14.626 I0. J-16.5
G1 Y6. Z-15.429
G2 X6.47 Y-5.5 Z-16.06 I-11.5 J0.
G1 X-6.47 Z-16.512
G2 X-17.97 Y6. Z-17.143 I0. J11.5
G1 Y29. Z-17.946
G2 X-1.47 Y45.5 Z-18.851 I16.5 J0.
G1 X1.47 Z-18.954
G2 X17.97 Y29. Z-19.859 I0. J-16.5
G1 Y6. Z-20.662
G2 X6.47 Y-5.5 Z-21.293 I-11.5 J0.
G1 X-6.47 Z-21.745
G2 X-17.97 Y6. Z-22.376 I0. J11.5
G1 Y29. Z-23.179
G2 X-1.47 Y45.5 Z-24.084 I16.5 J0.
G1 X1.47 Z-24.186
G2 X17.97 Y29. Z-25.092 I0. J-16.5
G1 Y6. Z-25.895
G2 X6.47 Y-5.5 Z-26.526 I-11.5 J0.
G1 X-6.47 Z-26.977
G2 X-17.97 Y6. Z-27.608 I0. J11.5
G1 Y29. Z-28.411
G2 X-1.47 Y45.5 Z-29.316 I16.5 J0.
G1 X1.47 Z-29.419
G2 X17.97 Y29. Z-30.324 I0. J-16.5
G1 Y6. Z-31.127
G2 X6.47 Y-5.5 Z-31.758 I-11.5 J0.
G1 X-6.47 Z-32.21
G2 X-17.97 Y6. Z-32.841 I0. J11.5
G1 Y29. Z-33.644
G2 X-1.47 Y45.5 Z-34.549 I16.5 J0.
G1 X1.47 Z-34.652
G2 X17.97 Y29. Z-35.557 I0. J-16.5
G1 Y6. Z-36.36
G2 X6.47 Y-5.5 Z-36.991 I-11.5 J0.
G1 X-6.47 Z-37.443
G2 X-17.97 Y6. Z-38.074 I0. J11.5
G1 Y29. Z-38.877
G2 X-1.47 Y45.5 Z-39.782 I16.5 J0.
G1 X1.47 Z-39.884
G2 X17.97 Y29. Z-40.79 I0. J-16.5
G1 Y6. Z-41.593
G2 X6.47 Y-5.5 Z-42.224 I-11.5 J0.
G1 X-6.47 Z-42.675
G2 X-17.97 Y6. Z-43.306 I0. J11.5
G1 Y29. Z-44.109
G2 X-1.47 Y45.5 Z-45.015 I16.5 J0.
G1 X1.47 Z-45.117
G2 X17.97 Y29. Z-46.022 I0. J-16.5
G1 Y6. Z-46.825
G2 X6.47 Y-5.5 Z-47.456 I-11.5 J0.
G1 X-6.47 Z-47.908
G2 X-17.97 Y6. Z-48.539 I0. J11.5
G1 Y29. Z-49.342
G2 X-1.47 Y45.5 Z-50.247 I16.5 J0.
G1 X1.47 Z-50.35
G2 X17.97 Y29. Z-51.255 I0. J-16.5
G1 Y6. Z-52.058
G2 X6.47 Y-5.5 Z-52.689 I-11.5 J0.
G1 X-6.47 Z-53.141
G2 X-17.97 Y6. Z-53.772 I0. J11.5
G1 Y29. Z-54.575
G2 X-1.47 Y45.5 Z-55.48 I16.5 J0.
G1 X1.47 Z-55.583
G2 X17.97 Y29. Z-56.488 I0. J-16.5
G1 Y6. Z-57.291
G2 X6.47 Y-5.5 Z-57.922 I-11.5 J0.
G1 X-6.47 Z-58.374
G2 X-17.97 Y6. Z-59.004 I0. J11.5
G1 Y29. Z-59.808
G2 X-1.47 Y45.5 Z-60.713 I16.5 J0.
G1 X1.47 Z-60.815
G2 X17.97 Y29. Z-61.72 I0. J-16.5
G1 Y6. Z-62.524
G2 X6.47 Y-5.5 Z-63.154 I-11.5 J0.
G1 X-6.47 Z-63.606
G2 X-17.97 Y6. Z-64.237 I0. J11.5
G1 Y29. Z-65.04
G2 X-1.47 Y45.5 Z-65.945 I16.5 J0.
G1 X1.47 Z-66.048
G2 X17.97 Y29. Z-66.953 I0. J-16.5
G1 Y6. Z-67.756
G2 X6.47 Y-5.5 Z-68.387 I-11.5 J0.
G1 X-6.47 Z-68.839
G2 X-17.97 Y6. Z-69.47 I0. J11.5
G1 Y29. Z-70.273
G2 X-1.47 Y45.5 Z-71.178 I16.5 J0.
G1 X1.47 Z-71.281
G2 X17.97 Y29. Z-72.186 I0. J-16.5
G1 Y20. Z-72.5
Y6. F600.
G2 X6.47 Y-5.5 I-11.5 J0.
G1 X-6.47
G2 X-17.97 Y6. I0. J11.5
G1 Y29.
G2 X-1.47 Y45.5 I16.5 J0.
G1 X1.47
G2 X17.97 Y29. I0. J-16.5
G1 Y20.
G3 X18.97 Y19. I1. J0.
G1 X19.97
G18 G2 X20.97 Z-71.5 I0. K1.
G0 Z10.
G17

M9
G28 G91 Z0.
G90
G28 G91 X0. Y0.
G90
M30

0 Likes
Reply
317 Views
3 Replies
Replies (3)

jimskeet2002
Advocate
Advocate

Your code looks like the photo I attached. If your machine does anything other than what the photo shows, it is an issue with the machine and not the code. Maybe losing steps or something?

 

0 Likes

andrei2306KSQQ6
Participant
Participant

i found where is the problem if i delete the first part and the last part the code is good but now i neet to know how to change in my post processor to don't generate the first part and last part

(1001)
(T2  D=10. CR=0. - ZMIN=-72.5 - FLAT END MILL)
G90 G94 G91.1 G40 G49 G17
G21
G28 G91 Z0.
G90

M9
G28 G91 Z0.
G90
G28 G91 X0. Y0.
G90
M30

0 Likes

Arun.rs
Autodesk
Autodesk

HI @andrei2306KSQQ6 

 

Thanks for raising your concern via Forum.

 

You can remove the NC codes ( not required ) by simply commenting the respective code snippets from post.

To edit the post you can use the Visual Studio code.

 

For detail info about the post editing please refer the  FAQ link 

 

1. To omit the codes from header

   a. Go to line number 338

   b. Put'//' in front of below codes. 

 writeBlock(gAbsIncModal.format(90), gFeedModeModal.format(94), gFormat.format(91.1), gFormat.format(40), gFormat.format(49), gPlaneModal.format(17));

 

 switch (unit) {
  case IN:
    writeBlock(gUnitModal.format(20));
    break;
  case MM:
    writeBlock(gUnitModal.format(21));
    break;
  }

 c. Go to line number 774. Give condition in 'writeRetract(Z);' to omit the homing codes from header but it will appear after tool change.

// retract to safe plane
    if (!isFirstSection()) {
      writeRetract(Z);
    }

  OnProg.png

2. To omit codes for program end

    a. Searh 'function onClose() '

    b. Put'//' in front of below codes. 

//setCoolant(COOLANT_OFF);
//writeRetract(Z);
// writeRetract(X, Y);

OnCLose.png

 

Regards

 



Arun.RS
Technical Consultant - Post Processor
0 Likes