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 > Mach Software (ArtSoft software)


Mach Software (ArtSoft software) Discuss Mach 1 , 2 and the new Mach3 here NC software here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 03-16-2009, 09:52 PM
jsheerin's Avatar  
Join Date: Aug 2008
Location: US
Posts: 1,132
jsheerin is on a distinguished road
Need help with circular / helical gcode errors

Hi,
I'm trying to get going with my router I just finished. I am using visual mill 6 to generate gcode. I'm currently trying to route a hole. I have visual mill set to ramp the cutter into the hole as opposed to just plunging. Using the mach3-inch post in visual mill, I get code like this:
G17
G03Z-0.1050I10.1700J1.3400K0.1050

And mach3 tells me: k word given for arc in xy plane

I've searched here and on the visual mill forum with no real luck. I did find a suggestion to use the mach2 post in visual mill, but that just produced a bunch of other problems. However it did not produce a circular interpolation command with a k word in it, so I at least got to play with my router for a while before I realized it wasn't cutting what I'd drawn...

So from more reading, it seems that mach3 interprets g2/g3 commands to only need I and or J values with a Z value to create the lead of the helix. It also seems to want I / J to be I/K or J/K if the g2/g3 command is in a plane other than XY. But visual mill wants to output K values for the lead of a helix and Q values for leads of a spiral. If I'm doing hole pocketing, these K and Q values are always the same but really there should be a Z value that keeps changing to reflect drilling deeper? I get this from reading page 121 in the Mach3Mill pdf (page 10-17). So from this plus some other oddities I just found in visual mill, I conclude the visual mill post for mach3 is wrong.

This is just me thinking through this problem out loud, but if anyone has any suggestions or experience, I'd love to hear them. I think I'll be emailing visual mill's support people now.
Reply With Quote

  #2  
Old 03-17-2009, 12:00 AM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road

Assuming Mach3 is based on a Fanuc Control your G-Code should read close to this but with different coordinates.

N1(EMILL 1/2D)
T1M6
G90G54G40G0G17G0X0Y0S1000M3
G43Z.1H1M8
G1Z.025F30.
G41G1Y-.25F10.
G3X0Y-.25Z-.125J.25
X0Y-.25Z-.25J.25
X0Y-.25Z-.375J.25
X0Y-.25Z-.5J.25
G40G1Y0
G0Z1.M9
M5
G91G28Z0
M1

This program goes to X0Y0 then .025 above the part surface. calls cutter comp in the y axis. After that it Interpolates in all 3 axis at Z-.125 , Z-.25, Z-.375, then Z-.5 in a Helical Motion.

See pic below.

The K in you code is parallel axis to Z, so I don't think it belongs there, but I could be wrong because this is a Mach control, not Fanuc.
Attached Thumbnails
Click image for larger version

Name:	helical interpolation 1.jpg‎
Views:	61
Size:	77.1 KB
ID:	77862   Click image for larger version

Name:	helical interpolation 2.jpg‎
Views:	44
Size:	65.7 KB
ID:	77863  
__________________
Toby D.
"Imagination and Memory are but one thing, but for divers considerations have divers names"
Schwarzwald

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

www.refractotech.com
Reply With Quote

  #3  
Old 03-17-2009, 06:02 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,463
ger21 is on a distinguished road
Buy me a Beer?

A G2 or G3 can not have a K in it when using G17. You're going to need to fix the post. What exactly was wrong with the Mach3 post?
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #4   Ban this user!
Old 03-17-2009, 08:49 AM
jsheerin's Avatar  
Join Date: Aug 2008
Location: US
Posts: 1,132
jsheerin is on a distinguished road

Thanks guys. I appreciate the sanity check. Yes, from reading the mach3 manual, I think your code should work Toby. My issue is how to get visual mill to generate that now. I didn't buy it so I could write code by hand. I also didn't buy it so I could spend hours screwing around editing an incorrect post configuration (for what seems to me to be a rather basic issue). The mach3 post generates the K in the G2/G3 commands, so that is what is wrong, to answer Gerry. Maybe that was not clear in my ramblings above. But beyond that, I'm not sure from looking at their post editor as to how to correct that issue. I've emailed mechsoft asking for a fix, so hopefully they will take care of me.
Reply With Quote

  #5   Ban this user!
Old 03-17-2009, 09:04 AM
 
Join Date: Jan 2005
Location: USA
Posts: 2,348
mactec54 is on a distinguished road
Buy me a Beer?

Hi jsheerin

Tobyaxis has the right idea but here is a easyer way to do it & not so messy

G2X0.Y.3125Z-.15I-.3125F12.
Z-.35J-.3125
Z-.55J-.3125
Z-.75J-.3125
J-.3125

See attached txt file you should be able to run on you machine
It is a 1inch hole X0Y0 with a .375 cutter speeds & feeds you can ajust for your machine it also does a ark off at the end of the cut
Attached Files
File Type: txt 9064 Mill Hole.txt‎ (316 Bytes, 36 views)
__________________
Mactec54
Reply With Quote

