Community
Fusion Manufacture
Talk shop with the Fusion (formerly Fusion 360) Manufacture Community. Share tool strategies, tips, get advice and solve problems together with the best minds in the industry.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Modifying Post and Remove Home

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
edwardproj
229 Views, 2 Replies

Modifying Post and Remove Home

Hello,

 

Currently modifying a post for a control I'm testing, I've done a couple of bits but I'm not very efficient at this yet, so hoping someone can help me.

 

Take the code below for example, 

I would like to cancel the tool length compensation before home position, so I would like the G49 to be above the G53 line and not below it. G28 home cycles my machine which is very slow, but if I home with G53 I will get an over-travel alarm unless I cancel the tool length compensation, since this is the last line it's ok to cancel while the tool is down near the work.

After the G80 cancels the cycle I would like the Z0.6 to have a G00 command in front of it, to speed things up. Or alternatively if that cannot be done, a feed of 200 next to it. 

(DRILL1)
N305 M01
N310 G121 T3
N315 S800 M03
N320 G17 G90 G94
N325 G54
N330 G00 X-1.25 Y-0.1875
N335 G43 Z0.6 H03
N340 G00 Z0.2
N345 G98 G81 X-1.25 Y-0.1875 Z-0.05 R0.2 F4.
N350 G80
N355 Z0.6
N360 M05
N365 G53 G00 Z0.
N370 G49

 

At the very end of the program I only want it to go to home in Z, so I would like to delete out the X,Y home lines.

Lastly, at the end I would like it to change back to tool 1, so before the M30 I would like the line G121 T1 (A custom macro I wrote for the tool change on my machine).

 

N435 M05
N440 M09
N445 G53 G00 Z0.
N450 G49
N455 G53 G00 X0. Y0.
N460 M30

 

 

I would greatly appreciate the help, thanks !

Attached is my post

2 REPLIES 2
Message 2 of 3
a.laasW8M6T
in reply to: edwardproj

Hi

Heres a wee vid on how you can edit posts

 

I Got the G49 before the G53 just by inserting the

 writeBlock(gFormat.format(49)); there but its kind of a hack and probably not how you should do it. It should work ok though but test carefully.
 
Also added the T1 after the G121(i missed that in the video)
Message 3 of 3
edwardproj
in reply to: edwardproj

Thank you so very much!

 

I had some ideas how to change and edit stuff but was scrolling through the whole post trying to find the right sections to change, your video has just made things so much easier now, I never knew I could view the output code at the same time / use it to locate the right section in the post.

 

I'll do a bit of playing myself, but thanks again, I really appreciate it!

 

Edit:

I thought I should add this incase it helps anyone else out. So I was still getting the G49 before the G53 if there was an upcoming tool change. For example this would be my code;

 

N290 G17
N295 M05
N305 G53 G00 Z0.
N310 G49

(DRILL1)
N310 G49
N315 M01
N320 G121 T3
N325 S800 M03

 

 

I found the point in the post where it asks if it already has the correct tool or needs to change. If I added the function disableLengthComp it would throw an error, so instead opted to write the G code manually, I then commented out the second iteration if the G49.

 

 

  if (insertToolCall || newWorkOffset || newWorkPlane || smoothing.cancel) {
    if (insertToolCall && !isFirstSection()) {
      onCommand(COMMAND_STOP_SPINDLE); // stop spindle before retract during tool change  
    }
    writeBlock(gFormat.format(49));
    writeRetract(Z); // retract
    if (isFirstSection() && machineConfiguration.isMultiAxisConfiguration()) {
      setWorkPlane(new Vector(0, 0, 0)); // reset ABC axes / working plane
      forceABC();
    }
    forceXYZ();
    if ((insertToolCall && !isFirstSection()) || smoothing.cancel) {
      //disableLengthCompensation();
      setSmoothing(false);
    }
  }

 

So now I get the correct output

N290 G17
N295 M05
N300 G49
N305 G53 G00 Z0.

(DRILL1)
N310 G49
N315 M01
N320 G121 T3

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report