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 > Post Processors for MC



This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 10-29-2006, 09:55 PM
Shotout's Avatar  
Join Date: Jun 2006
Location: USA
Age: 37
Posts: 443
Shotout is on a distinguished road
Question Need to edit Haas post

Are there any tutorials online that will walk someone through their first post edit?
Basically I want to add some remark fields to the top of the NC file with customer info, part name, dwg #, mc9 file name and date that I can fill in by hand as required. I also have to hand edit out A0. and don't want my table to home at every tool change so G28 X0.Y0.A0. has to go.
I'd also like to add an automatic G0 Z2.5 M09; X0. Y2.0 at the end of the program before homing the spindle and rewinding the program. Most of the parts we make allow for this table travel with my set ups and it would be very convienent if the post would add this for me. As it is now I have use the replace function in the simco editor and then hand edit the rest in. I'm using the generic mpfan post for Haas TM-1s. TIA
Scott
__________________
Suppose you were an idiot and suppose you were a member of Congress. But I repeat myself.
Mark Twain
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 10-29-2006, 10:07 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,419
Geof will become famous soon enough
Put it in the Haas and use the Haas editor. You should be able to do all your changes using the find/replace function. For your identification stuff at the top you can create a little program that has all the fields blank. You call up this program, enter your stuff in all the fields, select the whole program as a block, copy it to the clipboard and then paste it from the clipboard into the top of your program.
Tweet this Post!Share on Facebook
Reply With Quote

  #3  
Old 10-29-2006, 10:51 PM
Mike Mattera's Avatar
Gold Member
 
Join Date: Mar 2006
Location: USA
Posts: 1,010
Mike Mattera is on a distinguished road
Do you want to buy one that already has all that in it?

Mike Mattera
__________________
Tips For Manufacturing Training CD's, DVD's for Mastercam, SolidWorks, Inventor, G-Code Training & More
http://www.tipsforcadcam.com
Tweet this Post!Share on Facebook
Reply With Quote

  #4  
Old 10-29-2006, 11:15 PM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,395
tobyaxis is on a distinguished road
Originally Posted by Shotout View Post
Are there any tutorials online that will walk someone through their first post edit?
Basically I want to add some remark fields to the top of the NC file with customer info, part name, dwg #, mc9 file name and date that I can fill in by hand as required. I also have to hand edit out A0. and don't want my table to home at every tool change so G28 X0.Y0.A0. has to go.
I'd also like to add an automatic G0 Z2.5 M09; X0. Y2.0 at the end of the program before homing the spindle and rewinding the program. Most of the parts we make allow for this table travel with my set ups and it would be very convienent if the post would add this for me. As it is now I have use the replace function in the simco editor and then hand edit the rest in. I'm using the generic mpfan post for Haas TM-1s. TIA
Scott
I'm very new to MC so forgive me if I screw something up. You can edit a post processor in the Posts Folder.

Main Menu
File
Edit
PST.

Your Post Processor list will come up and you can edit the HAAS Posting by double clicking on it. This opens a new window showing the entire Post Processor Script. There are plenty of directions in MC's main folder on your "C/:" drive.

A lot of the options are self explanitory and others are actual VB Scripts.
Look around a little and see what you can find.

This one is from MC8 Level 1 I believe. I have no idea if it has been edited so don't use it for posting g-code that your going to run. Your better off using this to play with and to get used to the MC Posting Language.

Attached Files
File Type: zip MPHAAS.zip‎ (14.7 KB, 143 views)
__________________
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
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 10-30-2006, 07:39 AM
 
Join Date: Aug 2004
Location: USA
Posts: 366
jderou is on a distinguished road
I'll see if I can help. I made similar changes to my toolchange, removing A's, etc.
Open the post in notepad. Look for something like this:

# ------------------------------------------------------------------------
# Start of File and Toolchange Setup
# -----------------------------------------------------------------------

Their are several subheadings under this, like "#Start of file for non-zero tool number" and "#Tool change".
Under a few of the subheadings is the line
"pfbld, n$, *sg28ref, "X0.", "Y0.", e$"
what I would do at this point is make a change and try the post. I'm not sure if you would need to make the change under each subheading or not, experiment. For example if you just wanted to home the z axis, change the line to:
pfbld, n$, *sg28ref, "Z0.", e$

Adding the lines to the top of the program is going to take much more thought. I need to do something similar, though, so if I get around to it I will update.

Hope this helps,

Joe

edit:
BACKUP POST FIRST!!!
end edit.
__________________
If you try to make everything idiot proof, someone will just breed a better idiot!
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6  
Old 10-30-2006, 11:44 AM
Mike Mattera's Avatar
Gold Member
 
Join Date: Mar 2006
Location: USA
Posts: 1,010
Mike Mattera is on a distinguished road
To turn off the A axis, go to the bottom of the post and look for question 164 and set it to "n" for no output.

General post editing information.
http://www.mmattera.com/
got to Technology - Mastercam Stuff and then "How To Edit A Post".

