Post processor for Gun grill machine

Post processor for Gun grill machine

mechmansolution
Contributor Contributor
1,807 Views
12 Replies
Message 1 of 13

Post processor for Gun grill machine

mechmansolution
Contributor
Contributor

I Have two Gundrill machines and i want to use fusion 360 in that machine in my one of machine i am using generic Fanuc post processor for machining, my machine has different drill cycles, i am attaching one file with program comparison. I want post modifications as per my sample

0 Likes
1,808 Views
12 Replies
Replies (12)
Message 2 of 13

KrupalVala
Autodesk
Autodesk

Hi @mechmansolution ,

 

I m not cleared with the "Required program for drill" format. Don't you need G80 at the end of the canned cycle? What is the "E5."?

 

For the post-modification please open your post in any editor and Go to function onCyclePoint(x, y, z) { . Now search the below code and replace it from these

  if (isFirstCyclePoint() || isProbeOperation()) {
    if (!isProbeOperation()) {
      // return to initial Z which is clearance plane and set absolute mode
      repositionToCycleClearance(cycle, x, y, z);
    }

    var F = cycle.feedrate;
    if (getProperty("useG95")) {
      F /= spindleSpeed;
    }
    var P = !cycle.dwell ? 0 : clamp(1, cycle.dwell * 1000, 99999999); // in milliseconds

    var forceCycle = false;
    switch (cycleType) {
    case "drilling":
      writeBlock(
        gRetractModal.format(98), gCycleModal.format(81),
        getCommonCycle(x, y, z, cycle.retract, cycle.clearance),
        feedOutput.format(F)
      );
      break;

to these.

if (true) {
    // if (!isProbeOperation()) {
    //   // return to initial Z which is clearance plane and set absolute mode
    //   repositionToCycleClearance(cycle, x, y, z);
    // }
    gCycleModal.reset();
    gRetractModal.reset();
    forceFeed();
  
    var F = cycle.feedrate;
    if (getProperty("useG95")) {
      F /= spindleSpeed;
    }
    var P = !cycle.dwell ? 0 : clamp(1, cycle.dwell * 1000, 99999999); // in milliseconds
    
    var forceCycle = false;
    switch (cycleType) {
    case "drilling":
      writeBlock(gFormat.format(currentWorkOffset + 53),gAbsIncModal.format(90),
        gRetractModal.format(99), gCycleModal.format(81),
        getCommonCycle(x, y, z, cycle.retract, cycle.clearance)
      );
      writeBlock(
        feedOutput.format(F)+"D1"+sOutput.format(spindleSpeed));
      break;

 save the post and test it.

 

Thanks



Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation
0 Likes
Message 3 of 13

mechmansolution
Contributor
Contributor
DEAR SIR...
THANKS FOR REPLY

I CKECKED YOUR MODIFICATION IN THAT Z VALUE IS CHANGED WITH W VALUE FOR
YOUR BETTER UNDERSTANDING I AM GIVEING YOU REFERENCE FOR E AND W VALUE...
FIRST IS MY SAMPLE PROGRAM

N100 G90
N101 G54
N102 G00 G90 X15.5549 Y-21.9028
N103 G90G81 G98 X15.5549 Y-21.9028 Z10.0 W-20 R5 E5 F1000.0 D10S1500
N104 G90G81 G98 X44.2336 Y-22.4696 Z10.0 W-20 R5 E5 F1000.0 D10S1500
N105 G90G81 G98 X69.6251 Y-22.3562 Z10.0 W-20 R5 E5 F1000.0 D10S1500
N106 M30

HERE ARE THE VALUE FOR...
*X* and *Y* IS POSITION OF DRILL
*Z *IS ABOVE HIGHT OF STOCK
*W* IS DEPTH OF DRILL
*R *AND *E *BOTH SAME VALUE, THIS IS Drilling Clear Plane
*F *IS FEED OF DRILL
*D *IS DIAMETER OF DRILL
*S *IS DRILL RPM

WE REQUIRED SAME PROGRAM OF ABOVE
0 Likes
Message 4 of 13

KrupalVala
Autodesk
Autodesk

Hi @mechmansolution ,

 

For that, You have to create a variable (var eOutput ) and assigned a parameter to it as shown below.

 

KrupalVala_0-1615538609917.png

 

KrupalVala_1-1615539182570.png

 

To remove G80 at end of the homemaking operation, remove the gCycleModal.format(80) from below location.

KrupalVala_2-1615539409760.png

 

save the modification and test it.
Please note, the current modification which we did is only for "drilling". If you wish it in other cycles you can do it in the same way.

 

Thanks,



Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation
0 Likes
Message 5 of 13

mechmansolution
Contributor
Contributor

please send me this post

0 Likes
Message 6 of 13

milanpatel001994
Explorer
Explorer

Dear sir.

 

Thank you for your mail. as per your replay i tried to update script but i think i am doing something wrong, so can you provide me script the way you gave earlier, i will replace that and check it will be very helpful if you can provide me that.

0 Likes
Message 7 of 13

KrupalVala
Autodesk
Autodesk

HI @milanpatel001994 ,

 

Could you please tell me what error you are getting after the modification? 

 

thanks,



Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation
0 Likes
Message 8 of 13

mechmansolution
Contributor
Contributor
dear sir,

I am attaching my model for reference and post which I have modified. My E
value and R values are wrong.
I am giving you bifurcation for all the codes.

N100 G90
N101 G54
N102 G00 G90 X15.5549 Y-21.9028
N103 G90G81 G98 X15.5549 Y-21.9028 Z10.0 W-20 R5 E5 F1000.0 D10S1500
N104 G90G81 G98 X44.2336 Y-22.4696 Z10.0 W-20 R5 E5 F1000.0 D10S1500
N105 G90G81 G98 X69.6251 Y-22.3562 Z10.0 W-20 R5 E5 F1000.0 D10S1500
N106 M30

HERE ARE THE VALUE FOR...
*X* and *Y* IS POSITION OF DRILL
*Z *IS ABOVE HIGHT OF STOCK
*W* IS DEPTH OF DRILL
*R *AND *E *BOTH SAME VALUE, THIS IS Drilling Clear Plane
*F *IS FEED OF DRILL
*D *IS DIAMETER OF DRILL
*S *IS DRILL RPM

0 Likes
Message 9 of 13

KrupalVala
Autodesk
Autodesk

HI @mechmansolution ,

 

Please attached the modified post.I will check and let you know.

Thanks,



Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation
0 Likes
Message 10 of 13

mechmansolution
Contributor
Contributor
Please find attached for your reference
0 Likes
Message 11 of 13

mechmansolution
Contributor
Contributor

find attached post for your reference 

0 Likes
Message 12 of 13

KrupalVala
Autodesk
Autodesk

HI @mechmansolution ,

 

Please update the canned cycle format as shown below,

if (true) {
    // if (!isProbeOperation()) {
    //   // return to initial Z which is clearance plane and set absolute mode
    //   repositionToCycleClearance(cycle, x, y, z);
    // }
    gCycleModal.reset();
    gRetractModal.reset();
    gAbsIncModal.reset();
    forceFeed();
  
    var F = cycle.feedrate;
    if (getProperty("useG95")) {
      F /= spindleSpeed;
    }
    var P = !cycle.dwell ? 0 : clamp(1, cycle.dwell * 1000, 99999999); // in milliseconds
    var d = tool.diameterOffset;
    dOutput.reset(); // force output
    eOutput.reset(); // force output
   
    var forceCycle = false;
    switch (cycleType) {
    case "drilling":
      forceXYZ();
      wOutput.reset();
      writeBlock(gAbsIncModal.format(90), gCycleModal.format(81),gRetractModal.format(98),gCycleModal.format(81),
      xOutput.format(x), yOutput.format(y),wOutput.format(z),zOutput.format(cycle.clearance),
      "R" + xyzFormat.format(cycle.retract),"E" + xyzFormat.format(cycle.retract),
      feedOutput.format(F),dOutput.format(d),sOutput.format(spindleSpeed));
      break;

 

Save the post modification and test it.

 

Thanks,



Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation
0 Likes
Message 13 of 13

mechmansolution
Contributor
Contributor

thank sir... as per your valuable reply... 

 

thanks your support 

 

%
N1 G90
N3 G54
N4 G00 X30. Y-30.
N5 G00 Z15.
N6 G90 G81 G98 X30. Y-30. Z5. W-50. R5. E5. F437. D01 S1455
N7 G90 G81 G98 X-30. Y-30. Z5. W-50. R5. E5. F437. D01 S1455
N8 G90 G81 G98 X-30. Y30. Z5. W-50. R5. E5. F437. D01 S1455
N9 G90 G81 G98 X30. Y30. Z5. W-50. R5. E5. F437. D01 S1455
N10 Z15.
N11 G17
N15 M30
%
 
complete output... 
0 Likes