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 OFFSET NOT POSTING


steveo25
 Share

Recommended Posts

I was putting a 0 or 54 in the coordinate option in each toolpath. I just tried to put it in the wcs view manager and I didnt get anything either. Im still learning all this stuff but it used to work by putting 54 in the coordinate option but I got the posts mixed up and now its not spitting it out.

Link to comment
Share on other sites

The code looks like this:

N110 G50 S700 M42

N120 T0

N130 G55 X0.0 Z0.0

N140 G18 G99

N150 G97 T1212 S1450 M03

N160 G0 X-1.3173 Z.0837 <----

N170 G96 S500

N180 G1 Z-.0163 F.01

N190 Z-1.8383

N200 G0 X-1.4587 Z-1.7676

N210 G97 S39

N220 T0

N230 G55 G00 X0.0 Z0.0

N240 M01

And I want it to look like this:

N110 G50 S700 M42

N120 T0

N130 G55 X0.0 Z0.0

N140 G18 G99

N150 G97 T1212 S1450 M03

N160 G54 G0 X-1.3173 Z.0837 <---- or 56 depending

N170 G96 S500

N180 G1 Z-.0163 F.01

N190 Z-1.8383

N200 G0 X-1.4587 Z-1.7676

N210 G97 S39

N220 T0

N230 G55 G00 X0.0 Z0.0

N240 M01

Link to comment
Share on other sites

Did this work for you before you mixed the posts up? Is your post set up to output g55 for every path? I understand what you want to do with both offsets being output. Check control deff so that work offsets is set for work system. Could be a post issue also. You might have to force your coordinates to be output. Check the control deff first & if that's ok maybe a post guru in here might help you out. Search for pwcs in here & lots of topics come up that might help you.

Link to comment
Share on other sites

You will beat yourself bloody without someone taking a look at the post and the MCX file. It could be anything, especially if you have edited the post in anyway. I strongly suggest you contact your reseller for some help so it can be debugged.

 

But if you insist on trouble shooting it yourself and on the forum you should at least post the psof postblock so we can see the code.

Link to comment
Share on other sites

This is the code in my post:

 

pwcs #G54+ coordinate setting at toolchange

if home_type >= one,

[

sav_frc_wcs = force_wcs

if sub_level$, force_wcs = zero

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

if sub_level$, result = mprint(swrkserror)

g_wcs = workofs$

*g_wcs

 

force_wcs = sav_frc_wcs

!workofs$

Link to comment
Share on other sites

Steve,

 

The home_type variable is probably controlled from the Miscellaneous integers - most likely number 1. So in your Toolpaths make sure you set the Misc int #1 correctly.

 

Also, the PWCS postblock controls the output of G54, G55 ,etc but you still need to make sure it is called in the start of file (psof) and toolchange (ptlchg) postblocks. Bascially somewhere in the those postblocks a call to pwcs must be made. If it is then refer back to the first paragraph.

 

Most posts are written to use 0, 1, 2, etc for controlling the work offsets 0 =first, 1=second, and so on.

 

again, Is strongly suggest contacting your reseller unless you have time to waste.

 

If you want to keep posting sections of your post switch to the full reply form and use the Code option to and put your post code in between the ubb code brackets as it makes it easier to read - see below.

 

code:

psof$            #Start of file for non-zero tool number             

if ra_error = 1, [if mprint(sra_error, 2) = 2, exitpost$]

toolchng = one

if ntools$ = one,

[

#skip single tool outputs, stagetool must be on

stagetool = m_one

!next_tool$

]

pbld, n$, *smetric, e$

pbld, n$, *sgcode, *sgplane, scc0, sg49, sg80, *sgabsinc, e$

sav_absinc = absinc$

if mi1$ <= one, #Work coordinate system

[

absinc$ = one

pfbld, n$, sgabsinc, *sg28ref, "Z0.", e$

pfbld, n$, *sg28ref, "X0.", "Y0.", e$

pfbld, n$, sg92, *xh$, *yh$, *zh$, e$

absinc$ = sav_absinc

]

pcom_moveb

pcheckaxis

c_mmlt$ #Multiple tool subprogram call

ptoolcomment

comment$

pcan

pbld, n$, *t$, sm06, e$

if mi1$ > one, absinc$ = zero

pcan1, pbld, n$, *sgcode, *sgabsinc, pwcs, pfxout, pfyout,

[if nextdc$ <> 7, *speed, *spindle], pgear, strcantext, e$

pbld, n$, sg43, *tlngno$, pfzout, scoolant, pstagetool, e$

absinc$ = sav_absinc

pcom_movea

toolchng = zero

c_msng$ #Single tool subprogram call

Link to comment
Share on other sites

I do have alot of time to waste, im just trying to learn as much as I can on my own about the posts. The pwcs is called out at both of the other places you were stating. I sent my post off to cimtech so they can look it over.

I guess I was running a v10 post so it needed to be updated.

Thank you for your reply I appreciate it.

Link to comment
Share on other sites

quote:

I do have alot of time to waste, im just trying to learn as much as I can on my own about the posts.

Steve, that's fantastic for sure. See if Cimtech offers up a generic post class as it will be helpful. Learning the basics of the language (rules, syntax, Etc) along with the default post layout and the reasons behind it goes a long way to being comfortable with editing posts. Just learning what Mastercam provides for data in the NCI and doesn't provide is enough to keep you going for years.

 

Also after doing this for 14 years now there are very few post issues that can be fixed without viewing the code itself along with the part file as I'm sure you gathered from my comments. I can take some stabs at the issues for sure but with the part and post life is much easier.

 

Not everything is available through the standard mastercam toolpaths so the post uses tools to allow the user to pass along more information and many times this is custom type programming in the post - yes we even have to do this on our default posts. As an example with your workoffset questions, by using a Misc Integer the post writer is trying to offer the user some options for configuring their output that are NOT built into mastercam and if you are NOT setting things up correctly in MAstercam then you are chasing output issues so understanding what was intended is important and usually impossible without seeing the code.

 

Hope this helps and good luck in your Journey of post writing.

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