Hello Guest it is April 28, 2024, 07:36:18 AM

Author Topic: "D1" in radius compensation G41/G42  (Read 1665 times)

0 Members and 1 Guest are viewing this topic.

Offline Vido

*
  •  25 25
    • View Profile
"D1" in radius compensation G41/G42
« on: July 25, 2023, 05:10:18 AM »
Hello!
I have a probably ridiculous question regarding the radius compensation in the program (MACH3): I want to include the required macros in the post processor, one of them is related to the radius compensation. A tool change is carried out (M06) or tool 1 is selected (T1) via the macro "M06 T01". The program (G code) says in the line: G01 G41 X10 Y20 D1! This "D1": do I have to have this written into the line of the program because I have declared the tool in the tool table of MACH3? I could only change the tool with "M06 T01" in the program and then switch the tool offset with the OEM code 136, shouldn't it also work? And a second question: I thought that "D" in the program line indicates the diameter of the tool. Since I found different things on various sites I'm not sure at the moment. So "D1" indicates the diameter of the tool or does "D1" say that the 1st entry is used for the tool offset?
For example:
In the tool table I have a tool at T1 and its diameter is 7 (see attachment).
Does the line in the G code now have to say "G01 G41 X10 Y10 D1" or "G01 G41 X10 Y10 D7"?

Thanks!
« Last Edit: July 25, 2023, 05:14:29 AM by Vido »