Fusion Educators
Are you an educator who uses Fusion (formerly Fusion 360) in their courses in secondary and post-secondary? This is the official Autodesk forum for educators like yourself to share the success you are having with Fusion in the classroom.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Generating G codes for lathe

10 REPLIES 10
Reply
Message 1 of 11
amalgp05
294 Views, 10 Replies

Generating G codes for lathe

Hi, I am pretty new to fusion 360. I was trying to generate the G codes and tool path for lathe. Everything went well with simulation and generate the code. But U find values with 3 decimal points instead of no decimal points. To keep it simple for first time all my material suze and cuts are with no decimal points. Pls hekp me with this

10 REPLIES 10
Message 2 of 11
kellings
in reply to: amalgp05

Hi @amalgp05 What post processor are you using? Can you share a link to your file so I can have a look? You can right click on on the file and choose share link and then check the box to make sure the file can be downloaded. You can also go to the file menu and choose export and export the file as a .f3d archive file and then attach that here. Either method will allow me to have a look and see what is going on. 


Thanks,

 

Kevin

Kevin Ellingson
Technical Specialist

If my post resolves your issue, please click the Accept Solution button.
Message 3 of 11

Hi @amalgp05 

I'm not 100% what exactly your issue is?

Questions:

  • Are you able to post programs with code that will properly run your machine?
  • Is the issue that you prefer it to post programs with no decimal points and you are getting three decimals?
    • Example: You prefer 1. and you are getting 1.000?
      • If this is what you require you will need a custom post for this. I can connect you with someone who can do this for a fee. 
      • You will need to be ready to answer questions like, "How do you want to round numbers?"
  • What post processor are you using?
  • What machine are you using?

I just posted a turning program with the generic Haas turning post that you can find in the post library online here

https://cam.autodesk.com/hsmposts?p=haas_turning

 

Here is the code I posted with the above post....

To me it looks like it posts the amount of decimal places it needs up to 4. 

%
O1001
N10 G98 G18
N11 G20
N12 G50 S6000
N13 M31
N14 G53 G0 X0.
N15 G53 G0 Z0.

(Profile Roughing1)
N16 T808
N17 G99
N18 M22
N19 G97 S859 M3
N20 G54
N21 M8
N22 G0 X2.9181 Z0.2559
N23 G50 S5000
N24 G96 S656 M3
N25 G0 Z0.033
N26 X2.0394
N27 G1 Z-2.4543 F0.04
N28 X2.1181
N29 X2.1981 Z-2.4143
N30 G0 Z0.033

Message 4 of 11

hi @amalgp05 Were you able to make any progress on this? let us know how we can help.

 

Thanks,

Kevin Ellingson
Technical Specialist

If my post resolves your issue, please click the Accept Solution button.
Message 5 of 11
amalgp05
in reply to: amalgp05

Thanks everyone, sorry for the dalayed reply.

 

below is the screen shot of my facing prg.  All the values and depth of cuts I gave are with no decimal points. so, I was expecting my prg to be X102.0 Instead of 102.828. Same with Z1.414 instead of Z2. or 1.

 I really want to fix it. because these prg need to go the machine shop and makes operators life easier

 

For the reference I am using a fully licensed software

 

 

 

 

 

 

 

Screenshot (2).png

Message 6 of 11
kellings
in reply to: amalgp05

Hi @amalgp05 Can you post your file or a link to your file? You can right click on your file in the data panel and choose share link and then paste that here. 

 

Kevin

Kevin Ellingson
Technical Specialist

If my post resolves your issue, please click the Accept Solution button.
Message 7 of 11

Need to see your fusion file. Please share. 

Message 8 of 11
amalgp05
in reply to: amalgp05

https://a360.co/3DOMatn

 

I hOPE THATS THE LINK. AND IT WORKS

Message 9 of 11
seth.madore
in reply to: amalgp05

Just so you're all aware, this is a double post, the other conversation is occurring HERE

It's not clear to me that this is actually an "Educators" oriented question. It's also not clear at all what the customer is trying to accomplish.... 


Seth Madore
Customer Advocacy Manager - Manufacturing
Message 10 of 11

@amalgp05 

I reviewed your file. 

Here are a few points:

  • Please don't duplicate posts. Additionally, this specific group is intended for educators. If you are a commercial customer please keep your questions to the group you posted HERE 
  • I reviewed your file, added three finishing profile tool paths with different cutter comps and posted it using the generic Haas turning post. The way it is posting will generate good code that will produce good parts. 
  • If micromanaging very specific code output is a requirement for you, I don't think you will be happy using ANY CAM software to program your'e lathe. I have to admit that I lived through this same struggle when I switched from hand programming lathes to CAM programming lathes 20 years ago. I encourage you to play with different settings, post code, understand what settings change what in the code, run some programs and learn to trust the system. I don't even look at the code anymore after the first few times I post using a new post for a new machine. I trust the system and I'm very productive 

Good luck. Here is the code...

 

%
O1001
N10 G98 G18
N11 G21
N12 G50 S6000
N13 M31
N14 G53 G0 X0.
N15 G53 G0 Z0.

(Profile Finishing1 in control comp)
N16 T202
N17 G99
N18 M22
N19 G97 S531 M3
N20 G54
N21 M8
N22 G0 X120. Z6.
N23 G50 S5000
N24 G96 S200 M3
N25 G0 Z5.614
N26 X63.233
N27 G1 X62.828 F1.
N28 G18
N29 G1 G42 X60. Z5.
N30 Z-40.
N31 X107.071 Z-63.536
N32 G40 X110.602 Z-63.77
N33 X110.956
N34 G0 X120.
N35 Z6.
N36 G97 S531 M3

(Profile Finishing1 in computer comp)
N37 G0 X120. Z6.
N38 G50 S5000
N39 G96 S200 M3
N40 G0 Z5.614
N41 X63.233
N42 G1 X62.828 F1.
N43 X60. Z4.2
N44 Z-40.469
N45 X106.602 Z-63.77
N46 X110.602
N47 X110.956
N48 G0 X120.
N49 Z6.
N50 G97 S531 M3

(Profile Finishing1 Wear comp)
N51 G0 X120. Z6.
N52 G50 S5000
N53 G96 S200 M3
N54 G0 Z5.614
N55 X63.233
N56 G1 X62.828 F1.
N57 G42 X60. Z4.2
N58 Z-40.469
N59 X106.602 Z-63.77
N60 G40 X110.602
N61 X110.956
N62 G0 X120.
N63 Z6.
N64 G97 S531 M3

N65 M9
N66 M33
N67 G53 G0 X0.
N68 G53 G0 Z0.
N69 M30
%

 

 

Message 11 of 11

Good catch. Thanks @seth

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

Post to forums  

You've got Fusion.


Autodesk Design & Make Report