G-Code help, 4th axis

Computer Numeric Control - All aspects of Computer Numeric Control - machinery as well as software 

Bookmark this page:  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
G-Code help, 4th axis tnik 07-06-2009
Posted by tnik on July 6, 2009, 9:42 pm
Please log in for more thread options
I'm trying to make a CAM. 3" OD pc of steel, with a 3/4" wide slot, .5
deep. I figured I could use an undersized endmill (.611 tbe) and post
out a path for center, left and right.. It didn't work as expected. Its
on size on some of the path, but small on other parts. I guess the A
axis needs to be shifted to compensate for the smaller cutter, but how
can I figure out what needs to be done? All I have is point to point on
the degrees so the controller doesn't have to figure anything out.. I
always run into problems with getting the controller to use cuttercomp
with A axis movement.. So I try to stay away from it as much as possible.

TIA

example code:

(main program)
(.611 EM)
(RUN ON CENTER)
()
G17
M11
G90 G57 G00 A0.
M10
N1 G00 G57 G90 X0.75 Y0.75
S1146 M03
G43 Z1. H1 M07
G00 Z0.1
G01 Z-0.5 F9.1680
Y0
M98 P003
G00 Z1.
(.611 EM )
(RUN ON LEFT)
()
N2 M11
G90 G58 G00 A0.
M10
G90 G58 G00 X0.75 Y0.75
S1146 M03
G43 Z1. H1 M07
G00 Z0.1
G01 Z-0.5 F9.168
Y0
M98 P004
G00 Z1.
(.611 EM )
(RUN ON RIGHT)
()
N3 M11
G90 G57 G00 A360.
M10
G90 G59 G00 X0.75 Y0.75
S1146 M03
G43 Z1. H1 M07
G00 Z0.1
G01 Z-0.5 F9.168
Y0
M98 P005
G00 Z1.
G91 G28 Z0 M09
G49
G28 Y0 M05
M30
%

(sub program for running center)
M11
G01A0.0X.75 F191.01
A1.0 X0.75
A2.0 X0.7502
A3.0 X0.7505
A4.0 X0.751
A5.0 X0.7515
A6.0 X0.7522
A7.0 X0.7531
A8.0 X0.754
A9.0 X0.7551
A10.0 X0.7563
A11.0 X0.7576
A12.0 X0.759
A13.0 X0.7606
A14.0 X0.7623
A15.0 X0.7641
A16.0 X0.7661
A17.0 X0.7682
A18.0 X0.7704
A19.0 X0.7727
A20.0 X0.7752
A21.0 X0.7777
A22.0 X0.7805
A23.0 X0.7833
A24.0 X0.7863
A25.0 X0.7894
A26.0 X0.7926
A27.0 X0.7959
A28.0 X0.7994
A29.0 X0.803
A30.0 X0.8068
A31.0 X0.8107
A32.0 X0.8147
A33.0 X0.8188
A34.0 X0.8231
A35.0 X0.8274
A36.0 X0.832
A37.0 X0.8366
A38.0 X0.8414
A39.0 X0.8463
A40.0 X0.8514
A41.0 X0.8566
A42.0 X0.8619
A43.0 X0.8673
A44.0 X0.8729
A45.0 X0.8786
A46.0 X0.8845
A47.0 X0.8905
A48.0 X0.8966
A49.0 X0.9029
A50.0 X0.9093
A51.0 X0.9158
A52.0 X0.9225
A53.0 X0.9293
A54.0 X0.9362
A55.0 X0.9433
A56.0 X0.9506
A57.0 X0.9579
A58.0 X0.9654
A59.0 X0.9731
A60.0 X0.9809
A61.0 X0.9888
A62.0 X0.9969
A63.0 X1.0051
A64.0 X1.0135
A65.0 X1.022
A66.0 X1.0307
A67.0 X1.0395
A68.0 X1.0485
A69.0 X1.0576
A70.0 X1.0668
A71.0 X1.0762
A72.0 X1.0858

