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! > CAM Software > Mastercam


Mastercam Discuss Mastercam software here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 09-25-2010, 12:34 AM
 
Join Date: Sep 2010
Location: Australia
Posts: 10
Matt. is on a distinguished road
Unhappy Help stop mastercam returning to home at 0 at end of job.

Hello People,

Could someone tell me how to get mastercam to stop adding gcode to the end of my job that sends the tool to the reference point at 0 and marking my work.

Mastercam x3
CNC mill

Cheers

Matt
Reply With Quote

  #2   Ban this user!
Old 09-25-2010, 06:09 AM
Superman's Avatar  
Join Date: Dec 2008
Location: Krypton
Age: 51
Posts: 1,556
Superman is on a distinguished road
Buy me a Beer?

Matt,
More info is needed
What generic post ?
for what machine and control ?

There can be multiple solutions for what you put up
but, try looking at the settings in Misc Intergers before any post editing
at the G30/G28 behaviour and the settings you have for Misc Interger#1
Reply With Quote

  #3   Ban this user!
Old 09-26-2010, 06:34 PM
 
Join Date: Sep 2010
Location: Australia
Posts: 10
Matt. is on a distinguished road

Sure sorry about that making a few assumptions that people know whats going on around me.

I have a generic mill (half chinese half home made) using mach3 and a Geckodrive G540.
I have modified the default generic fanuc 3x mill. So I am using the Generic Fanuc 3X mill.pst

Thanks for your time.

Matt.
Reply With Quote

  #4   Ban this user!
Old 09-27-2010, 05:12 AM
Superman's Avatar  
Join Date: Dec 2008
Location: Krypton
Age: 51
Posts: 1,556
Superman is on a distinguished road
Buy me a Beer?

I suggest that you open your post with any text editor, NOTEPAD or CIMCO

And read the top "Notes" section in regards to "Work offsets:" and the number you put in at MI#1 AND the number you put in as the work offset # in the "view manager"
If you want to use G54,G55 etc ---then MI#1 should be =2
and the number you set in the view manager would be 0 for G54, 1 for G55 and so on.

when you have this area sorted, then mod the post if required

The area you want, is marked in RED
or comment the bad one out and hard code what you need in it's place. ie n$, "G0 Z100.", e$
Code:
peof$            #End of file for non-zero tool           
      pretract
      if lock_codes = one & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$
      rotretflg = 1
    #  pbld, n$, *sg28, "X0.", "Y0.", protretinc, e$
  pbld, n$, *sg28, "Y0.", protretinc, e$
      rotretflg = 0
      if lock_codes = one & rot_on_x, pbld, n$, *slock, slockcomm, e$
      comment$
      if not(index), n$, *sg90, e$
      n$, "M30", e$
      mergesub$
      clearsub$
      mergeaux$
      clearaux$
      "%", e$
Reply With Quote

  #5   Ban this user!
Old 09-27-2010, 06:32 AM
 
Join Date: Sep 2010
Location: Australia
Posts: 10
Matt. is on a distinguished road

Cheers Ill give it a go.

Matt
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-29-2010, 10:02 AM
 
Join Date: May 2007
Location: canada
Posts: 71
lovecnc2003 is on a distinguished road

thanks
Reply With Quote

  #7   Ban this user!
Old 10-07-2010, 04:47 PM
 
Join Date: Aug 2010
Location: USA
Posts: 97
mafitch7479 is on a distinguished road

I'm having the same issue. I've gotten in the habit of adding a "move to point" toolpath at the end of my programs, then deleting the extra lines of code that send the part to the back of the machine. We're using the generic fanuc 3x mill post on a Hurco VM1.

I have a little experience with coding, but I'm not catching your drift on what needs to be changed to keep it from going to the machine's home position at the end of a program (I'd still like it to go to the machine's home position during tool changes though, but I think that's a setting we've adjusted in the mill itself right now).

On a side note, I've been playing around with the posts, so I saved a copy of the generic post and re-named it so I'd still have the original to revert back to. When I run a program through that re-named post, the code comes out without spacing. With the original there's spacing and it's easy to read. What happened? I didn't change anything in the post, just re-named a copy of it. Looks like the line numbering is different too.

Here's an example of what the output looks like from the re-named one:
N140G43H8Z.35
N150Z.1
N160G1Z.0187F6.42
N170Y-2.3037Z-.0813F30.

And the same line from the original:
N108 G43 H8 Z.35
N110 Z.1
N112 G1 Z.0187 F6.42
N114 Y-2.3037 Z-.0813 F30.

Thanks for any help
Reply With Quote

  #8   Ban this user!
Old 10-08-2010, 12:55 AM
 
Join Date: Oct 2010
Location: Usa
Posts: 38
Jhjr is on a distinguished road

Look for "end of file non tool zero". If it has a g28 in a line put a # in front of the line. Only do this in the section between end of file non tool zero & m30. Nowhere else in the post. Then in the next line after you put the #, & put in the code that you want to be there like superman showed you. Like. n$, "GO Z25.", e$ or what ever you want that number to be. Then you could do the same with X & Y.

As far as the spacing goes are you using the same md & cd that you were using before? I know that there's some switches in there that can control your line # & spacing output. If that's not it then I'm not sure offhand. I don't have a post in front of me right now. Hth
Reply With Quote

  #9   Ban this user!
Old 10-08-2010, 04:13 AM
Superman's Avatar  
Join Date: Dec 2008
Location: Krypton
Age: 51
Posts: 1,556
Superman is on a distinguished road
Buy me a Beer?

For the change in the spaces,
open the original file and the modified one using Cimco, then do a file compare
This will highlight any differences. If you can't find the problem, start again from the original post