Sponsored Links
  #6  
Old 03-17-2009, 01:20 PM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road

Originally Posted by mactec54 View Post
Hi jsheerin

Tobyaxis has the right idea but here is a easyer way to do it & not so messy

G2X0.Y.3125Z-.15I-.3125F12.
Z-.35J-.3125
Z-.55J-.3125
Z-.75J-.3125
J-.3125

See attached txt file you should be able to run on you machine
It is a 1inch hole X0Y0 with a .375 cutter speeds & feeds you can ajust for your machine it also does a ark off at the end of the cut
I like your shorter code, lol. I was unable to do it that way because the control always had a fit with alarms. It wanted to see all 4 designations in every sequence block for some strange reason. LOL, it was a new machine control too. Oh well.
__________________
Toby D.
"Imagination and Memory are but one thing, but for divers considerations have divers names"
Schwarzwald

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

www.refractotech.com
Reply With Quote

  #7   Ban this user!
Old 03-17-2009, 02:27 PM
 
Join Date: Jan 2005
Location: USA
Posts: 2,348
mactec54 is on a distinguished road
Buy me a Beer?

Hi tobyaxis

What controls do you have it may be just a simple change some were to make it run I have run it on 3 different controls without any problems

Save the txt file & try it on your machine
__________________
Mactec54
Reply With Quote

  #8  
Old 03-17-2009, 03:07 PM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road

Originally Posted by mactec54 View Post
Hi tobyaxis

What controls do you have it may be just a simple change some were to make it run I have run it on 3 different controls without any problems

Save the txt file & try it on your machine
Thanks but I no longer work for that employer.

Honestly your method saves memory but as long as it works for thread milling and helical entry, I'm happy.
__________________
Toby D.
"Imagination and Memory are but one thing, but for divers considerations have divers names"
Schwarzwald

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

www.refractotech.com
Reply With Quote

  #9   Ban this user!
Old 03-17-2009, 03:17 PM
jsheerin's Avatar  
Join Date: Aug 2008
Location: US
Posts: 1,132
jsheerin is on a distinguished road

Just to update, Mecsoft helped me out and mactec's code is now what I'm putting out. Unfortunately, it forces me (as far as I can tell so far) to cut the OD of the hole first and then go back and clean up the middle at full depth. But I'd rather cut into the middle of the hole with full cutter engagement and then clean up the outside perimeter of the hole with a lighter cut.
Reply With Quote

  #10  
Old 03-17-2009, 03:21 PM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road

Originally Posted by jsheerin View Post
Just to update, Mecsoft helped me out and mactec's code is now what I'm putting out. Unfortunately, it forces me (as far as I can tell so far) to cut the OD of the hole first and then go back and clean up the middle at full depth. But I'd rather cut into the middle of the hole with full cutter engagement and then clean up the outside perimeter of the hole with a lighter cut.
There might be an option to start at the center and work toward the outside. This means you will have to set a step over limit.

There should be something in the Tool Path Parameters. Give it a look see.
__________________
Toby D.
"Imagination and Memory are but one thing, but for divers considerations have divers names"
Schwarzwald

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

www.refractotech.com
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 03-17-2009, 06:04 PM
jsheerin's Avatar  
Join Date: Aug 2008
Location: US
Posts: 1,132
jsheerin is on a distinguished road

Well, I assumed the default operation would be to start at the center. What tech support suggested was to use the feed in setup screen to essentially create the feature. Playing with it some more, I found that it will generate good code if I set the feed in helix diameter smaller. However, it seems (from an admittedly fast look) that it does not correctly generate paths for clean up cuts at various Z levels. Iow, it will feed down in a helix to the bottom of the hole and then clean up the outside diameter of the hole (as I wanted). It just can't do that in various Z steps without me setting up multiple cutting operations to do it.
Reply With Quote

  #12  
Old 03-17-2009, 07:38 PM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road

This type of step down is better for deep holes. It allows for better finishes and lighter loads on your tool.

Play around with it some more and see what parameters do what.
__________________
Toby D.
"Imagination and Memory are but one thing, but for divers considerations have divers names"
Schwarzwald

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

www.refractotech.com
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Circular or Helical Interpolation? meme General Metalwork Discussion 6 10-30-2007 03:05 AM
What do you know about this circular saw??? mailloux WoodWorking 5 10-16-2007 10:34 PM
Servo tuning or other errors when circular interpulating Zipdrive Mechanical Calculations/Engineering Design 6 02-02-2006 06:37 AM
I have a problem with my gcode or my conversion to gcode , everything is tiny? NickLatech G-Code Programing 0 03-10-2005 12:46 PM
gcode to gcode converter july_favre General CAM Discussion 4 05-24-2004 06:51 PM




All times are GMT -5. The time now is 11:02 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