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 07-12-2005, 07:08 AM
 
Join Date: May 2004
Location: United States
Posts: 44
COPO427 is on a distinguished road
V9 MPFAN post mod.

Hi folks..

I am looking to modify my V9 MPFAN post so I can have a 5 digit program name at the top of my program. Right now I have a "O" with 0000.

Can someone walk me through this??

Thanks alot
Reply With Quote

  #2   Ban this user!
Old 07-12-2005, 10:11 AM
 
Join Date: Mar 2005
Location: Silicon Valley, CA
Posts: 982
psychomill is on a distinguished road

On your tool parameter page, you can enter a program number for the post to use. Look to the third column over and you'll see " program # ".

Or have you already tried that and you're still getting ' O0000 ' ?
__________________
It's just a part..... cutter still goes round and round....
Reply With Quote

  #3   Ban this user!
Old 07-14-2005, 12:49 PM
ObrienDave's Avatar  
Join Date: Jun 2005
Location: USA
Posts: 280
ObrienDave is on a distinguished road

Greetings,

I assume you have already made modifications to your MPFAN post.
If you will attach your post as a ZIP file to a message, I will be happy to modify it for you and post it back.

I will also try to explain how I fixed it.

Regards,

ObrienDave
MasterCam programmer since V6
Reply With Quote

  #4   Ban this user!
Old 07-14-2005, 12:56 PM
ObrienDave's Avatar  
Join Date: Jun 2005
Location: USA
Posts: 280
ObrienDave is on a distinguished road
4 digit "O" word

Originally Posted by psychomill
On your tool parameter page, you can enter a program number for the post to use. Look to the third column over and you'll see " program # ".

Or have you already tried that and you're still getting ' O0000 ' ?
Greetings,

Sorry, but that will not fix the 4 digit "O" word.
In the post there is an output format for each "word".
Usually, the "O" word is forced to a 4 digit integer.
You have to change the output format in the post to allow a 5 digit "O" word.

Regards,

ObrienDave
Reply With Quote

  #5  
Old 07-14-2005, 01:25 PM
Rekd's Avatar
Community Moderator
 
Join Date: Apr 2003
Location: teh Debug Window
Posts: 1,877
Rekd is on a distinguished road

Originally Posted by ObrienDave
Greetings,

Sorry, but that will not fix the 4 digit "O" word.
In the post there is an output format for each "word".
Usually, the "O" word is forced to a 4 digit integer.
You have to change the output format in the post to allow a 5 digit "O" word.

Regards,

ObrienDave
In your post, find:

Code:
fs2 7   4 0 4 0l    #Integer, force four leading
(the 7 may be a different number) and add this line below it or in that section someplace:

Code:
fs2 8   5 0 4 0l    #Integer, force five leading
Make sure fs2 8 is not being used.

Next find:

Code:
fmt  O  7   progno      #Program number
and replace with:

Code:
fmt  O  8   progno      #Program number
or what ever number was available from step 1.

HTH. (back up your post before you make any changes)
__________________
Matt
San Diego, Ca

___ o o o_
[l_,[_____],
l---L - □lllllll□-
( )_) ( )_)--)_)

(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
  #6   Ban this user!
Old 07-14-2005, 02:14 PM
 
Join Date: Mar 2005
Location: Silicon Valley, CA
Posts: 982
psychomill is on a distinguished road

Sorry, but that will not fix the 4 digit "O" word.
I realize that but he had not mentioned what he has been doing in getting the results. I was just fishing.

Usually, the "O" word is forced to a 4 digit integer.
You have to change the output format in the post to allow a 5 digit "O" word.
In theory, this is correct (as well as the changes shown by Rekd). However, I have several posts set for 4 digits, ( just like Matt said: fmt O 7 progno #Program number ) and I even tried just for sh**s and giggles posting through a generic MPFAN post.... It will post 5 digits! I can even get them to post 8 digits!


__________________
It's just a part..... cutter still goes round and round....
Reply With Quote

  #7   Ban this user!
Old 07-15-2005, 05:34 AM
 
Join Date: May 2004
Location: United States
Posts: 44
COPO427 is on a distinguished road

Thanks for the info guys. ReKD, I am working on changing what you posted.

I will post my results if I can get it to change.

Thanks again
Reply With Quote

  #8   Ban this user!
Old 07-15-2005, 06:04 AM
 
Join Date: May 2004
Location: United States
Posts: 44
COPO427 is on a distinguished road

Hi again. Ok here is my post after I did ReKD's mods.

I put the O34343 in at the tool Parameters page but chose 111111 when I coded the part. Major confusion here.

All I want is the 111111 in place of the O34343. I also don't want it to say (PROGRAM NAME-111111).

This part is just a simple 2-d square.

I have some more things I would like changed, but one thing at a time for this greenhorn.

Thanks again for any help guys.


%
O34343
(PROGRAM NAME - 111111)
(DATE=DD-MM-YY - 15-07-05 TIME=HH:MM - 07:04)
N5G20
N10G0G17G40G49G80G90
( 1/2 FLAT ENDMILL TOOL - 1 DIA. OFF. - 21 LEN. - 2 DIA. - .5)
N15T1M6
N20G0G90G53X0.Y4.25A0.S1069M3
N25G43H2Z.1
N30G1Z0.F6.42
N35X5.
N40G2X5.25Y4.R.25
N45G1Y0.
N50G2X5.Y-.25R.25
N55G1X0.
N60G2X-.25Y0.R.25
N65G1Y4.
N70G2X0.Y4.25R.25
N75G0Z.1
N80M5
N85G91G28Z0.
N90G28X0.Y0.A0.
N95M30
%
Reply With Quote

  #9  
Old 07-15-2005, 08:24 AM
Rekd's Avatar
Community Moderator
 
Join Date: Apr 2003
Location: teh Debug Window
Posts: 1,877
Rekd is on a distinguished road

progname and progno are 2 different things. progno comes from the Program Number in the Ops manager. progname is the name of the NCI destination. (Typically the MC9 name)

i.e. if your MC9 name is 11111.mc9, that's what you'll likely get for progname.

Do you want the program name to match the program number?
__________________
Matt
San Diego, Ca

___ o o o_
[l_,[_____],
l---L - □lllllll□-
( )_) ( )_)--)_)

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

  #10   Ban this user!
