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:

Machine stop (moo)


Salt4cad
 Share

Recommended Posts

Salt,

When you use canned texted in the operations param., you set it 'Before' or 'After'. This is before or after the toolchange. See below.

code:

...

...

G91 G28 Z0.

G28 X0. Y0. A0.

M01

( 1/2 TOOL - 1 DIA. OFF. - 1 LEN. - 1 DIA. - .5 )

M00 <==== Canned text added 'Before'

T1 M6

G0 G90 G54 X1.006 Y3.2299 A0. S1833 M3

G43 H1 Z.1

M00 <==== Canned text added 'After'

G99 G83 Z-1.1502 R.1 Q.25 F8.8

X1.7759 Y3.46

...

...

The post determines where this comes out. From the mpfan:

code:

ptlchg          #Tool change                                        

pcuttype

toolchng = one

if mi1 = one, #Work coordinate system

[

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

pfbld, n, "G92", *xh, *yh, *zh, e

]

pbld, n, "M01", e

pcom_moveb

c_mmlt #Multiple tool subprogram call

ptoolcomment

comment

pcan <===== place where the 'BEFORE' is handled

result = newfs(15, feed) #Reset the output format for 'feed'

pbld, n, *t, "M6", e

pindex

sav_absinc = absinc

if mi1 > one, absinc = zero

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

pfcout, *speed, *spindle, pgear, strcantext, e <====== pcan1 and strcantext handle the 'WITH'

pbld, n, "G43", *tlngno, pfzout, scoolant, next_tool, e

absinc = sav_absinc

pcom_movea <==== this section calls pan2 which handles 'AFTER'

toolchng = zero

c_msng #Single tool subprogram call

So by playing with pcan, pcan1, pcan2 you can control where things come out.

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