Fanuc G71 G72 equivalent

More
6 years 4 months ago #172077 by andypugh
Replied by andypugh on topic Fanuc G71 G72 equivalent
G71 and G72 now exist built-in to Master:
linuxcnc.org/docs/master/html/gcode/g-code.html#gcode:g71-g72

And that version has different code-letter allocations.

So you have a choice of running the master (devlopment, unstable) version of LinuxCNC from the buildbot, or remapping your existing installation. (and then learning new letter allocations when 2.9 comes out)

To apply the remap, put the whole "python" folder from here in your config folder,
github.com/LinuxCNC/linuxcnc/tree/andypu...configs/sim/axis/g71
And then make these edits to your INI:
github.com/LinuxCNC/linuxcnc/blob/andypu...is/g71/lathe.ini#L39

(ie, work lines 39 to 44 into your own INI in the RS274NGC section)

Please Log in or Create an account to join the conversation.

More
6 years 4 months ago #172138 by Barry
Replied by Barry on topic Fanuc G71 G72 equivalent
1st, thank you for the quick reply. You saved me many many hours of struggling and I greatly appreciate it.

2nd yup, I was successful in the end and got the program running following your directions! Yeah! :) However, a few extra steps were required as listed below.

1) Links for toplevel.py and remap.py had to be placed in the Python Path under usr/lib/python2.7/dist-packages so the program could find the files.
2) There were some commands used in the remap.py that required Machinekit to be downloaded from the git hub.
3) AXES=3 needed to be inserted under [TRAJ] in the .ini file

3rd would you be willing to post a couple of simple examples to use to trial the G71 code to get me going more quickly? I'm not sure I fully understand how to get the most out of this roughing cycle program. I can only seem to get it to follow the final profile right now so I know I'm doing something wrong.

Thank you again,

Barry

Please Log in or Create an account to join the conversation.

More
6 years 4 months ago #172139 by andypugh
Replied by andypugh on topic Fanuc G71 G72 equivalent

Barry wrote: 2) There were some commands used in the remap.py that required Machinekit to be downloaded from the git hub.


Are you running LinuxCNC or Machinekit? That's an either / or situation.

3rd would you be willing to post a couple of simple examples to use to trial the G71 code to get me going more quickly?


Look at the files that begin "G71" here: github.com/LinuxCNC/linuxcnc/tree/andypu...1type2remap/nc_files

Please Log in or Create an account to join the conversation.

More
6 years 4 months ago #172168 by Barry
Replied by Barry on topic Fanuc G71 G72 equivalent
OMG! Thank you! :) Your remap G71 program is amazing!!!!! It does everything that I need. The examples you directed me to helped greatly!

As for the need for Machinekit....I didn't realize that it was an either or deal where you were either running Linuxcnc or Machinekit. Based on your comment and experience I was obviously wrong about the need to download Machinekit. Thank you for educating me on that. I am definitely running LinuxCNC.

What made me think I needed to download Machinekit was that when I did a "locate" command in a terminal to find the stdglue, cycle_prolog, cycle_epilog, init_stdglue commands used in your program, I didn't think that those commands were found. It seemed that after I downloaded Machinekit those commands became available. Again I may have overlooked something here because I was at the beginning of a very steep learning curve and trying a lot of things to get everything working.

Thank you again.

Have a great week,

Barry

Please Log in or Create an account to join the conversation.

More
6 years 4 months ago #172262 by rudydp
Replied by rudydp on topic Fanuc G71 G72 equivalent
In master there seems to be a problem when using G71. When running the demo profile and stopping the program while running, eg. to edit the program and change some parameter, and then reloading, an error in the gcode is given. The only way out seems to be to restart axis.

Please Log in or Create an account to join the conversation.

More
6 years 4 months ago - 6 years 4 months ago #172528 by Barry
Replied by Barry on topic Fanuc G71 G72 equivalent
Does anyone know how to correct what appears to be a coding error for G72?

Per the information on this G-Code, "G72 works identically to the G71 cycle except that the axes used for feed and cut are swapped as are the effects of K& I and L&J." So therefore, Parameter L should control the amount of extra material left in the radial direction during rough cuts prior to the finishing passes, and it does, so Parameter L works properly. Whereas Parameter J should control the amount of extra material left in the axial direction during rough cuts prior to the finishing passes. However, instead it shifts the entire cut by the input value. The attached document shows the issue visually.

This browser does not support PDFs. Please download the PDF to view it: Download PDF

Parameters I & K do not appear to control anything but I think this is due to incomplete code and not a coding error.

G71 appears to work correctly. Parameter J leaves material in radial direction and Parameter L leaves material in the axial direction prior to the finishing pass. Parameters I & K do not appear to control anything but I think this is due to incomplete code and not a coding error.

Thank you,

Barry
Last edit: 6 years 4 months ago by Barry. Reason: I hit submit too soon. Added an attachment

Please Log in or Create an account to join the conversation.

Time to create page: 0.394 seconds
Powered by Kunena Forum