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:

Wire 8.1.1 question


flippinjig
 Share

Recommended Posts

Del, I saw your post a couple weeks ago. Mine looks so different.

 

Your Post:

_________________________________________________

ptlch_nstrt #Tool change, do not use start

position

pcom_moveb

if op_id$ <> prv_op_id$, [

xr$ = xabs, yr$ = yabs

n$, sg20code, xr$, yr$, e$

]

 

if contour_typ$ = 1,

pcantxt1, pbld, n$, pwcs, sg20code, sgabsinc, pxout, pyout, ptaperwb,

strcantext, e$

 

if contour_typ$ = 2,

pcantxt1, pbld, n$, pwcs, sg20code, sgabsinc, pxout, pyout, ptaperwt,

strcantext, e$

 

if contour_typ$ = 3,

pcantxt1, pbld, n$, pwcs, sg20code, sgabsinc, pxout, pyout, plandup,

strcantext, e$

if contour_typ$ = 4,

pcantxt1, pbld, n$, pwcs, sg20code, sgabsinc, pxout, pyout, planddown,

strcantext, e$

if contour_typ$ = 0,

pcantxt1, pbld, n$, pwcs, sg20code, sgabsinc, pxout, pyout, pzout,

strcantext, e$

if G92_flag = 1, pbld, n$, "G92", e$ #added G92 after move to new cut

postlchng = zero

G92_flag = 0

pcantxt

pbld, n$, stank, e$

pcom_movea

_________________________________________________

 

 

My post:

_________________________________________________

 

ptlch_nstrt #Tool change, do not use start position

pcom_moveb

pcantxt1, pbld, n, pwcs, `sg20code, sgabsinc, pxout, pyout, pzout,

pstrtij, strcantext, e

postlchng = zero

____________________________________________

I added this from yours:

 

if G92_flag = 1, pbld, n$, "G92", e$ #added G92 after move to new cut

postlchng = zero

G92_flag = 0

_____________________________________________

pcantxt

pbld, n, stank, e

pcom_movea

_________________________________________________

 

 

I got error message:

 

'postlchng' is the result of global formual and cannot be used as the result of a postline formula.

 

Any ideas?

Link to comment
Share on other sites

mark, i don't think you need the $ on any of the lines.thats the way i understood it from john paris.they are added when updating to version x.

try that.to be honest posts are a little above my

head.hth

Link to comment
Share on other sites

mark, i think this will do it for you.

 

ptlch_nstrt #Tool change, do not use start position

pcom_moveb

if op_id <> prv_op_id, [

xr = xabs, yr = yabs

n, sg20code, xr, yr, e

]

if contour_typ = 1,

pcantxt1, pbld, n, pwcs, sg20code, sgabsinc, pxout, pyout, ptaperwb,

strcantext, e

if contour_typ = 2,

pcantxt1, pbld, n, pwcs, sg20code, sgabsinc, pxout, pyout, ptaperwt,

strcantext, e

if contour_typ = 3,

pcantxt1, pbld, n, pwcs, sg20code, sgabsinc, pxout, pyout, plandup,

strcantext, e

if contour_typ = 4,

pcantxt1, pbld, n, pwcs, sg20code, sgabsinc, pxout, pyout, planddown,

strcantext, e

if contour_typ = 0,

pcantxt1, pbld, n, pwcs, sg20code, sgabsinc, pxout, pyout, pzout,

strcantext, e

if G92_flag =1, pbld,n,"G92", e

postlchng = zero

G92_flag =0

pcantxt

pbld, n, stank, e

pcom_movea

Link to comment
Share on other sites

Thanks Del,

 

I pasted your code over mine but got several errors.

_________________________________________________

Duplicate String Name: strcantext, at post lines 545, 548, 551, and 554.

 

 

Variable not defined: if, at post line 536 Program execution halted due to error(s) in .pst

_________________________________________________

 

 

What is "strcantext" and what are the contour types?

 

Thanks, Mark

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