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 12-17-2008, 11:43 AM
 
Join Date: Dec 2008
Location: Norway
Posts: 7
jeuhrn is on a distinguished road
Strange behaviour with G17/G18 in Maho Mill

I don't know wether my problem is bug or feature, and if so if it pertains to my machine only or G-code in general but here it is:

I'm working in a Maho MH 600 which has a vertical spindle but is by default operating in G18. In order to solve a specific problem i have to do a G2 in G17. (To mill a R4.3 groove on the upwards face of a piece). Meaning when I execute a G2 in G17 the tool moves in Z (vertical) direction, which is Y on this particular machine. (sigh.)

What happens is that my program runs fine when I use a tool with length offset 0, but if it _does_ have a length offset my coordinates change in the line where I switch to G17.
There's no motion when it does G17, just the coordinates on the screen offset some, and my G2 instruction gets a bigger radius (according to tool length offset) and starts working in G0 speed.
The part about rapid feeding should be impossible in a G2 instruction according to my common sense, but that is what it does.
The result was 10mm of mill crushed into my workpiece.

I spent hours identifying the problem, and when I did I tried changing the tool offset to 100mm and running the program.
The G2 instruction wanted to circumfer the whole machine itself I think, but it stopped itself with the nice error message (paraphrased) "movement faster than rapid".

Has anyone ever seen this behaviour before?
Let me know if it was unclear or if you need any more info to provide some input.
Reply With Quote

  #2   Ban this user!
Old 12-17-2008, 03:41 PM
 
Join Date: Apr 2006
Location: usa
Posts: 128
JWK42 is on a distinguished road

jeuhrn
I have been programming Maho 600 for a few years now. Can you post your drawing or your code that is giving the problem and I'll check it out in the morning. I think we are PM - 6 hrs so it 3:40 PM here and time to call it a day.

Jerry
Reply With Quote

  #3   Ban this user!
Old 12-18-2008, 01:18 AM
 
Join Date: Dec 2008
Location: Norway
Posts: 7
jeuhrn is on a distinguished road

The drawing is probably "top secret", but I can post the code.

Code:
N1 G52 S2500 T1 M66
N2 G0 Y20 M13
N3 GO X0 Z0 
N4 G0 Y1 Z-1.3
N5 G1 Y-3 F150
N6 G17
N7 G2 Y-3 Z1.3 J-3 K0
N8 G92 X-0.22
N9 G14 J775 N1=4 N2=8
N10 G0 Y10
N11 M30
This makes a half circle in the 'seen from the side' plane, and you get a R4.3 groove with a R3 ballnose mill, and then it moves X-.22mm for the next iteration.

I've never been on a mill before where Y-axis is Z and vice versa, and X traverses + in the 'wrong' direction, but I'll assume all Maho 600's are the same (if not you are bound to be confused by this code).

So basically this works fine as long as tool length is 0 (which I always keep in T1), but when I use a different tool with length offset, G17 will shift the coordinates in both Y and Z axis but not X, and the following G2 goes haywire. The larger the tool length offset the crazier it gets.

If you are gonna try this I advice you to keep a good distance from the table just to be safe.
Reply With Quote

  #4   Ban this user!
Old 12-18-2008, 08:36 AM
 
Join Date: Apr 2006
Location: usa
Posts: 128
JWK42 is on a distinguished road

Remember a Maho MH600 is commisioned as a Hortzontal Mill so the X is left and right and the Y is up and down and the Z axis is the Horizontal axis so it defaults to G17 on startup. G17 applies tool length comp to the Z axis or horizontal Axis. I am assuming you are milling this part with the swing around head which makes a Vertical Mill or G18 unfortunely this means the tool length comp is applied to the Y axis. But you must call G18 to make it switch to the Y axis
So when you switch to G17 you transfer what ever is in your tool 1 table from
the Y(G18) to the Z (G17) axis. In my program I am switching to G19 so tool length comp would be applied to the X(G19) axis. That is why I would use Zero tool length comp
I also think you are actually machining your radius around the X Axis since you
incrementing along the X between passes. Therefore you need to use G19 to Circle around the X axis.
We always use a G93 Absolute Zero Offest to establish the program Zero Point.
If you touch off the tip of your tool at the point on your part you want for
Part Zero and enter those coordinates in the G93 line in your program.
then set tool 1 length to zero in the tool table.
I would try the code below it is not much different than yours.
I hope this helps. I love our Maho Mills but it drives you crazy when you start programming "Normal Mills". We only have 1 Maho left.
Our Maho is busy so I won't have a chance to test this so remember "Rapid Over Ride" and "Cut Air" first.
Edit
Because the rapids always go home on the measuring axis first, in this case X axis, I would add a line N85 to rapid in the Y first the Z.


I also would have changed line 90 to--

N90 G91 X-.22
N95 G90
Rather than the G92 X shift.

