Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Master Cam X6 - MWPFANUC.pst


Recommended Posts

Hello,

I am having problem with the programs which are made in master cam x6 for wire machine.

I was wondering if is possible to make programs on two decimals( 5.42) instead of four (5.4210). If is possible, what I need to change.

I am asking because I could not find it in the program. I could find but it is only related to drawing.

I suppose I need to change some values in MPWFANUC.pst part of code where word decimal is mentioned. I am not sure is the part of code posted below right, I am guessing:

# --------------------------------------------------------------------------
# Format statements - n=nonmodal, l=leading, t=trailing, i=inc, d=delta
# --------------------------------------------------------------------------
#Format statements
fs2 1 0.7 0.6 #Decimal, absolute, 7 place, default for initialize (smile.gif
fs2 2 0.5 0.4 #Decimal, absolute, 5/4 place
fs2 3 0.5 0.4d #Decimal, delta, 5/4 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 1 0 1 0n #Integer, forced output
# These formats used for 'Date' & 'Time'
fs2 18 2.2 2.2lt #Decimal, force two leading & two trailing (time2)
fs2 19 2 0 2 0t #Integer, force trailing (hour)
fs2 20 0 2 0 2lt #Integer, force leading & trailing (min)

 

I have uploaded .txt file of whole post processor code.

 

Any help is appreciated.

Thanks in advance

MPWFANUC.txt

Link to comment
Share on other sites

Change the format of any output character like this:

fmt  "X" 2  xabs        #X position output

to this:

fmt  "X" 10  xabs        #X position output

This will make all 'X' outputs 2 place decimal.  Do the same for any other address prefixes.

 

:cheers:

I have tried but did not work work I and J. I still get I-3.4351 & J-1.6154

 

I have changed only these lines

fmt  "X" 2  xabs        #X position output  -> fmt  "X" 10  xabs        #X position output

fmt  "Y" 2  yabs        #Y position output -> fmt  "Y" 10  yabs        #Y position output

 

fmt  "I" 3  iout        #Arc center description in X ->  fmt  "I" 10  iout        #Arc center description in X

fmt  "J" 3  jout        #Arc center description in Y -> fmt  "J" 10  jout        #Arc center description in Y

 

Do I need to change anything else or am I doing something wrong because I did not get result?

 

Thanks for your time!

Link to comment
Share on other sites

This area is creating the I and J problems:

pq$              #Setup post based on switch settings
      if arctype$ = one | arctype$ = four,
        [
        result = newfs(two, iout)
        result = newfs(two, jout)
        ]
      else,
        [
        result = newfs(three, iout)
        result = newfs(three, jout)
        ]

You can fix it like this:

 pq$              #Setup post based on switch settings
      if arctype$ = one | arctype$ = four,
        [
        #  result = newfs(two, iout)
        #  result = newfs(two, jout)
        ]
      else,
        [
        #  result = newfs(three, iout)
        #  result = newfs(three, jout)
        ]

:cheers:

  • Like 1
Link to comment
Share on other sites

This area is creating the I and J problems:

pq$              #Setup post based on switch settings
      if arctype$ = one | arctype$ = four,
        [
        result = newfs(two, iout)
        result = newfs(two, jout)
        ]
      else,
        [
        result = newfs(three, iout)
        result = newfs(three, jout)
        ]

You can fix it like this:

 pq$              #Setup post based on switch settings
      if arctype$ = one | arctype$ = four,
        [
        #  result = newfs(two, iout)
        #  result = newfs(two, jout)
        ]
      else,
        [
        #  result = newfs(three, iout)
        #  result = newfs(three, jout)
        ]

:cheers:

Thank you so much!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...