<snipped>

A343.0 X0.7682
A344.0 X0.7661
A345.0 X0.7641
A346.0 X0.7623
A347.0 X0.7606
A348.0 X0.759
A349.0 X0.7576
A350.0 X0.7563
A351.0 X0.7551
A352.0 X0.754
A353.0 X0.7531
A354.0 X0.7522
A355.0 X0.7515
A356.0 X0.751
A357.0 X0.7505
A358.0 X0.7502
A359.0 X0.75
M99
%

Posted by vinny@work on July 6, 2009, 7:40 pm
Please log in for more thread options

> I'm trying to make a CAM. 3" OD pc of steel, with a 3/4" wide slot, .5
> deep. I figured I could use an undersized endmill (.611 tbe) and post out
> a path for center, left and right.. It didn't work as expected. Its on
> size on some of the path, but small on other parts. I guess the A axis
> needs to be shifted to compensate for the smaller cutter, but how can I
> figure out what needs to be done? All I have is point to point on the
> degrees so the controller doesn't have to figure anything out.. I always
> run into problems with getting the controller to use cuttercomp with A
> axis movement.. So I try to stay away from it as much as possible.
>
> TIA
>
> example code:
>
> (main program)
> (.611 EM)
> (RUN ON CENTER)
> ()
> G17
> M11
> G90 G57 G00 A0.
> M10
> N1 G00 G57 G90 X0.75 Y0.75
> S1146 M03
> G43 Z1. H1 M07
> G00 Z0.1
> G01 Z-0.5 F9.1680
> Y0
> M98 P003
> G00 Z1.
> (.611 EM )
> (RUN ON LEFT)
> ()
> N2 M11
> G90 G58 G00 A0.
> M10
> G90 G58 G00 X0.75 Y0.75
> S1146 M03
> G43 Z1. H1 M07
> G00 Z0.1
> G01 Z-0.5 F9.168
> Y0
> M98 P004
> G00 Z1.
> (.611 EM )
> (RUN ON RIGHT)
> ()
> N3 M11
> G90 G57 G00 A360.
> M10
> G90 G59 G00 X0.75 Y0.75
> S1146 M03
> G43 Z1. H1 M07
> G00 Z0.1
> G01 Z-0.5 F9.168
> Y0
> M98 P005
> G00 Z1.
> G91 G28 Z0 M09
> G49
> G28 Y0 M05
> M30
> %
>
> (sub program for running center)
> M11
> G01A0.0X.75 F191.01
> A1.0 X0.75
> A2.0 X0.7502
> A3.0 X0.7505
> A4.0 X0.751
> A5.0 X0.7515
> A6.0 X0.7522
> A7.0 X0.7531
> A8.0 X0.754
> A9.0 X0.7551
> A10.0 X0.7563
> A11.0 X0.7576
> A12.0 X0.759
> A13.0 X0.7606
> A14.0 X0.7623
> A15.0 X0.7641
> A16.0 X0.7661
> A17.0 X0.7682
> A18.0 X0.7704
> A19.0 X0.7727
> A20.0 X0.7752
> A21.0 X0.7777
> A22.0 X0.7805
> A23.0 X0.7833
> A24.0 X0.7863
> A25.0 X0.7894
> A26.0 X0.7926
> A27.0 X0.7959
> A28.0 X0.7994
> A29.0 X0.803
> A30.0 X0.8068
> A31.0 X0.8107
> A32.0 X0.8147
> A33.0 X0.8188
> A34.0 X0.8231
> A35.0 X0.8274
> A36.0 X0.832
> A37.0 X0.8366
> A38.0 X0.8414
> A39.0 X0.8463
> A40.0 X0.8514
> A41.0 X0.8566
> A42.0 X0.8619
> A43.0 X0.8673
> A44.0 X0.8729
> A45.0 X0.8786
> A46.0 X0.8845
> A47.0 X0.8905
> A48.0 X0.8966
> A49.0 X0.9029
> A50.0 X0.9093
> A51.0 X0.9158
> A52.0 X0.9225
> A53.0 X0.9293
> A54.0 X0.9362
> A55.0 X0.9433
> A56.0 X0.9506
> A57.0 X0.9579
> A58.0 X0.9654
> A59.0 X0.9731
> A60.0 X0.9809
> A61.0 X0.9888
> A62.0 X0.9969
> A63.0 X1.0051
> A64.0 X1.0135
> A65.0 X1.022
> A66.0 X1.0307
> A67.0 X1.0395
> A68.0 X1.0485
> A69.0 X1.0576
> A70.0 X1.0668
> A71.0 X1.0762
> A72.0 X1.0858
>
> <snipped>
>
> A343.0 X0.7682
> A344.0 X0.7661
> A345.0 X0.7641
> A346.0 X0.7623
> A347.0 X0.7606
> A348.0 X0.759
> A349.0 X0.7576
> A350.0 X0.7563
> A351.0 X0.7551
> A352.0 X0.754
> A353.0 X0.7531
> A354.0 X0.7522
> A355.0 X0.7515
> A356.0 X0.751
> A357.0 X0.7505
> A358.0 X0.7502
> A359.0 X0.75
> M99
> %

