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-04-2008, 06:39 PM
 
Join Date: May 2006
Location: Canada
Posts: 85
dave6 is on a distinguished road
Red face G54 ?

Here is a program I am trying to run on my Meldas L3 lathe. I have done the MDI G54 entry for program zero 6" out from the chuck face to set up program zero. All my tool offsets are set correctly I believe. Every time I try to run this program it wants to start working 1" into the chuck (not good). Changing the G54 number setting makes no difference. Is G54 assumed or should it be called up in the program somewhere. Also is there anything in the file that would mess up G54 program zero? Can you suggest a FOOL proof way of setting this up or changing the file. This is my first program on this machine after a year of overhauling it.(the program is made from a pps that is also new and under development).
Thanks Dave
Attached Files
File Type: txt Bushing.txt‎ (2.0 KB, 75 views)
__________________
Exotic Welder
Reply With Quote

  #2  
Old 12-04-2008, 08:37 PM
Gold Member
 
Join Date: Oct 2005
Location: USA
Posts: 663
Caprirs is on a distinguished road

That G92 is setting a local zero. Remove that and see what happens. G54 is default but it never hurts to put it explicitly in the program.


O0010 ( Lathe Tool Bushing )
N5 G20
N10 G00 G40 G97 Z2.0 X1.0 T0000 M09
N15 T0101
N20 G92 S4500
N25 G94 G96 F5.0 S164 M03
N30 X1.6128 Z0.1645
N35 G72 U0.05
N40 G72 P45 Q75 U0.0 W0.0
Reply With Quote

  #3   Ban this user!
Old 12-04-2008, 08:43 PM
 
Join Date: May 2006
Location: Canada
Posts: 85
dave6 is on a distinguished road
Smile

Thanks for the response....I will give this a try on Friday.
__________________
Exotic Welder
Reply With Quote

  #4  
Old 12-04-2008, 08:45 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

G92 S4500 is okay because that sets the spindle 'clamp speed', provided that you have set it correctly for the chuck and work at hand.

I would also say to put the G54 in the program.

Of course, you need to know unequivocally where machine zero is, before you know where you are shifting the coordinate system to with the G54.

The location where the machine homes to, may or may not be machine zero, as it is likely possible, through parameters, to assign values to the home position when homing is completed.

Command G00 G53 Z0 T0 and see where that sends the tool to. Do this without a part in the chuck, and run at slow rapid override in case a collision looks inevitable. Once you know that position, then G54 Z is relative to that point.

How you set your tool length offsets may also have some bearing on tool position.
__________________
First you get good, then you get fast. Then grouchiness sets in.

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

  #5   Ban this user!
Old 12-04-2008, 08:55 PM
 
Join Date: May 2006
Location: Canada
Posts: 85
dave6 is on a distinguished road

I will try what you suggested to find zero. From looking at the parameters I think the zero will be at the machine home position for both Z and X . What is (G92) spindle clamp speed? Running the code block by block watching the G54 number, the G54 stays the same until line N30 then the number in the G54 changes a difference of about 8" before making a move and of course distance to go changes about the same.
__________________
Exotic Welder
Reply With Quote

Sponsored Links
  #6  
Old 12-04-2008, 09:35 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

G92 S spindle clamp speed is a safety command used to keep from over-revving the spindle based on the characteristics of the job at hand. Although there is a maximum spindle speed set in parameters, it is not always safe to even go that fast.

I like to insert the spindle clamp speed after every tool change, in case I start mid program and the control needs to be reminded what max rpm is for this job.

G53 Z0 is most meaningful if it corresponds to some constant but accessible point of reference on the machine. I set my lathe up so that G53 Z0 is at the chuck face, but that is just me I never remove the chuck (it is a self-contained power chuck).

So once I chuck up the first part, I can simply measure with a tape measure from the chuck face to the end of the part, and enter that amount as the G54Z value. I tweak it from there, if sometimes the stock is a bit short, or too long.
__________________
First you get good, then you get fast. Then grouchiness sets in.

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

  #7   Ban this user!