Mike Mattera
__________________
Tips For Manufacturing Training CD's, DVD's for Mastercam, SolidWorks, Inventor, G-Code Training & More
http://www.tipsforcadcam.com
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 10-30-2006, 09:38 PM
Shotout's Avatar  
Join Date: Jun 2006
Location: USA
Age: 37
Posts: 443
Shotout is on a distinguished road
Originally Posted by Geof View Post
Put it in the Haas and use the Haas editor. You should be able to do all your changes using the find/replace function. For your identification stuff at the top you can create a little program that has all the fields blank. You call up this program, enter your stuff in all the fields, select the whole program as a block, copy it to the clipboard and then paste it from the clipboard into the top of your program.
I appreciate the advice but am not sure if that would be ideal for our circumstances. I frequently use find and replace for fine tuning programs but want the field for archival purposes on my laptop. Since I will be burning them on cd from my laptop I need these on the file at generation, not at the controller. It is my practice to take notes on changes I make to fine tune a program at the controller and make these same changes in the design file and then post the file again with the changes.

The machinist before me left under bad circumstances and a lot of blueprints are missing. The owners think he took them with himand as a result when hired I was told explicitly that all files and blueprints were to be keep filed, provided with a new filing cabinet, folders, CDs and floppies with sleeves for both. Since our main customers track who has what proprietary blueprints they are touchy about our asking for new prints when they show we signed for a copy less than a year ago. It looks unprofessional and the owner has set policy and I need to follow it.


Thanks
Scott
__________________
Suppose you were an idiot and suppose you were a member of Congress. But I repeat myself.
Mark Twain
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 10-30-2006, 09:43 PM
Shotout's Avatar  
Join Date: Jun 2006
Location: USA
Age: 37
Posts: 443
Shotout is on a distinguished road
Originally Posted by Mike Mattera View Post
Do you want to buy one that already has all that in it?

Mike Mattera
Possibly, send me a price as a private message. I'm not sure what the rules are about commercial discussion in this forum so I don't want to inadvertantly violate the rules.
Personally I'm kind of hands on and am always trying to learn more about how things work, ecspecially as a new graduate starting a second career, so I'd like to do it myself, but for a reasonable price it would be worth having an edited post specific to our machines.
__________________
Suppose you were an idiot and suppose you were a member of Congress. But I repeat myself.
Mark Twain
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 10-30-2006, 09:47 PM
Shotout's Avatar  
Join Date: Jun 2006
Location: USA
Age: 37
Posts: 443
Shotout is on a distinguished road
Originally Posted by jderou View Post
I'll see if I can help. I made similar changes to my toolchange, removing A's, etc.
Open the post in notepad. Look for something like this...
Thanks, to you, Mike and eveyone else. I've looked around in the pst file but haven't tried to change anything, only looked around. I'll try it and then carefully read my resulting nc files.

Love the sig line btw
Scott
__________________
Suppose you were an idiot and suppose you were a member of Congress. But I repeat myself.
Mark Twain
Tweet this Post!Share on Facebook
Reply With Quote

  #10  
Old 10-31-2006, 10:49 PM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,395
tobyaxis is on a distinguished road
Originally Posted by Shotout View Post
Possibly, send me a price as a private message. I'm not sure what the rules are about commercial discussion in this forum so I don't want to inadvertantly violate the rules.
Personally I'm kind of hands on and am always trying to learn more about how things work, ecspecially as a new graduate starting a second career, so I'd like to do it myself, but for a reasonable price it would be worth having an edited post specific to our machines.
Scot,

You can copy a post to Modify leaving the original alone and unaltered. That is the safest way I know of. I am totally new to MC and everything about it and found that most of the standard guidelines of other softwares apply to MC as well. What I am doing is modifying a Copied Post Processor and posting G-Code with it to see what changes in the end result. When making changes keep in mind to change one thing at a time taking notes of what was changed. Also keep a Text Log to reference while editing a post (PST. File).

Those books and videos of Mikes look very good. I may purchase them myself.
__________________
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
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 12-04-2007, 11:38 PM
Donkey Hotey's Avatar  
Join Date: Nov 2007
Location: USA
Posts: 1,636
Donkey Hotey is on a distinguished road
Originally Posted by tobyaxis View Post
I'm very new to MC so forgive me if I screw something up. You can edit a post processor in the Posts Folder.

Main Menu
File
Edit
PST.
Holy cow! A years old post but you just answered a question I couldn't get straight whether I asked my VAR or bugging the guys at the MC booth at Westec. A hundred thanks!

I kept getting told that I needed to do it all through the machine and control defs.

I'm finally going to get that post cleaned up (2.5 years later).
__________________
Greg
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 12-05-2007, 06:08 PM
 
Join Date: Sep 2007
Location: USA
Posts: 217
crazythunder is on a distinguished road
Well Hotkey if you had gone over to the emastercam forum you would have had that answered in about 15 minutes.

http://www.emastercam.com/cgi-bin/ultimatebb.cgi
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





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