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:

Modifying a Haas 4 axis post?


CJH
 Share

Recommended Posts

Hey guys,

 

I have a question that I need help with. I want ot know if there is a way to modify a Haas 4 axis post to output the A postion to only 3 decimal places? Up until now we have manily been doing indexing with our rotary. So we would get the output for the specific angle rotation needed without the trailing decilmal places. Now I have a project where I have to engrave on a cylinder, and the output is going to 4 places and our mill cointrol only reads to 3 places on the A axis. any help you can give would be appreciated.

 

Chris

Link to comment
Share on other sites

You can use the debugger to find the variable that outputs the a axis positioin, then change the format statement to decimal absolute, 3 place.

 

 

# 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)
fs2 26 0.0 0.0	 #decimal														 g&l speed

# This format statement is used for sequence number output
# Number of places output is determined by value for "Increment Sequence Number" in CD
# Max depth to the right of the decimal point is set in the fs statement below
fs2 24 0^7 0^7	 #Decimal, 7 place, omit decimal if integer value

# --------------------------------------------------------------------------
# Toolchange / NC output Variable Formats
# --------------------------------------------------------------------------
fmt	 4 partflip #
fmt T 7 toolno	 #Tool number
fmt T 5 gtoolno	 #Tool number

In the snippet above, fs2 11 (format statement 11) is what you want.

The last 3 lines above show some variables being formatted, using 4, 7, and 5....

 

My guess for the output variable you are looking for is "cabs" and "cinc" (absolute output, and incremental output)

I have attached simple instructions to enable and use the debugger.

debugger instructions.doc

  • Like 1
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...