Bad character U.

More
12 Feb 2025 20:22 - 12 Feb 2025 20:26 #321379 by frosted_jono
Bad character U. was created by frosted_jono
Hey,

I am completely new to CNC and linux so forgive me for the dumb question.

I have a CNC lathe (Emco compact 4) with LinuxCNC and I have an issue issue with my gcode.

I posted my CAM in fusion 360 using the LinuxCNC Lathe post processor. When I load the g-code into LinuxCNC on my lathe i get an error Bad character 'U'. From what I can tell it's becasue of G28 U0? Should it be X0 instead of U0? Likewise for W0 should be Z0? Can i just change the code to this and run it? Why does Fusion 360 create U and W axis instead of X and Z? Have I set something up incorrectly in CAM? Or is it the incorrect post processor? Or something wrong with my machine's LinuxCNC? Pasted my code below. 

Thanks for any help.

%
(1001)
N10 G7
N11 G90 G18
N12 G21
N13 G28 U0.
N14 G28 W0.

(FACE3)
N15 T2 M6
N17 G90 G95 G18
N18 G54
N19 G97 S1516 M3
N20 G0 X42. Z5.
N21 G96 D3500 S200 M3
N22 G0 Z0.414
N23 X22.
N24 G1 X14.828 F1.
N25 X12. Z-1.
N26 X-0.8 F0.5
N27 X2.028 Z0.414 F1.
N28 G0 X42.
N29 Z5.
N30 G97 S1516 M3

N31 M5
N32 G28 U0.
N33 G28 W0.
N34 M30
%


 
Last edit: 12 Feb 2025 20:26 by frosted_jono.

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

  • Hakan
  • Away
  • Platinum Member
  • Platinum Member
More
12 Feb 2025 23:08 #321392 by Hakan
Replied by Hakan on topic Bad character U.
If you just want to turn something you can delete lines N32 and N33.
It's the Fusion360 preprocessor that adds those two lines, don't know if there is a setting for the two extra axis U and W.

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

  • Hakan
  • Away
  • Platinum Member
  • Platinum Member
More
13 Feb 2025 07:48 #321421 by Hakan
Replied by Hakan on topic Bad character U.
Back at the computer. From what I can see you should get rid of that when you select G53 for the safe retracts
 
Attachments:

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

More
13 Feb 2025 09:02 #321426 by frosted_jono
Replied by frosted_jono on topic Bad character U.
Thank you Håkan. I will try that :)

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

More
13 Feb 2025 11:36 #321433 by spumco
Replied by spumco on topic Bad character U.
On Fanuc lathe controls, "U" and "W" are incremental moves for X and Z.

I suspect many of the F360 posts are recycled Fanuc ones, and then edited to make them work for the intended control.  Sometimes stuff gets left in that doesn't make sense.

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

More
13 Feb 2025 19:41 #321467 by frosted_jono
Replied by frosted_jono on topic Bad character U.
Yes this has fixed it! Thanks again.

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

More
13 Feb 2025 19:43 #321468 by frosted_jono
Replied by frosted_jono on topic Bad character U.
I did read about the incremental moves for X and Y, but seems like that doesn't work for the lathe I am using.

Interesting idea about the Fanuc.

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

Time to create page: 0.123 seconds
Powered by Kunena Forum