G71 in LinuxCNC 2.9

More
10 Feb 2021 00:04 - 10 Feb 2021 05:25 #198226 by Barry
G71 in LinuxCNC 2.9 was created by Barry
Can anyone please provide a G71 example script showing how to successfully use the G71 code in Linux 2.9 and please help me trouble-shoot the error message that I'm getting? I am using Debian Buster with Linux/Axis version 2.9.0pre-3505-g7e326429e. The man-page (github.com/LinuxCNC/linuxcnc/blob/andypu...src/gcode/g-code.txt ) shows the order of the codes following G71 but provides no examples of a script. Using the man-page information I tried the script shown below and got the following error message:
=========================================================
Error: "J word with no G2,G3, G5, G5.1 G19 G76 or G87 to use it"
=========================================================
G18 G21 G91.1
T0 M06 G43
S2000 M03
G0 X15 Z8.0 (Start Position before commanding the cycle)
G71 P100 D1 R1 J1 L1 I0.5 K1 F900 S1000 T0
O100 PROFILE
G0 X5 Z-1
G1 Z10
G3 Z10 Z15 R-4
G1 Z20
G2 X15 Z25 R-5.5
G1 X18
G1 X20 Z28
G1 X25
O100 ENDPROFILE

M2
=======================================================
So I deleted the J word and then got the error message

Error: "K word with no G2,G3, G5, G5.1 G19 G76 or G87 to use it"
=======================================================

I'm guessing that the G71 code is not seeing the profile commands below it. So I tried replacing the words "PROFILE and ENDPROFILE" with "SUB and ENDSUB" since this is what works using the G71/G72 remap script (at github.com/LinuxCNC/linuxcnc/tree/andypu...configs/sim/axis/g71) under LinuxCNC 2.8, ....but I got the same error message.

Also I noticed that when using LinuxcCNC 2.9 Stepconf, the only choice for a ParPort designation was 0 and it can't be changed without going into Hal and manually changing it....I'm not sure if this information needs to be passed along to the developers but if so, please let me know if I need to be in a different forum to highlight this.

Thank you,

Barry
Last edit: 10 Feb 2021 05:25 by Barry. Reason: Clarification

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

More
10 Feb 2021 03:04 #198238 by cmorley
Replied by cmorley on topic G71 in LinuxCNC 2.9
I don't know anything about g71 but the stepconf - does 0 or 1 not work?
I'm not sure why i was changed to not accept entry but the parport number should work.

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

More
10 Feb 2021 05:38 #198246 by Barry
Replied by Barry on topic G71 in LinuxCNC 2.9
Thanks for the reply concerning parport selection issue....so I checked again just now and the only parport selection is 0 in Linuxcnc 2.9 StepConf. You cannot enter 1 nor can you enter any other port selection.

Hopefully someone can shed some light on the Linuxcnc 2.9 G71/G72 issue. I'm probably just over looking something that's an easy fix, but I'm out of ideas.

Thank you,

Barry

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

More
10 Feb 2021 09:20 #198253 by andypugh
Replied by andypugh on topic G71 in LinuxCNC 2.9

Can anyone please provide a G71 example script showing how to successfully use the G71 code


Have you looked in the nc_files directory? There should be three sample files with names beginning "lathe_g7......" in there.

They should be already part of your install. maybe under "sample files".

If not, look here:
github.com/LinuxCNC/linuxcnc/tree/master/nc_files

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

More
10 Feb 2021 19:55 - 10 Feb 2021 21:01 #198317 by Barry
Replied by Barry on topic G71 in LinuxCNC 2.9
Thank you very much! :) The G70/G71/G72 example files worked perfectly and they were extremely helpful! They covered all aspects of using the G7X codes. The files were built into the LinuxCNC 2.9 install as you pointed out under nc_files examples.

Interestingly, the information on the G7x codes at github.com/LinuxCNC/linuxcnc/blob/andypu...src/gcode/g-code.txt describes the parameter sequence as:

G71 P- D- R- J- L- I- K- F- S- T-

but the example files in LinuxCNC 2.9 shows the required parameter sequences need to be:

G70 Q- X- Z- E- D- P-
G71 Q- X- Z- D- I- R-
G72 Q- X- Z- D- I- R-

G71.1, G71.2, G72.1 and G72.2 are also included in LinuxCNC 2.9 and these G-codes work very well.

So far, I'm glad that I switched to LinuxCNC 2.9.

Thank you Andy once again for all your help and for supporting this community.

Have a great day,

Barry
Last edit: 10 Feb 2021 21:01 by Barry. Reason: Disconnected from modum before finishing

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

More
10 Feb 2021 20:04 #198320 by andypugh
Replied by andypugh on topic G71 in LinuxCNC 2.9
Yes, the remap used a rather different set of code letters to the integrated version. You should really use the documentation for LinuxCNC, not for the remap, sparse as it is.

linuxcnc.org/docs/devel/html/gcode/g-code.html#gcode:g71-g72

I have just noticed that G71 and G72 do not feature in
linuxcnc.org/docs/devel/html/gcode.html
The following user(s) said Thank You: Barry

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

More
10 Feb 2021 22:20 #198332 by Barry
Replied by Barry on topic G71 in LinuxCNC 2.9
In experimenting with the G71 code LinuxCNC 2.9 I found an issue very similar to one that I found in the G71 remap. If during the G71 cycle the Stop Button in Axis is pressed and then you try to restart or refresh the program, the following error message pops up and it will not go away without restarting Axis...

G7X error: Not monotonic.

However, if during the G71 cycle the E-stop Button in Axis is pressed and then you try to restart or refresh the program, the G71 program restarts without any issues.

Can this be listed as a bug somewhere on a wish list to resolve?

Thank you,

Barry

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

More
10 Feb 2021 23:11 #198335 by andypugh
Replied by andypugh on topic G71 in LinuxCNC 2.9

Can this be listed as a bug somewhere on a wish list to resolve?


Yes, you can add it to the issues list here:

github.com/LinuxCNC/linuxcnc/issues
The following user(s) said Thank You: Barry

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

More
11 Feb 2021 02:25 #198344 by Barry
Replied by Barry on topic G71 in LinuxCNC 2.9
Thank you. I added the Stop Button issue to the LinuxCNC issues list along with the Stepconf ParPort limited selection issue as well.

Thank you again,

Have a nice day,

Barry

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

More
14 Jun 2021 10:26 #212017 by MRx
Replied by MRx on topic G71 in LinuxCNC 2.9
I just tried the G71 command, and I'm missing an important feature compared with a HAAS controller
U and W
U .. Amout left on for finishing in X
W .. Amount left on for finishing Z



From the documentation:
G71 Q- <X-> <Z-> <D-> <I-> <R->
G71.1 Q- <X-> <Z-> <D-> <I-> <R->
G71.2 Q- <X-> <Z-> <D-> <I-> <R->
G72 Q- <X-> <Z-> <D-> <I-> <R->
G72.1 Q- <X-> <Z-> <D-> <I-> <R->
G72.2 Q- <X-> <Z-> <D-> <I-> <R->

now I'd like to make a small part with the parting tool only, but leaving some parts on the Z axis eliminates the advantage of G71 / G70 when the parting tool is installed.

>> When in absolute mode the U (for X) and W (for Z) can be used as
>> incremental displacements.

this I don't really understand, because there's no U/W in the command interface?

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

Time to create page: 0.081 seconds
Powered by Kunena Forum