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:

Number of decimal places


maestro
 Share

Recommended Posts

Hi, I don't have experience with the Hurco post, but below is how I would change the mpfan.pst from 4 to 3 dec places. The 'Format statements' list show the numbers and what they stand for. The lines changed are noted by: <<<<<<.

Example - 11 was 2 and 14 was 3.

BE SURE TO BACK UP YOUR POST FIRST!!

Hope this helps- BerTau

 

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

# ------------------------------------------------

# 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__ 1 0 1 0n #Integer, forced output

 

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

_______BEFORE_________

 

# -------------------------------------------------# 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_ 4 _ indx_out__ #Index position

fmt_ R_ 14_ rt_cinc__ #C axis position, G68

fmt_ I_ 3 _ i __ #Arc center description in X

fmt_ J_ 3 _ j __ #Arc center description in Y

fmt_ K_ 3 _ k __ #Arc center description in Z

fmt_ R_ 2 _ arcrad __ #Arc Radius

fmt_ F_ 15_ feed __ #Feedrate

fmt_ P_ 11_ dwell __ #Dwell

fmt_ M_ 5 _ cantext __ #Canned text

 

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

_________AFTER____________________

 

# -------------------------------------------------# 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_ 11_ xabs _ #X position output <<<<<<

fmt_ Y_ 11_ yabs _ #Y position output <<<<<<

fmt_ Z_ 11_ zabs _ #Z position output <<<<<<

fmt_X _14 _ xinc _ #X position output <<<<<<

fmt_Y _14_ yinc _ #Y position output <<<<<<

fmt_Z _14_ zinc _ #Z position output <<<<<<

fmt_ A_ 11_ cabs _ #C axis position

fmt_ A_ 14_ cinc _ #C axis position

fmt_ A_ 4 _ indx_out _ #Index position

fmt_ R_ 14_ rt_cinc _ #C axis position, G68

fmt_ I_ 14_ i _ #Arc center description in X <<<

fmt_ J_ 14_ j _ #Arc center description in Y <<<

fmt_ K_ 14_ k _ #Arc center description in Z <<<

fmt_ R_ 11_ arcrad _ #Arc Radius <<<<<<

fmt_ F_ 15_ feed _ #Feedrate

fmt_ P_ 11_ dwell _ #Dwell

fmt_ M_ 5 _ cantext _ #Canned text

# ------------------------------------------------

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

 

I had to add a bunch of 'underscores' to keep the lines from running together. Hope it's clear.

 

[ 04-27-2002, 08:11 PM: Message edited by: BerTau ]

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...