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:

Posting HAAS WCS G110 as default


Guest
 Share

Recommended Posts

I am trying to set up a post for a HAAS, it uses G110 and up. I am trying to make it so the default (-1) begins at 110.

 

I am scratching my head however, if I change the offset to 0, starting there I get G110 on up but when I use the default setting I keep getting G116, I cannot for the life of me figure out where it is picking up the number.

 

Where does the post draw the variable from when the workofs$ is set to -1?

Link to comment
Share on other sites

It's pretty stock with the one obvious change

 

code:

pwcs            #G54+ coordinate setting at toolchange

if wcstype = two | wcstype > three,

[

sav_frc_wcs = force_wcs

if sub_level$, force_wcs = zero

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

[

if workofs$ < 6,

[

g_wcs = workofs$ + 110

]

else,

[

g_wcs = workofs$ + 110

]

if workofs$ >= 0 & workofs$ <= 25, *g_wcs

else,

[

if mprint(swcserror, 2) = 2, exitpost$

]

]

force_wcs = sav_frc_wcs

!workofs$

]

Link to comment
Share on other sites

code:

G00 G90 G49 H13 S4500 M03

M08

workofs$ 6.

G116 G00 G43 X-1.3856 Y.666 Z2.

I can't isolate using if workofs$ = 6 or anything because when a hand typed 6 might get used, it will have the same reaction as the default setting.

 

I figured it out.

 

I use this file for different post testing and I had the offest set in the WCS manager to 6, that's why it was coming out the way it was.

 

I changed it to -1 and all was as I expected to get.

 

[ 08-06-2006, 06:20 PM: Message edited by: John Paris @ Kevlin ]

Link to comment
Share on other sites

Hey John Try this.

 

code:

    pwcs            #110+ coordinate setting at toolchange

if wcstype = two | wcstype > three,

[

sav_frc_wcs = force_wcs

if sub_level$, force_wcs = zero

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

[

if workofs$ < 25,

[

g_wcs = workofs$ + 110

]

if workofs$ >= 0 & workofs$ <= 25, *g_wcs

else,

[

if mprint(swcserror, 2) = 2, exitpost$

]

]

force_wcs = sav_frc_wcs

!workofs$

]

 

 


Not sure what it will do but I would do away with from the (else) there. Glad you got it but I would look at having my post this way if you are going to use G110 and greater.

Link to comment
Share on other sites

Here is what I did in a MPMASTER V9 post for the HAAS where I was using the G154 PXX so from what I remember G110 is G154 P1 and when you get to G126 it becomes G154 P26 but could be wrong has been a couple years since working on the HAAS with these capabilites.

 

code:

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),

[

p_wcs = workofs

"G154.1", *p_wcs

]

force_wcs = sav_frc_wcs

!workofs

]

 


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