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:

Quick post help needed - G94


Bob W.
 Share

Recommended Posts

I have a part for my Makino A61 HMC I wish to peel like an onion using the 4the axis (B).  Tool drops in Y while a cylinder or raw stock spins on the 4th axis.  The code is posting as this:

G94 G1 Z10.25675 B233.2 F9.77

and I need it to post like this

G94
G1 Z10.25675 B233.2 F9.77

Where do I look in my post to make this adjustment?  The post is:

 

[POST_VERSION] #DO NOT MOVE OR ALTER THIS LINE# V23.00 P0 E1 W23.00 T1593638671 M23.00 I0 O0
# Post Name           : Makino A51.pst
# Product             : Mill
# Machine Name        : Generic
# Control Name        : Fanuc
# Description         : Generic 4 Axis Mill Post
# 4-axis/Axis subs.   : Yes
# 5-axis              : No
# Subprograms         : Yes
# Executable          : MP 14.0

 

Thanks,

Bob

Link to comment
Share on other sites

So I will modify it from this:

 

      pcan1, pbld, n$, sgfeed, sgplane, `sgcode, sgabsinc, pccdia,
          pxout, pyout, pzout, pcout, feed, strcantext, scoolant, e$

 

to this:

 

      pcan1, pbld, n$, sgfeed, e$
      pcan1, pbld, n$, sgplane, `sgcode, sgabsinc, pccdia,
         pxout, pyout, pzout, pcout, feed, strcantext, scoolant, e$

 

Not sure if the pcan1 appearing twice would be an issue...

Link to comment
Share on other sites

No, Bob, having the extra 'pcan1' will not necessarily hurt, but it also won't function without including 'strcantext,' as an output parameter on the line. In this case, don't add it to the line above. Simply start with 'pbld'.

'pcan1' is used to determine if "Canned Text With" is being used. The function is used to "set the string values for 'strcantext'. (This way, if you are turning on additional M-Codes, they are output at the end of the string, behind all the other position moves.)

Either this:

      pcan1, pbld, n$, sgfeed, strcantext, e$
      pbld, n$, sgplane, `sgcode, sgabsinc, pccdia,
         pxout, pyout, pzout, pcout, feed, scoolant, e$

Or this:

      pbld, n$, sgfeed, e$
      pcan1, pbld, n$, sgplane, `sgcode, sgabsinc, pccdia,
         pxout, pyout, pzout, pcout, feed, strcantext, scoolant, e$

 

The 'pbld' call, is the "Block Delete" Post Block.

Canned Text is used in the Operation to "set Block Delete" to on/off. The Block Delete function "remains active", until we turn it "Back off" with a new Canned Text Statement.

Typically, I will "enable Block Delete" > Before. Then I will "Cancel Block Delete" > After.

In terms of "Canned Text", Before/With/After, always refers to the "Tool Change". This is the default way that Canned Text is setup to work. (You can output strings, before, with, or after the tool change.)

  • Thanks 1
  • Like 1
Link to comment
Share on other sites

Also remember:

  1. If you happen to "store a copy of the Post", in the same folder as the Mastercam Part File > Mastercam will ignore the "post set in the File Properties File Path", and use the "Local Copy" of the Post.
  2. It can be hard to know "what copy of the Post is being used". You can always start the Posting Process (G1 Button) > then press CTRL + ALT + SHIFT (hold down these 3 keys), then press the letter "P" on the keyboard. Control + Alt + Shift + P, will allow you to select "any Post". (Just press "OK" to the warning.)

 

  • Thanks 1
  • Like 1
Link to comment
Share on other sites
57 minutes ago, So not a Guru said:

Been there🤣

This is why I always suggest to 1st save a backup copy of the post, before editing.

A few years ago, I created a nightmare for myself that took me a couple of days to fix.

When I create my backup files I add what is to be done in the name...

ENSHU HORIZONTAL -- ADD RIGHT ANGLE HEAD CUSTOM PARAMETERS.PST

ENSHU HORIZONTAL -- FIX INSPECTION PROBING.PST

ENSHU HORIZONTAL -- ADD HX300iG MACHINE.PST

  • Like 1
Link to comment
Share on other sites
44 minutes ago, Tim Johnson said:

When I create my backup files I add what is to be done in the name...

ENSHU HORIZONTAL -- ADD RIGHT ANGLE HEAD CUSTOM PARAMETERS.PST

 ENSHU HORIZONTAL -- FIX INSPECTION PROBING.PST

ENSHU HORIZONTAL -- ADD HX300iG MACHINE.PST

+1000 and then you have ready made text to update your header....

Link to comment
Share on other sites
19 minutes ago, nickbe10 said:

+1000 and then you have ready made text to update your header....

My active post is always ENSHU HORIZONTAL.PST. I add what I'm going to do because if I find an issue six months later it will be easier to find the change and know what is was before the change.

#     *********** removed stool_detect_test from HX300iG 2019-05-17 ************
#        if (t$ = 4 & (cantext$ = 52 | mi2count = 1))| t$ <> 4,
        if (t$ = 4 & (cantext$ = 52 | mi2count = 1))| t$ <> 4 | t$ <> 4
         & machine <> 300,
#     **************************************************************************

 

#     ******** replaced for systems 41 thru 44, 3112 thru 3712 2015-11-15 ******
      if  (sav_mi2 = 41 | sav_mi2 = 42 | sav_mi2 = 43 | sav_mi2 = 44
       | sav_mi2 = 3112 | sav_mi2 = 3612 | sav_mi2 = 3712| sav_mi2 = 311290
       | sav_mi2 = 361290 | sav_mi2 = 371290) & cantext$ = 54 & cantext_54 = 0,
#     ****altered prv_xabs & prv_yabs to force X & Y locations******2017-11-27**
        [
        n$,"#900=#181+", no_spc$, *workofs$, e$
        prv_xabs = c9k
        prv_yabs = c9k
        ]
      else, if cantext$ = 54 & cantext_54 = 0,
        [
        n$,"#900=#539+", no_spc$, *workofs$, e$
        prv_xabs = c9k
        prv_yabs = c9k
        ]
#     **************************************************************************
#     **************************************************************************

 

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