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! > MetalWorking > General Metalwork Discussion


General Metalwork Discussion Discuss everything relating to metal work.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 08-17-2009, 02:24 AM
 
Join Date: Aug 2009
Location: Pakistan
Posts: 6
luckyyyyyy is on a distinguished road
why Tool move back to reference point everytime during machining

hi every one...

please help me about this matter...

actually you know about Gcode...

so after generating Gcode from masterCAM...

I found following lines at the end of Gcode..

--------------------------
N9 G91 G28 Z0.
N10 G28 X0. Y0. A0.
N11 M30
%
--------------------------

this means that after the operation is completed the tool move to refrence point " 0,0,0 " ..My problem is that I dont wana tool move back to reference point...I want to keep tool at that position...

actually every time during machining the tool move back to refernce point(zero point)... i think these should be one option in masterCAM for the keep tool at last machining point...please tell me how can i solve this problm..

one think ...what do you think is that masterCAM problm or Post Processor ...?????????


please help me and reply me fast...thanks...
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 08-17-2009, 06:07 AM
Superman's Avatar  
Join Date: Dec 2008
Location: Krypton
Age: 51
Posts: 1,504
Superman is on a distinguished road
Buy me a Beer?

This series of code that mastercam outputs is a generic " put things back the way you found them" senario

It all depends on the machine and control, does you machine know it's position at boot-up or do you have to home the axes

Some machines set the "part origin" from it's current homed position. If you are not at home, how is the machine capable of setting the work datums. If you left the code "as is", what do you hope to gain--- 1/2 a second of cycle time, and 1 hour of setup grief, or do you leave it alone.

Tool change is usually at a pre-defined point, either home in Z or at a known point. Mastercam would be using a "SAFE POINT" for all the above, and it would be up to the programmer or operator to "chop" the program to gain any time for a production type job.
Single or low quantity type jobs would not be worth the effort to trim time out of it, as it would take 1/2 hour of editing to save 5 minutes of time- so it's not really worth going that direction.

