![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Mastercam Discuss Mastercam software here. |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
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 |
|
#4
| |||
| |||
| 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. |
|
#6
| |||
| |||
| 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. |
|
#7
| ||||
| ||||
| 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 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 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
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 |