584,849 active members*
4,227 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > G-Code Programing > 3 axis compensation with macro programing?
Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2020
    Posts
    2

    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. #2
    Join Date
    Dec 2013
    Posts
    5717

    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.
    Jim Dawson
    Sandy, Oregon, USA

  3. #3
    Join Date
    Oct 2020
    Posts
    2

    Re: 3 axis compensation with macro programing?

    Quote Originally Posted by Jim Dawson View Post
    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. #4
    Join Date
    Dec 2013
    Posts
    5717

    Re: 3 axis compensation with macro programing?

    Sorry, I have no idea. I can't help with that.
    Jim Dawson
    Sandy, Oregon, USA

  5. #5
    Join Date
    Aug 2009
    Posts
    1567

    CRC Helix

    Quote Originally Posted by Alir3za View Post
    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. #6
    Join Date
    Sep 2018
    Posts
    27

    Re: 3 axis compensation with macro programing?

    Quote Originally Posted by Alir3za View Post
    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
  •