CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > G-Code Programing


G-Code Programing Discuss G-code programing and problems here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 09-26-2007, 12:59 PM
 
Join Date: Aug 2007
Location: USA
Posts: 31
DryRun is on a distinguished road
Help tring to cut hex using c x moves

Some please help me i am having trouble tring to cut a 1.39 hex on the od of my stock using G12.1 on a fanuc 16TT
Reply With Quote

  #2   Ban this user!
Old 09-26-2007, 01:16 PM
CNCRim's Avatar  
Join Date: Feb 2006
Location: usa
Posts: 947
CNCRim is on a distinguished road

Hope it work for your machine.


O0001
G20

(TOOL - 1 OFFSET - 1)
(FACE CONTOUR UNDEFINED)
(1.39DIM HEX _1/2 ENDMILL)
G0T0101
M23
G0G54X2.3417Z.1
C0.0
G97S1768M54
G98G1Z0.F10.
G98G3G112
G41X.25C1.019R.25
G1X1.64C.6178
G2X1.89C.4013R.25
G1C-.4013
G2X1.64C-.6178R.25
G1X.25C-1.019
G2X0.C-1.0525R.25
X-.25C-1.019R.25
G1X-1.64C-.6178
G2X-1.89C-.4013R.25
G1C.4013
G2X-1.64C.6178R.25
G1X-.25C1.019
G2X0.C1.0525R.25
X.25C1.019R.25
G1X.4232C.969
G113
G0Z.1
G28U0.W0.H0.M55
T0100
M30
__________________
The best way to learn is trial error.
Reply With Quote

  #3   Ban this user!
Old 09-27-2007, 04:16 PM
 
Join Date: Nov 2006
Location: UK
Posts: 121
ChattaMan is on a distinguished road
XC milling

Newtexas's prog looks good. But to do other progs, different sizes yourself, I'll try to help.

When the control goes in to G12.1 (G112) it's now in milling mode. Think of coordinates as on the miller, only X is diameter (not radius) and Y is C. Work out your across corner size...

A/F x 1.155....

1.39 x 1.155=1.605

So on the miller you would program the points of the hex as so...

X0.803 Y0
X0.401 Y-0.695
X-0.401 Y-0.695
X-0.803 Y0
X-0.401 Y0.695
X0.401 Y0.695
X0.803 Y0


So on the lathe (double the X, change Y to C) the points of the hex are as so...

X1.605 C0
X0.802 C-0.695
X-0.802 C-0.695
X-1.605 C0
X-0.802 C0.695
X0.802 C0.695
X1.605 C0

A simple prog would look like this....

Tool change..blah, blah
C0X2.2Z0.1
G98G1Z-0.1F..
G112
G1G41X1.605C0
G1X0.802C-0.695
G1X-0.802C-0.695
G1X-1.605C0
G1X-0.802C0.695
G1X0.802C0.695
G1X1.605C0
G1G40X2.2
G113
G0Z.1
Blah, blah
M30

Oooo..hmmm..or macro style

Tool change...blah, blah
#504=0.5 (ENTER CUTTER DIA)
#505=1.39 (ENTER A/F SIZE)


#506=[#505*1.155]
#507=[#505/2]

C0X[#506+#504+0.5]Z0.1
G98G1Z-0.1F...
G112
G1G41X#506C0
X[#506/2]C-#507
X-[#506/2]C-#507
X-#506C0
X-[#506/2]C#507
X[#506/2]C#507
X#506C0
G40X[#506+#504+0.5]
G113
G0Z.1
Blah, blah
M30

Keep this in machine memory and just copy and merge into your prog.

Hope it makes sense??

ChattaMan

Last edited by ChattaMan; 09-27-2007 at 04:20 PM. Reason: missed out a #
Reply With Quote

  #4   Ban this user!
Old 09-28-2007, 01:31 AM
oldjohn's Avatar  
Join Date: Feb 2005
Location: Sydney Australia
Posts: 71
oldjohn is on a distinguished road

I have this square and hex generator xls. You guys will find very useful.
You could say thank you.
John
Attached Files
File Type: xls Square and Hexagon Generator.xls‎ (33.0 KB, 109 views)
Reply With Quote

  #5   Ban this user!
Old 09-28-2007, 12:06 PM
 
Join Date: May 2006
Location: Sweden
Posts: 265
M-man is on a distinguished road

CHange para 6030 to 100.

Call macro as follow M110V___F___

V= WIth of hex F= feed.

Position tool in Z depth of cut and in X-axis, postion a bit above OD. After the macro the tool will end up at the same postion as when it were called.
There are a little bug in the macro, if the toolposition in X-axis are to close to hex when calling the macro it will cut off a bit of the hex while entering toolcomp/starting point. I ve adding some suggestions that might fix it, but i have not tried them myself yet......


%
O9020(MACRO HEX)
M88 ---Clamp anti vib, brake
#29=#9*0.5
#2=0.577
#3=#2*#22*0.5
#5=#5001
#24=#22*0.5
#25=#3*#3
#26=#24*#24
#27=#25+#26
#23=SQRT[#27]
#30=#22+5
G112
#28=#3-1
G1G41X#30C-#28F#9-- (G1G41C-#28F#9--change to this?)
(X#30) --- Add this line?
X#22C-#3
X0C-#23
X-#22C-#3
X-#22C#3
X0C#23
X#22C#3
C-#3
G1G40X#5C0
G113
M90
G0
M99
%
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-28-2007, 01:47 PM
 
Join Date: Aug 2007
Location: USA
Posts: 31
DryRun is on a distinguished road
Cool

Thank you for all the help i got g12.1 working but flats do not come out the same i broke down and put a 2" face mill in and just used z to cut flats

and x&c to position machine hex came out off center something is out of wack with machine maybe headstock to turret is my thought programed error out and its running would still like to get it right tho
Reply With Quote

  #7   Ban this user!
Old 09-29-2007, 08:44 PM
cnc-king's Avatar  
Join Date: Jul 2003
Location: united states
Posts: 232
cnc-king is on a distinguished road

Originally Posted by DryRun View Post
Some please help me i am having trouble tring to cut a 1.39 hex on the od of my stock using G12.1 on a fanuc 16TT
wouldn't it be easier to cut the hex in the -X- axis using the tip of the end mill instead of the side and indexing your spindle in 60 deg increments?
__________________
If you can ENVISION it I can make it
Reply With Quote

  #8   Ban this user!
Old 09-30-2007, 05:15 AM
 
Join Date: Nov 2006
Location: UK
Posts: 121
ChattaMan is on a distinguished road
Burrs

wouldn't it be easier to cut the hex in the -X- axis using the tip of the end mill instead of the side and indexing your spindle in 60 deg increments?
Hmmm...deburring the corners comes to mind.

I wrote the program above as simple as possible so it could be understood. But adding an R to each line would make it possible to put corner rads on, so eliminating any burrs. Also it looks more professional.

Just another way of doing the same thing :-)
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
No A axis moves ? ( in post ) Scott_M FeatureCAM CAD/CAM 3 08-09-2007 08:37 AM
Changing Z moves Davidimurray Post Processors for MC 5 02-10-2007 01:59 PM
Rapid moves G00 dicksonhof Mach Software (ArtSoft software) 9 11-07-2006 09:21 AM
Z position moves up during run henryj1951 Gecko Drives 3 03-27-2006 05:16 PM
Motor only moves one direction spoiledbrat Mach Software (ArtSoft software) 3 06-12-2005 01:02 PM




All times are GMT -5. The time now is 08:27 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361