Old 07-15-2005, 08:32 AM
 
Join Date: May 2004
Location: United States
Posts: 44
COPO427 is on a distinguished road

Ya know I am really confused here as to what I want. I am sending a program that works perfect for my machine.

It is a 1X2" 2-d rectangle.

I need a stock MPFAN post to be modified to post like my program I am sending. Probably no easy task.

Thanks for the help.


%
O11111
N15G54G00X0Y0Z0
N26S1069M3T1
N28G1Z0.F6.42
N45G43H1Z.1
N26X0.Y1.25
N65X2.
N75G2X2.25Y1.R.25
N85G1Y0.
N95G2X2.Y-.25R.25
N105G1X0.
N115G2X-.25Y0.R.25
N125G1Y1.
N135G2X0.Y1.25R.25
N136G40G49
N145G0Z0
N155G54G00X0Y0Z0
N185M30
%
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 07-15-2005, 09:52 AM
 
Join Date: Mar 2005
Location: Silicon Valley, CA
Posts: 982
psychomill is on a distinguished road

COPO,

Using your program as the example, lets try this....

In your post, the 'psof' probably looks something like this:

Code:
.psof            #Start of file for non-zero tool number             
.
.           pcuttype
.           toolchng = one 
.           if ntools = one,
.             [
.             #skip single tool outputs, stagetool must be on
.             stagetool = m_one 
.             !next_tool
.             ]
.           "%", e
.           *progno, e
.           "(PROGRAM NAME - ", sprogname, ")", e
.           "(DATE=DD-MM-YY - ", date, " TIME=HH:MM - ", time, ")", e
.           pbld, n, *smetric, e       
.           pbld, n, *sgcode, *sgplane, "G40", "G49", "G80", *sgabsinc, e
.           sav_absinc = absinc       
.           if mi1 <= one, #Work coordinate system
.             [
Change it to this:

Code:
.psof            #Start of file for non-zero tool number             
.
.           pcuttype
.           toolchng = one 
.          if ntools = one,
.             [
.             #skip single tool outputs, stagetool must be on
.             stagetool = m_one 
.             !next_tool
.             ]
.           "%", e
.           *progno, e
.#            "(PROGRAM NAME - ", sprogname, ")", e
.#            "(DATE=DD-MM-YY - ", date, " TIME=HH:MM - ", time, ")", e
.           pbld, n, *smetric, e       
.           pbld, n, *sgcode, *sgplane, "G40", "G49", "G80", *sgabsinc, e
.           sav_absinc = absinc       
.           if mi1 <= one, #Work coordinate system
.             [
See where I added the '#' sign in front of the lines for "PROGRAM NAME" AND "DATE" ? The '#' sign tells the post to skip or not read this line.

Now in your tool parameter page, go ahead and type in "11111" for your program number. When you post, one of the windows prompt will ask you for a program name or actually, a "file name". Call this what you want (the default name will show up the same as your nci, you can change it to what you want).


HTH
__________________
It's just a part..... cutter still goes round and round....

Last edited by psychomill; 07-15-2005 at 10:10 AM.
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
Modify Mastercam MPFAN post COPO427 Mastercam 15 05-26-2004 11:59 AM




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