N10 G52 S2500
N15 G18 T1 M66
N20 G93 X11.803 Y3.606 Z11.677 (ABSOLUTE ZERO OFFSET)
N30 G0 Y20 M13
N40 G0 X0 Z0
N50 G0 Y1 Z-1.3
N60 G1 Y-3 F150
N70 G19
N80 G2 Y-3 Z1.3 J-3 K0
N85 G0 Y1 (ADDED THIS LINE)
N90 G92 X-0.22
N100 G14 J775 N1=50 N2=90
N110 G18 G0 Y10
N110 M30



Your Code
N1 G52 S2500 T1 M66
N2 G0 Y20 M13
N3 G0 X0 Z0
N4 G0 Y1 Z-1.3
N5 G1 Y-3 F150
N6 G17
N7 G2 Y-3 Z1.3 J-3 K0
N8 G92 X-0.22
N9 G14 J775 N1=4 N2=8
N10 G0 Y10
N11 M30

Last edited by JWK42; 12-18-2008 at 08:49 AM. Reason: Added a comment
Reply With Quote

  #5   Ban this user!
Old 12-18-2008, 08:52 AM
 
Join Date: Dec 2008
Location: Norway
Posts: 7
jeuhrn is on a distinguished road

This one has a 'swing-around' head yes, but it defaults to G18 when starting up.

My workaround was to call T1 with 0 length offset in the program but set the zero point in G54 to compensate for the length, although G93 would have worked just as well. And it literally took me hours to figure out how to get this machine to store G54-G59, which the manual provided about 0 information on. I just started working here a few months ago, and the guy who ran this machine before has moved on, so now I'm the 'expert'.

What I'm curious about though is how it can move rapidly in G2, isn't G2 supposed to always run in the feed from the previous G1?
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 12-18-2008, 09:21 AM
 
Join Date: Apr 2006
Location: usa
Posts: 128
JWK42 is on a distinguished road

Your machine is commisioned differently than normal. This may have been done as a new machine or on rebuild. So the G19, G18 and G17 may apply to diffferent axis than ours. We use G54-G59 very rarely because our first trainer in 1984 prefered G93 Absolute Zero Shift and old habits are hard to break. We use G54-G59 on all our Haas Mills.

I wonder if changing to G17 causes the Modal Feed Rate to be lost. Try putting a feed rate in the G2 line. Your F150 scared me until I rememered you are in MM mode not Inch
Reply With Quote

  #7   Ban this user!
Old 12-18-2008, 12:52 PM
 
Join Date: Dec 2008
Location: Norway
Posts: 7
jeuhrn is on a distinguished road

I did have a feed rate in the G2, but it doesn't affect anything. Also it's faster than G0, which is why it triggered the "movement faster than rapid" error when it tried to go in a really big circle.

I'll take your word on it being commisioned different than normal, and that probably has something to do with it.
I think I'll just have to make a mental note to always keep tool length 0 when switching planes, or experiment and figure out a way to reset the correct zero point after G17/G18/G19.
Reply With Quote

  #8   Ban this user!
Old 12-18-2008, 02:57 PM
 
Join Date: Apr 2006
Location: usa
Posts: 128
JWK42 is on a distinguished road

Now I'm stumped!!
Does G2 feed correctly in a different program?
Can you use a R word to swing your radius instead of J & K?
I think you would get an illegal format it you had an 'O' instead of Zero in your code. I noticed an 'O' in line N3. I assume you hand typed those lines into this thread. I am still not sure if I have a good picture of what your part looks like. We have used your method of multiple passes over a profile many times. If you would PM me your E-Mail I will send you mine so you can send a jpeg picture of a small portion of your print, if you are allowed to.
I would like to try to create the code and test it on our machine when it opens up.

Last edited by JWK42; 12-18-2008 at 02:58 PM. Reason: spelling
Reply With Quote

  #9   Ban this user!
Old 12-18-2008, 03:26 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

You can use the R to swing a radius as well. The only thing I see different in the G2 line that I have is an X value. Might need this so it know what it is swinging around. Try G2 X0 Y-3 Z1.3 J-3 K0 you can probaly get rid of the K.

I had the same problem on the 5 axis I have been working on. Once I instated the tool offset it went to the wrong place. The G17 and G18 were set up weird. Try using the G17. I also had a problem if I sent the machine home with a G28G53Z0 then tried to move from there. I think it would cancel my tool offset but the tool number stayed active?????

Stevo
Reply With Quote

Reply

Tags
maho 600 g17 weirdness




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
Mach3 Strange behaviour wellbuiltcabs Mach Software (ArtSoft software) 3 01-30-2008 07:48 PM
Strange behaviour of 10T guhl Fanuc 1 12-11-2007 09:28 AM
Maho mill on ebay yoopertool Deckel, Maho, Aciera, Abene Mills 0 08-15-2007 09:14 PM
Strange Chinese laser engraving behaviour MicheleZicchino Laser Engraving & Cutting Machines 4 05-08-2007 08:12 AM
VMC 15-XT strange behaviour FinnCNC Fadal 0 03-27-2007 11:03 AM




All times are GMT -5. The time now is 12:09 AM.





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