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:

G54 Output Only


Wanny
 Share

Recommended Posts

Hi all

 

My boss has finally taken the plunge and we now have X4mu1 running on one of our computers (the other 1 stiil running X3mu1). After setting it all up I updated the posts and all but 1 are ok with no error messsages after a bit of tweeking here and there.

 

The 1 I'm having trouble with is a modified Generic Fanuc 4X mill. I want it to post out G54 at the beginning only and when I change to mill say the front to rotate the part which it does but not add a new wcs(G55). As I learnt from this forum if I put a 0 in my wcs manager it does what I require, but it would be better if it was fixed by a setting in the post.

 

In X3I had the following in the post which fixed it but in X4 creates quite a few log errors;

 

g_wcs = workof$ + 54 =====>g_wcs = 0 + 54

 

So I guess there must be something I could do in this section of the post to fix this.

 

pwcs #G54+ coordinate setting at toolchange

if mi1$ > one,

[

sav_frc_wcs = force_wcs

if sub_level$ > 0, force_wcs = zero

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$

]

 

I've searched the forum and there are a quite a few threads on this with most answers pointing towards mi9 which is not present in our post. Is ths something I could add to fix or is there a easier solution

 

Thanks for your help in advance

Link to comment
Share on other sites

Change this:

code:

pwcs            #G54+ coordinate setting at toolchange

if mi1$ > one,

[

sav_frc_wcs = force_wcs

if sub_level$ > 0, force_wcs = zero

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$

]


to This:

 

code:

pwcs            #G54+ coordinate setting at toolchange

sav_frc_wcs = force_wcs

workofs$ = 54

if sub_level$ > 0, force_wcs = zero

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

[

g_wcs = workofs$

*g_wcs

]

force_wcs = sav_frc_wcs

!workofs$


That should work for you.

 

HTH

Link to comment
Share on other sites

Thanks all

 

I did want G54 only as the machine that the post is for won't accept any other wcs as it stands. You have to pay extra to get all extra bits added on, bit of a rip off really.

 

So Ron's mod I think will do the trick, I will test it out today.

 

Thanks again

Link to comment
Share on other sites

Sorry it's me again!!

 

I haven't had alot of time today to mess with the settings as end of month means get everything out the door. but I did the change that Ron suggested and below is a sample program.

 

It didn't output G55,56 etc as requested but it also didn't output G54 on the first line of code. And when it rotated intead of a G0 I'm getting G1,G2 - G7 where the G55, 56 would of been.

 

Hope that makes sense

 

Any help would be appreciated

 

 

G0 (G0) X-103.635 Y4.932 A0. (G54 wanted here)

G43 H2 Z75.

Z52.

G1 Z50. F750.

X37.86 F3500.

Y-4.932

X-103.635

Z52. F2000.

G0 Z75.

G1 X-103.635 Y4.932 Z75. A45. (should be G0)

Z52.

G1 Z50. F750.

X37.86 F3500.

Y-4.932

X-103.635

Z52. F2000.

G0 Z75.

G2 X-103.635 Y4.932 Z75. A90. *****G0

Z52.

G1 Z50. F750.

X37.86 F3500.

Y-4.932

X-103.635

Z52. F2000.

G0 Z75.

G3 X-103.635 Y4.932 Z75. A135. *****G0

Z52.

G1 Z50. F750.

X37.86 F3500.

Y-4.932

X-103.635

Z52. F2000.

G0 Z75.

G4 X-103.635 Y4.932 Z75. A180. *****G0

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