3 axis compensation with macro programing?

# Thread: 3 axis compensation with macro programing?

1. ## 3 axis compensation with macro programing?

Hey guys.
I need to know is it possible to use cutter comp in 3-axis Spiral milling in a circular pocket?

2. ## Re: 3 axis compensation with macro programing?

It should work by using cutter comp. But I normally measure the endmill, plug that value into the CAM program, and compile the G code with the correct endmill size. Optionally make a test cut, and adjust the comp in the CAM program.

3. ## Re: 3 axis compensation with macro programing?

Originally Posted by Jim Dawson
It should work by using cutter comp. But I normally measure the endmill, plug that value into the CAM program, and compile the G code with the correct endmill size. Optionally make a test cut, and adjust the comp in the CAM program.
For some reason I wanna use macro programing for simple parts instead of CAM programs, for example I have a circular blank part that I wanna create a 20mm diameter hole inside of it with a 12 diameter endmill tool.
Can you give me a macro program example for helical milling with compensation tool and 2mm pitch ?
The height of hole is 15mm.

4. ## Re: 3 axis compensation with macro programing?

Sorry, I have no idea. I can't help with that.

5. ## CRC Helix

Originally Posted by Alir3za
I wanna create a 20mm diameter hole inside of it with a 12 diameter endmill tool.
.
...depends on the CNC control...and the programmer:

6. ## Re: 3 axis compensation with macro programing?

Originally Posted by Alir3za
For some reason I wanna use macro programing for simple parts instead of CAM programs, for example I have a circular blank part that I wanna create a 20mm diameter hole inside of it with a 12 diameter endmill tool.
Can you give me a macro program example for helical milling with compensation tool and 2mm pitch ?
The height of hole is 15mm.
With B macro language:

N1 #100=20 (HOLE DIAMETER)
N2 #110=-15 (HOLE DEPTH)
N3 #120=12 (TOOL DIAMETER)
N4 #130=3.5 (Z APPROACH)
N5 #140=-2 (Z PASS DEPTH)
N6 #150=50 (FEED RATE)
N7 #160=#130 (CURRENT PASS DEPTH)
N8 G0 Z#130
N9 G91
N10 G0 X[#100/2-#120/2]
N11 #160=#160+#140
N12 #200=#140
N13 IF [#160LT#110] THEN #200=#200-#160+#110
N14 G2 Z[#200] I[#120/2-#100/2] F#150
N15 IF [#160GT#110] GOTO11
N16 G2 I[#120/2-#100/2]
N17 G1 X[#120/2-#100/2]
N18 G90
N19 G0 Z#130

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•