Old 12-04-2008, 09:45 PM
 
Join Date: May 2006
Location: Canada
Posts: 85
dave6 is on a distinguished road

I would like to have my ref. point set up as the face of the chuck also. So you use a G53 (say -12") ? for that then G54 is the distance from G53 to the part end as a positive #?
__________________
Exotic Welder
Reply With Quote

  #8   Ban this user!
Old 12-04-2008, 11:19 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,565
Geof will become famous soon enough

Originally Posted by HuFlungDung View Post
G92 S spindle clamp speed is a safety command....
I am confused; I thought G50 was spindle clamp on nearly every lathe.

I do know on a Haas lathe G92 is a threading cycle.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #9   Ban this user!
Old 12-05-2008, 07:34 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Dave,
In order to get the tool to be 0 at the spindle chuck you have to change your 1st reference position parameters. I don't know what kind of control you have so I am not sure what parameters to look up.

Once you have this parameter you have to put the distance from chuck face to machine orgin in this parameter. Now when you program as Huflung has said G53Z0 or you can just Z0 and it will want to bring the tool to the chuck face. These numbers are usually in metric @ a 3 decimal place but you don't use the decimal when inputting. So if you wanted to put in 300.53 mm you have to type 300530 input. If you type 30053 it will read it as 30.053mm.

Huflung is 100% correct many people set up there machine in different ways but I set up all my machines as this procedure. Your tool's are always offset so all you have to do is put your part height in G54-G59 and specifiy that in the program. Now when saying G0G54Z0 the tool goes to the top of the part.

Almost forgot. You will have to change the soft overtravel limits. The machine now has a new home so you have to build your overtravels around that. I usually go 2.54mm past the home position parameters. You also have to power cycle the machine to have the 1st reference parameters take effect.

Stevo
Reply With Quote

  #10  
Old 12-05-2008, 09:40 AM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

Originally Posted by Geof View Post
I am confused; I thought G50 was spindle clamp on nearly every lathe.

I do know on a Haas lathe G92 is a threading cycle.
Yes, it could be either way. The Mitsubishi has an option to select Gcode system 2 or system 3, which transposes certain gcodes.
When I see a command like:
G92 S4500
that tells me that the programmer expected system 3, as otherwise that command makes no sense.
__________________
First you get good, then you get fast. Then grouchiness sets in.

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

Sponsored Links
  #11  
Old 12-05-2008, 09:45 AM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

Dave6,
Does your machine have a tool eye on it for setting tool offsets? This is just an inquiry as to how complicated resetting machine zero might become.

When you power up and home the machine now, what do you see on the G53 position display? And where is your reference tool tip in relation to the chuck face and spindle centerline at that moment (tape measure). This might give us somewhere to start as to what your expected settings should be in the parameters. For a reference tool, I would recommend an OD turning tool in the turret homed position. This tool would be one that you are unlikely to ever remove from the turret.
__________________
First you get good, then you get fast. Then grouchiness sets in.

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

  #12   Ban this user!
Old 12-05-2008, 10:08 AM
 
Join Date: May 2006
Location: Canada
Posts: 85
dave6 is on a distinguished road

OK I tried a bunch of suggestions and this is what I have come up with so far. When I delete the line asking for the first tool everything seams to go to a reasonable position. So I think my set up for my tool data or tool offsets are wrong to begin with, I will have to look at those again. G53 is machine zero home position which is the top right hand side on my slant bed lathe. My machine does not have a tool eye for tool setting. My machine is set to use G code system 2. Stevo1 my control is a Mitsubishi Meldas L3 and I will look for those parameters, they may be set for a collet chuck and I have a three jaw which protrudes more. So you say its a machine parameter that sets G53? I am familiar with the travel and over travel parameters, but these dont set zero do they?
__________________
Exotic Welder
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





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