Even keeping tool retracts short as possible, is not cost effective. You run the danger of a descent crunch ( the tool and or the part will end up in the
skip ). Yes, keep the retacts respectable ( say 3mm or 0.1" above the highest point )
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 08-17-2009, 07:00 AM
 
Join Date: Apr 2009
Location: Bahrain
Posts: 7
CNC TECH is on a distinguished road

It sounds like your Post that is causing your problem I'm not well up on the parameters the mastercam posts use but if you want to mail it to me i'll take a look and hopefuly mail you back a new post with this movement eliminated.

the previous post is very correct about avoiding a crash but I think I could give you 2 new posts to try the first to eliminate the movement to 0,0,0 after tool change and one to eliminate the movement completly just a Z,0 to move your tool from the job safely
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 08-17-2009, 07:04 AM
 
Join Date: Aug 2009
Location: Pakistan
Posts: 6
luckyyyyyy is on a distinguished road

Thanks alot for advicing...

actually I wana solve this matter...please if you have solution what I want then kindly tell me...I just want to keep tool at last position ...dont wana back to zero point(reference point).....so kindly tell from where can I set this command(from MCX or Control Definition or Machine Definition) from where????????????????


Its sure that these two following lines are auto generated by masterCAM...but I dont want these ...how can I control these...?????????

N9 G91 G28 Z0.
N10 G28 X0. Y0. A0.



thanks...
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 08-17-2009, 07:22 AM
 
Join Date: Jan 2009
Location: USA
Posts: 2
rockchopper is on a distinguished road

Are you using MPFAN.PST? Below is the part of the post you need to modify. Put a # in front of the red line. After this the line will be ignored. If you don't know how to edit the post. Don't do it. This however will not eliminate N9 G91 G28 Z0. I wouldn't take that part out anyway.


peof$ #End of file for non-zero tool
pretract
comment$
#Remove pound character to output first tool with staged tools
#if stagetool = one, pbld, n, *first_tool, e
pbld, n$, *sg28ref, "X0" "Y0." "A0", protretinc, e$
n$, "M30", e$
mergesub$
clearsub$
mergeaux$
clearaux$
"%", e$
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 08-17-2009, 07:22 AM
 
Join Date: Apr 2009
Location: Bahrain
Posts: 7
CNC TECH is on a distinguished road

Luckyyyyyy Its not that I want to hide what I would do, I would give you explanation of how to do it yourself, it's just I need to workout where the line is being generated and I'm not sure how mastercam works it could be in parameters for machining within the program or it comes from the post.

I will see if i can find a demo version of mastercam and look for you but i dont think a demo version will have a post with it thats why i asked to see your post, send it privatley to me.
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 08-17-2009, 12:44 PM
 
Join Date: Mar 2009
Location: USA
Posts: 1
PROFCNC is on a distinguished road
Smile Editing Post

Hi all,
Here is one thing to keep in mind. Altering or editing the post may not be a safe option long term. It is best to understand how you may be able to edit the program after posting to tailor it. The sequence line N9 is the safest way to send a spindle home straight up. Some machines will plunge downward approx. 1mm or more when it sees a G28 Z0. So it is safest first to give it a G91 so that the machine incrementally moves from it's last Z height position. Secondly, Giving a machine a G28 X0 Y0 allows safe celarance of the fixture or part for changing parts or loading the vise. You do not clarify your intentions at the end of the program so I am not sure why this is so important. Here's my best advise and the way I teach programming. If you want the machine to stay at the last point of operation. then just give it the following lines and delete sequence line N10.

N9 G91 G28 Z0
N11 M30

You say you want to delete the sequence line N9 also? Just how do you want to stop the program? Because if you are not careful, when you attempt to restart the program or depending on how you restart and what G codes are modal in the control or machine, you are almost guarenteed to crash eventually. This is why MasterCam does this. It is the best and safest way.
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 08-18-2009, 03:02 AM
 
Join Date: Aug 2009
Location: Pakistan
Posts: 6
luckyyyyyy is on a distinguished road
Smile

Hi all,

Thanks alot for nice suggestion.

this method work... for adding the comment symbol before this line,,,

# pbld, n$, *sg28ref, "X0" "Y0." "A0", protretinc, e$

its works...because post doesn't compile this line....ok its fine...


but now in lathe post these two lines generate every time...



G28 U0. W0. M05
T0100




( i can understand first line ..its same like mill post Gcode ...tool move to zero point and spindle stop)
here now i also don't want this line..I tried to add in my lathe post but I think you can giude me better....the post is much different than MPFAN...so that's why i don't wana crash my machine...please tell me "rockchopper" ...which line I need to consider this time(lathe post)...if anybody know..please giud me...


and also you can see second line...that is " T0100 " ...tool number....why it creates everytime...how can I remove from post..??????????.kindly tell me ...??????????


thanks alot...
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 08-18-2009, 03:31 AM
 
Join Date: Aug 2009
Location: Pakistan
Posts: 6
luckyyyyyy is on a distinguished road
Smile

----------------------------------------
#Retract to reference return
pbld, n$, `sgcode, psccomp, e$
if home_type = m_one, pbld, n$, *toolno, e$
#pcan1, pbld, n$, *sg28ref, "U0.", [if y_axis_mch, "V0."], "W0.",
pnullstop, strcantext, e$
-----------------------------------------

this is lathe post code...I add comment symbol before the red line so its working...now its doesn't create this (G28 U0. W0. M05 ) line ....

what do you think "rockchopper" is it ok ....kindly tell me if it will create some problem in future...

---------------------------

if its ok ...then please tell me the second solution.... (T0100) tool number..

I dont want this tool number everytime at the end of Gcode like this...

G0 Z.1
G28 U0. W0. M05
T0100 ..................wana remove...
M30
%


thanks....
Tweet this Post!Share on Facebook
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
Newbie- Reference point MCV800 Meldas 5000C2 jorber OKK 0 07-14-2009 05:51 PM
Need Help!- Reference point shifting in a VMC visu Fanuc 1 07-14-2009 01:11 PM
Need Help!- Fanuc21i-T - Reference point problem Dare Fanuc 6 01-22-2009 05:04 PM
Problem- G30(reference point return) Reg wharton Daewoo/Doosan 2 06-13-2008 06:32 AM
Return through reference point? RBrandes Haas Mills 3 12-02-2005 10:49 AM




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