G71 in LinuxCNC 2.9

More
5 years 8 months ago - 5 years 8 months ago #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: 5 years 8 months ago by Barry. Reason: Clarification

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

More
5 years 8 months ago #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
5 years 8 months ago #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
5 years 8 months ago #198253 by andypugh
Replied by andypugh on topic G71 in LinuxCNC 2.9

Barry wrote: 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
5 years 8 months ago - 5 years 8 months ago #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: 5 years 8 months ago by Barry. Reason: Disconnected from modum before finishing

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

More
5 years 8 months ago #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.

Time to create page: 1.283 seconds
Powered by Kunena Forum