You should be looking for a missing $ or a , (comma) or a character that may have been deleted

To understand how a post works, the general order it "thinks" is:
upper area defines your machine, creates a place to place info ( strings) and sets a default value in these strings, then it runs thru in this general order
1-header
2-SOF ( start of file )
3-toolchange ( or ptlchg_com )
4-1st op
5- next op --> if new tool ( do #3)--> if same tool ( do ptlchg0$ )
6- EOF ( end of file )

every step is a branch point away to do an item, then return to the main body and do the next step
ie pwcs in the main stream is calling a "macro" to look at your settings and how you define your work origin, and then apply the correct code sequence when you post.
Reply With Quote

  #10   Ban this user!
Old 10-08-2010, 08:20 AM
 
Join Date: Aug 2010
Location: USA
Posts: 97
mafitch7479 is on a distinguished road

Originally Posted by Superman View Post
For the change in the spaces,
open the original file and the modified one using Cimco, then do a file compare
This will highlight any differences. If you can't find the problem, start again from the original post

You should be looking for a missing $ or a , (comma) or a character that may have been deleted

To understand how a post works, the general order it "thinks" is:
upper area defines your machine, creates a place to place info ( strings) and sets a default value in these strings, then it runs thru in this general order
1-header
2-SOF ( start of file )
3-toolchange ( or ptlchg_com )
4-1st op
5- next op --> if new tool ( do #3)--> if same tool ( do ptlchg0$ )
6- EOF ( end of file )

every step is a branch point away to do an item, then return to the main body and do the next step
ie pwcs in the main stream is calling a "macro" to look at your settings and how you define your work origin, and then apply the correct code sequence when you post.
something must have gotten deleted yesterday, but I'm not sure how considering I had just done a "save as" from the original post, and renamed it. Looks like the spaces are gone now.

Hopefully I'll get some time to look into the post and find the move to zero part
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 10-08-2010, 10:03 AM
 
Join Date: Aug 2010
Location: USA
Posts: 97
mafitch7479 is on a distinguished road

Originally Posted by Superman View Post
For the change in the spaces,
open the original file and the modified one using Cimco, then do a file compare
This will highlight any differences. If you can't find the problem, start again from the original post

You should be looking for a missing $ or a , (comma) or a character that may have been deleted

To understand how a post works, the general order it "thinks" is:
upper area defines your machine, creates a place to place info ( strings) and sets a default value in these strings, then it runs thru in this general order
1-header
2-SOF ( start of file )
3-toolchange ( or ptlchg_com )
4-1st op
5- next op --> if new tool ( do #3)--> if same tool ( do ptlchg0$ )
6- EOF ( end of file )

every step is a branch point away to do an item, then return to the main body and do the next step
ie pwcs in the main stream is calling a "macro" to look at your settings and how you define your work origin, and then apply the correct code sequence when you post.
odd, I just tried it again. There's no difference between the posts when comparing, and yet the re-named one comes out with no spaces. Is it something to do with the control file? I really am lost here, doesn't help that it's Friday :P

EDIT: Found the issue with the spacing. A setting in the control definition in mastercam, under NC Output, it had changed the spaces between NC addresses to 0, when it should have been 1, so that's fixed.

And I'm still unable to find the point where it tells it to go to the home position. The part you posted earlier is completely different from what I have, so I'm not sure what to change.

peof0$ #End of file for tool zero
peof$

peof$ #End of file for non-zero tool
pretract
comment$
if stagetool = 1 & stagetltype = 2, pbld, n$, *first_tool$, e$
n$, "M30", e$
mergesub$
clearsub$
mergeaux$
clearaux$
"%", e$

Last edited by mafitch7479; 10-08-2010 at 11:11 AM.
Reply With Quote

  #12   Ban this user!
Old 10-08-2010, 05:06 PM
Superman's Avatar  
Join Date: Dec 2008
Location: Krypton
Age: 51
Posts: 1,556
Superman is on a distinguished road
Buy me a Beer?

Originally Posted by mafitch7479 View Post
And I'm still unable to find the point where it tells it to go to the home position. The part you posted earlier is completely different from what I have, so I'm not sure what to change.
The blue lines you need are missing, this example is called hard coding ( what is in quotes is posted into the NC file, ad-hoc. )
Code:
peof$ #End of file for non-zero tool 
     pretract
     comment$
     n$, "G0 Z10.", e$       # retract to Z home
     n$, "G0 X-10. Y10.", e$   # move spindle to rear
     if stagetool = 1 & stagetltype = 2, pbld, n$, *first_tool$, e$
     n$, "M30", e$
     mergesub$
     clearsub$
     mergeaux$
     clearaux$
     "%", e$
some machines use a G28, so the blue lines could be replaced with
n$, *sg28, "Z0.", e$
n$, *sg28, "X0. Y0.", protretinc, e$

Protretinc is a post-block that should make the 4th axis return to zero ---if turned ON and used.
Using a machine code is better as it uses the machines' co-ord system for the values and it doesn't rely on the part's origin.

Last edited by Superman; 10-08-2010 at 08:49 PM. Reason: forgot the seq #'s
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
Mach3 axis not returning to home saltybugger Machines running Mach Software 20 01-18-2010 11:57 AM
Stop Z from going home DareBee Fadal 17 11-25-2009 02:37 PM
Reset mach 3 after stoping pogram and returning home Prboz Mach Mill 0 12-12-2007 05:05 AM
home, limit, e-stop drafterman CNC Plasma and Waterjet Machines 11 04-12-2007 05:46 AM
Limit, Home and E Stop Switches Mr.Chips General Electronics Discussion 15 01-17-2007 09:02 AM




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