this post was submitted on 20 Mar 2024
222 points (97.8% liked)

Asklemmy

43962 readers
1133 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS
 

Looking forward to seeing some interesting jobs I haven't really thought about. Bonus points if it's an IT job.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] jawa21@lemmy.sdf.org 2 points 8 months ago

I worked with Fanuc control machines for 20 years up until 2023. Sounds like you were needlessly in macro hell. Just declaring an offset will use either an H (typically height) or D (typically a radius offset in Fanuc controls, but sometimes they are setup for diameter).

It would go something like this:

G40G49G80G90 (CLEARS OUT POTENTIALLY PREVIOUS GCODES);


T1M06 (EXECUTES A TOOL CHANGE, LEAVE OUT M06 IF JUST DECLARING THE TOOL);


G43H01 (DECLARES H01 AS THE HEIGHT OFFSET);

G00ZO.O1 (MOVES THE TOOL 0.01 ABAOVE WORK);

G41D01X1.0 (DECLARES LEFT HAND TOOL OFFSET AS D01);

You don't need true macro variables for 9/10 applications, or general operation. I feel like you got placed on some overenginered solution.