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:

post help: retract z to g28 at table index


terry5357
 Share

Recommended Posts

ppos_cax_lin #Position the rotary axis before move - rapid

if index, pindex

else,

[

if fmtrnd(prv_cabs) <> fmtrnd(cabs) & rot_on_x,

[

sav_gcode = gcode$

gcode$ = zero

n$ "G0 G91 G28 Z0.0",

n$ "M28", e$

pbld, n$, *sgabsinc, *sgcode, *g_wcs, e$

n$ *sgabsinc, *sgcode, pfxout, pfyout, pfcout, *speed, p_spindle, e$

n$ pwcs, "G43", p_tlngno, pfzout, scoolant, e$

pcan1, pbld, n$, sgfeed, sgplane, `sgcode, sgabsinc, pccdia,

pxout, pyout, pzout, pcout, `feed, strcantext, scoolant, e$

 

!cia

ps_cinc_calc

gcode$ = sav_gcode

n$ "M27", e$

 

 

This is what I have, what I want to do is at M28 (table unlock) have z retract to machine ref, table move and lock, z return to tool initial position, then to feed plane, then pick up tool feed IPM and continue own.

 

 

 

this is what I get using what I have

 

G1 X22.3672 Y9.2322

X22.453 Y7.1512

X22.4571 Y7.0513

G0 Z11.

G0 G91 G28 Z0.0 M28

G90 G0 G54

G90 G0 X22.3751 Y-7.0516 A-270. S3500 M3

G43 H11 Z11.

M27

Z8.1

G1 Z6.4583 F15. (this is tool assigned feed)

 

second time found in program

 

G0 Z4.9851

Z12.

G0 G91 G28 Z0.0 M28

G90 G0 G54

G90 G0 X21.1297 Y-6.4125 A45. S5000 M3

G43 H5 Z12.

G17

M27

Z7.4415

G1 Z6.9415 (don't know why feed was not out put here)

 

also can anyone tell me what this ( ' )does when used in 'sgplane

 

and if I use "gcode=save g_code does that save all G codes in this paticular toolpath.

 

I don't know jack **** about posts and what I have learned has just been through (change post and see what the changes did to the program)

 

Thanks

Terry

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