?
I have no idea what your problem is from, but i noticed your using g56 g57,
and one g59?

plus your numbers dont look uniform?
> A7.0 X0.7531
> A8.0 X0.754........0008
> A9.0 X0.7551.......0009
> A10.0 X0.7563.....0012

Looks like your going on an angle?
But like I said, I don't know what your doing from the post.



Posted by tnik on July 7, 2009, 5:43 pm
Please log in for more thread options
vinny@work wrote:
>
> ?
> I have no idea what your problem is from, but i noticed your using g56 g57,
> and one g59?

g57,58 and 59 are all the same values, I did that incase I had to make a
small adjustment between the three paths.

> plus your numbers dont look uniform?
>> A7.0 X0.7531
>> A8.0 X0.754........0008
>> A9.0 X0.7551.......0009
>> A10.0 X0.7563.....0012
>
> Looks like your going on an angle?
> But like I said, I don't know what your doing from the post.

Yea, thats probably the problem, I'm using a customer supplied cam path
and when I was looking at it closer last night, I saw the same thing you
saw. I have an onsize .75 cutter coming in today, I'll just use the 5/8
undersize to rough it out.

Posted by The Deburr Guru on July 6, 2009, 10:16 pm
Please log in for more thread options
09.dc1.easynews.com:

> N1 G00 G57 G90 X0.75 Y0.75


All Y position should be Y0.

--
The Deburr Guru

Posted by tnik on July 7, 2009, 5:43 pm
Please log in for more thread options
The Deburr Guru wrote:
>
>> N1 G00 G57 G90 X0.75 Y0.75
>
>
> All Y position should be Y0.
>

It does, after it reaches Z-.5 it leads into the part.

Similar ThreadsPosted
DXF to GCode August 4, 2006, 8:11 am
bmp to dxf and dxf to gcode freeware August 17, 2009, 10:57 am
GCode for Chess Pieces April 25, 2006, 5:09 pm
bmp to dxf and dxf to gcode freeware cnc plasma August 18, 2009, 12:54 pm
Gcode 2000 Latest Share Ware Version March 13, 2005, 8:34 am
for sale 4/5 axis Trunnion table for 3 axis CNC mill October 13, 2008, 9:49 am
4/5 axis Trunnion table for 3 axis CNC mill October 9, 2008, 10:36 am
Chatter in the x axis but not in Y ...??? August 10, 2006, 8:52 pm
Z axis sinking March 19, 2008, 3:12 pm
4th Axis Question. March 21, 2008, 7:12 pm

Contact Us | Privacy Policy

XML SitemapXML Sitemap