Mastercam X, force 4 decimal place output


Results 1 to 5 of 5

Thread: Mastercam X, force 4 decimal place output

  1. #1
    Registered
    Join Date
    May 2008
    Location
    USA
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default Mastercam X, force 4 decimal place output

    I'm working with an oddball controler software (flexcam) and trying to build my own post processer. I have solved all of the problems but one.
    I need to give the machine four decimal places even if they are not significant. and I'm using the ' generic fanuc 3X mill.pst '

    Thanks for any help,
    KC

    Similar Threads:


  2. #2
    Member
    Join Date
    May 2007
    Location
    USA
    Posts
    1003
    Downloads
    0
    Uploads
    0

    Default

    Here is where you set the type of output you want. You can create your own options. The 'time' options were an add on as were a couple others.

    # --------------------------------------------------------------------------
    # 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 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
    fs2 16 0 4 0 3t #No decimal, absolute, 4 trailing
    #Default english/metric feed format statements
    fs2 17 0.2 0.1 #Decimal, absolute, 2/1 place
    fs2 18 0.4 0.3 #Decimal, absolute, 4/3 place
    fs2 19 0.5 0.4 #Decimal, absolute, 5/4 place
    fs2 20 1 0 1 0n #Integer, forced output
    fs2 25 1.4 1.3lt #Decimal, absolute, 4/3 trailing

    # These formats used for 'Date' & 'Time'
    fs2 21 2.2 2.2lt #Decimal, force two leading & two trailing (time2)
    fs2 22 2 0 2 0t #Integer, force trailing (hour)
    fs2 23 0 2 0 2lt #Integer, force leading & trailing (min)

    By looking at these examples you should be able to figure out when to use t (trailing), l (leading), d (delta), or neither. Then you use these numbers (1-25) to format the output for each letter. Thusly:

    # Toolchange / NC output Variable Formats
    # --------------------------------------------------------------------------
    fmt T 7 toolno #Tool number
    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 S 4 maxss$ #RPM spindle speed
    # --------------------------------------------------------------------------
    fmt N 24 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 U 3 xinc #X position output
    fmt V 3 yinc #Y position output
    fmt W 3 zinc #Z position output
    fmt C 11 cabs #C axis position
    fmt H 14 cinc #C axis position
    fmt C 11 cout_a #C axis position
    fmt H 14 cout_i #C axis position
    fmt B 4 indx_out #Index position
    fmt I 3 iout #Arc center description in X
    fmt J 3 jout #Arc center description in Y
    fmt K 3 kout #Arc center description in Z
    fmt R 2 arcrad$ #Arc Radius
    fmt F 18 feed #Feedrate
    fmt P 16 dwell$ #Dwell
    fmt M 5 cantext$ #Default cantext
    fmt C 2 crad #C axis start radius, G107



  3. #3
    Registered
    Join Date
    May 2008
    Location
    USA
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default

    Thanks man, I actually just figured out my prob using some help from the mastercam forum.

    Thanks again,
    KC



  4. #4

    Default

    hello, it's the first time that i work on a flexcam cnc controller but i don,t have any information & can't find any document for it so does anyone have the list of M & G-code & some sample program.
    thanks in advance



  5. #5
    Member
    Join Date
    Feb 2016
    Location
    Canada
    Posts
    15
    Downloads
    0
    Uploads
    0

    Default

    did you find any documentation for flexcam? im trying to get an old machine up and going that had it previously installed. we are haaving trouble repairing z axis plug which was damaged in storage. after rewiring it it just wants to send the z all the way up into the bumper or vise versa for down. would love to be able to understand a bit more about flexcam being from a mach3 background



  6. #6

    Default Re: Mastercam X, force 4 decimal place output

    I just create a post-processor on artcam it's a little bit a weird controller but i work on it



Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Mastercam X, force 4 decimal place output

Mastercam X, force 4 decimal place output