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 04-14-2011, 01:44 PM
 
Join Date: May 2009
Location: USA
Posts: 56
Mark and Poco is on a distinguished road
post edit

Does anyone know how to change the generic fanuc post to output all its possitions in a no decimal 4 place trailing condition. I found the explanation in the post, just cant get it to do it.

example


X 1.2345 and I need it to read x12345

any help would be great.
The note I found is on page 19 under format statements
I am trying to get it to post with format statement 16
fs2 16 0 4 0 4t #No decimal, absolute, 4 trailing. Any help would be greatly appericiated
Reply With Quote

  #2   Ban this user!
Old 04-14-2011, 03:43 PM
 
Join Date: Apr 2005
Location: Canada
Posts: 114
John Bennett is on a distinguished road

Which version of Mastercam,would help.
Reply With Quote

  #3   Ban this user!
Old 04-14-2011, 05:58 PM
 
Join Date: May 2009
Location: USA
Posts: 56
Mark and Poco is on a distinguished road

Sorry about that. Version is X4 (14) Thanks again everyone. You are the best.
Reply With Quote

  #4   Ban this user!
Old 04-14-2011, 06:37 PM
 
Join Date: Apr 2005
Location: Canada
Posts: 114
John Bennett is on a distinguished road

You need to edit the post with the VBScript (under Settings -drop down to VBScript). Make sure you keep a copy of your post (backup), open post , go down about 1/2 way and you will see section that you have to change. I suggest you print the post and markup as you change to keep on track and you will see all items that you can change...do one at a time and test so you can put back if wrong.
Reply With Quote

  #5   Ban this user!
Old 04-14-2011, 07:12 PM
 
Join Date: May 2009
Location: USA
Posts: 56
Mark and Poco is on a distinguished road

any chance of doing a cut and past for me to show me where it is. I'm still lost. Thanks again.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 04-15-2011, 01:18 AM
 
Join Date: Mar 2007
Location: Bangladesh
Posts: 90
emonje is on a distinguished road

If you want to output x, y & z in format 16 or any other, change to corresponding format number on lines 677, 678 and 679 (from "fmt X 2 xabs" to "fmt X 16 xabs" etc.), few lines below where you found "fs2 16 0 4 0 4t".

Alternatively, you could just change "fs2 2 0.4 0.3" to "fs2 2 0.4 03".

I'm just a rookie in post editing so please check thoroughly before sending to machine.
Also, this is for mcx5, I don't have x4 right now. If this doesn't work I can try to find x4 somewhere.
Reply With Quote

  #7   Ban this user!
Old 04-15-2011, 05:58 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'll see if I can explain what controls what

the fs or fs2 statements are how the post makes a value available for placing with a letter address

Any value in mastercam could have 500 digits after the decimal place ( or have no decimal point at all ), the format statements are used to "chop" these valuse down to a usable size, and can be used in more that one area. fs2 1 "chops" everything down to 7 decimal places for inch, or 6 for metric.... the "lost" numbers are still there, but not available to you

Untrained, you could end up with a tool number wth a decimal point, or a G code with 2 extra zeros.

Code:
# --------------------------------------------------------------------------
# Format statements - n=nonmodal, l=leading, t=trailing, i=inc, d=delta
# --------------------------------------------------------------------------
#Default english/metric position format statements
fs2 1   0.7 0.6     #Decimal, absolute, 7 place, default for initialize (:)
fs2 2   0.4 0.3     #Decimal, absolute, 4/3 place
fs2 3   0.4 0.3d    #Decimal, delta, 4/3 place
#Common format statements
fs2 4   1 0 1 0     #Integer, not leading
fs2 5   2 0 2 0l    #Integer, force two leading
fs2 6   3 0 3 0l    #Integer, force three leading
fs2 7   4 0 4 0l    #Integer, force four leading
fs2 8   5 0 5 0l    #Integer, force five leading
fs2 9   0.1 0.1     #Decimal, absolute, 1 place
fs2 10  0.2 0.2     #Decimal, absolute, 2 place
fs2 11  0.3 0.3     #Decimal, absolute, 3 place
fs2 12  0.4 0.4     #Decimal, absolute, 4 place
fs2 13  0.5 0.5     #Decimal, absolute, 5 place
fs2 14  0.3 0.3d    #Decimal, delta, 3 place
fs2 15  0.2 0.1     #Decimal, absolute, 2/1 place (feedrate)
fs2 16  1 0 1 0n    #Integer, forced output
fs2 17  1.4 1.3lt   #Decimal, absolute, 4/3 trailing
Code:
# --------------------------------------------------------------------------
# Toolchange / NC output Variable Formats
# --------------------------------------------------------------------------
fmt  T  4   t$          #Tool No
fmt  T  4   first_tool$ #First Tool Used 
fmt  T  4   next_tool$  #Next Tool Used  
fmt  D  4   tloffno$    #Diameter Offset No
fmt  H  4   tlngno$     #Length Offset No
fmt  G  4   g_wcs       #WCS G address
fmt  P  4   p_wcs       #WCS P address
fmt  S  4   speed       #Spindle Speed
fmt  M  4   gear        #Gear range
# --------------------------------------------------------------------------
fmt  N  4   n$          #Sequence number
fmt  X  2   xabs        #X position output
fmt  Y  2   yabs        #Y position output
fmt  Z  2   zabs        #Z position output
fmt  X  3   xinc        #X position output
fmt  Y  3   yinc        #Y position output
fmt  Z  3   zinc        #Z position output
fmt  A  11  cabs        #C axis position
fmt  A  14  cinc        #C axis position
fmt  A  14  cout_i      #C axis position
fmt  A  4   indx_out    #Index position
Take for example, fs2 4 1 0 1 0 #Integer, not leading, it is used for the T, D, H, etc. If you alter format statement #4, things will get a little messed up...don't you agree

Solution
create NEW format statements, so you know they arn't used elsewhere, ie
fs2 22 4 3 #no Decimal, absolute, 4/3 place
fs2 23 4 3d #no Decimal, delta, 4/3 place

absolute for the XYZ, incremental for the IKJ ( if needed )

you, at this stage, have not modified the post as this is added, but not linked to any fmt strings

now alter the
fmt X 2 xabs #X position output
to
fmt X 22 xabs #X position output

save and check the NC code, you now only need to play with the fs2 22 line to get it correct, once done, change the other addresses that need altering.

Have you noticed the incremental ones ( fs2 3 ) ??
- that is the "delta" format that would also need applying.

Happy posting
Reply With Quote

  #8   Ban this user!
Old 04-15-2011, 08:58 AM
 
Join Date: May 2009
Location: USA
Posts: 56
Mark and Poco is on a distinguished road

Thanks that did it. I just have a few more to fix, but nothing a little hand editing won't fix. Your info was spot on.
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
Need Help!- how to edit a post jenx Post Processor Files 0 12-10-2009 03:21 AM
Post edit help? yanzeek Surfcam 12 09-03-2009 09:28 AM
edit MC9 post mcgn21 Post Processors for MC 1 05-05-2009 06:59 AM




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