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:

Mill_Haas_VF


Midwest
 Share

Recommended Posts

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

# General Output Settings

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

error_msg$ : 1

err_file$ : 1

sub_level$ : 1 #Enable automatic subprogram support

breakarcs$ : 1 #Break arcs, 0 = no, 1 = quadrants, 2 = 180deg. max arcs

arcoutput$ : 0 #0 = IJK, 1 = R no sign, 2 = R signed neg. over 180

arctype$ : 2 #Arc center 1=abs, 2=St-Ctr, 3=Ctr-St, 4=unsigned inc.

do_full_arc$ : 0 #Allow full circle output? 0=no, 1=yes

helix_arc$ : 2 #Support helix arc output, 0=no, 1=all planes, 2=XY plane only

arccheck$ : 1 #Check for small arcs, convert to linear

atol$ : 0.01 #Angularity tolerance for arccheck = 2

ltol$ : 0.002 #Length tolerance for arccheck = 1

vtol$ : 0.0001#System tolerance

maxfeedpm : 500 #Limit for feed in inch/min

ltol_m : 0.05 #Length tolerance for arccheck = 1, metric

vtol_m : 0.0025#System tolerance, metric

maxfeedpm_m : 10000 #Limit for feed in mm/min

force_wcs : no$ #Force WCS output at every toolchange?

spaces$ : 0 #Number of spaces to add between fields

seqmax$ : 9999 #Max. sequence number

use_gear : 0 #Output gear selection code, 0=no, 1=no

max_speed : 10000 #Maximum spindle speed

min_speed : 50 #Minimum spindle speed

nobrk$ : no$ #Omit breakup of x, y & z rapid moves

progname$ : 1 #Use uppercase for program name (sprogname)

plane$ : 99

 

 

______________________________________________

 

 

force_wcs : no$ #Force WCS output at every toolchange?

 

 

_________________________________________________

 

 

Still the same I had tried this B4 and no luck headscratch.gif

Link to comment
Share on other sites

pwcs_fanuc #G54+ coordinate setting at toolchange

if wcs_option > one,

[

if workofs$ <> prv_workofs$ | (force_wcs & toolchng),

[

if workofs$ > 53, pwcs_fanuc2

else,

[

if workofs$ < 7,

[

g_wcs = workofs$ + 53 #10/27 changed from 54 to allow for 1 to equal 54

if workofs$ < 1, g_wcs = 54 #10/27, added to prevent redundant G54 when offset is left at default

*g_wcs

]

else,

[

p_wcs = workofs$ - 6

"G54.1", *p_wcs

]

]

]

force_wcs = sav_frc_wcs

!workofs$

]

 

 

Found this section in the post headscratch.gif anything to change here????

Link to comment
Share on other sites

I have no idea if this will help, but

 

Check farther down in the post for force WCS. If your using the mastercamX editor, use the FIND icon and search for forceWCS and see if there is anything there you can change, it looks to be in the peof$ section.

 

 

peof$ #End of file for non-zero tool

pretract

if lock_codes = 1 & rot_on_x, pbld, n$, *sunlock, "(UNLOCK)", e$

rotretflg = 1

pbld, n$, "G28", "Y0.", protretinc, e$

rotretflg = 0

if lock_codes = 1 & rot_on_x, pbld, n$, *slock, "(LOCK)", e$

comment$

#Remove pound character to output first tool with staged tools

#if stagetool = one, pbld, n$, *first_tool, e$

n$, *sg90, e$

n$, "M30", e$

mergesub$

clearsub$

mergeaux$

clearaux$

"%", e$

 

#If posting to Desktop, or other long dir path names, this logic will crash Mastercam

#snci = spathnci + snamenci + sextnci

#sparams1 = ssq + sdq + snci + sdq + sspace + sdq + spathpst + spost1 + sdq + sspace + sdq + spathnc + sdq + ssq

 

#ppost #Called after posting is complete and all files are closed

#result = fexist(sdll)

#if result = 1, result = dll(sdll,sparams1)

 

pwcs #G54+ coordinate setting at toolchange

if wcstype = two | wcstype > three,

[

sav_frc_wcs = force_wcs

if sub_level$, force_wcs = zero

if sav_mi9 = 1, workofs$ = sav_workofs

if workofs$ < 0, workofs$ = 0

if workofs$ <> prv_workofs$ | (force_wcs & toolchng),

[

if workofs$ < 6,

[

g_wcs = workofs$ + 54

*g_wcs

]

else,

[

p_wcs = workofs$ - five

"G54.1", *p_wcs

]

]

force_wcs = sav_frc_wcs

!workofs$

]

 

 

check the section towards the bottom of this

Link to comment
Share on other sites

I don't know why you would hardcode something like that.

 

That would seem to me like you are just asking for something to go bad.

 

It can and should be coded out if that is what you need but hardcoding a workofset in my mind is a bad move.

Link to comment
Share on other sites

Midwest,

 

What about using the Misc Values? The first one should have a "2" in the Misc Integer field. Then just use the Work Offset value of "0" for all the operations. What version are you using? In Mcam X, select all operations and right-click to select the "Edit Selected Ops./Edit Common Parameters". The following dialog shown will allow you to change the Misc Values and Work Offset value in the Planes button for all the ops selected. HTH cheers.gif25zrwbq.jpg

Link to comment
Share on other sites

Dave, I'm only using 1 tool plane at a time.

 

I emailed and found who put the post on the FTP.....they said "The only easy edits for this post are listed at the top of the file as options. The feature you are looking for can be changed, but it is not a simple switch."

 

Maybe I'll try working some with the "mpmaster post"

 

If I have to for awhile maybe I'll use the editor to alter all "G54's" to "nothing". rolleyes.gif Don't like this option very well. mad.gif

 

My old V9 post didn't translate very well to X. Parts of the nc code are not in the proper places in a sample drilling program I have tried.

 

 

After I get a post to work.........then I'll start on one for a Hurco. bonk.gifbonk.gif

 

 

Oh well back at it tomorrow biggrin.gif

 

 

cheers.gif

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