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:

About M64 M65


opcode
 Share

Recommended Posts

Hi ,All,  I want to output M65 M64 for NC program. EX
 
O123
( T2 |    16. BALL ENDMILL | H2 )
G21
G0 G17 G40 G49 G80 G90
T2 M6
G0 G90 X2. Y0. A-90.014 S9000 M3
G43 H2 Z1.5
G1 X2.083 A-190.017 F2000.
M65
G0 X2.12 A-230.018
M64
G1 X2.203 A-330.017
M65
G0 X2.23 A-10.016
M64
G1 X2.313 A-110.014
M65
G0 X2.35 A-150.015
M64
G1 X2.433 A-250.018
M65
G0 X2.47 A69.982
M64
G1 X2.553 A-30.015
M65
G0 X2.58 A-70.014
M64
G1 X2.663 A-170.016
M65
G0 X2.7 A-210.017
M64
G1 X2.783 A-310.018
M65
G0 X2.82 A9.983
M64
G1 X2.903 A-90.014
M65
G0 X2.93 A-130.015
M64
G1 X3.013 A-230.018
M5
G91 G0 G28 Z0.
G28 X0. Y0. A0.
M30
%
 
 I modify Generic Fanuc 4X Mill.pst ,but it is  not right output.

ptlchg0$ #Call from NCI null tool change (tool number repeats)
"M65",e$
pcuttype
toolchng0 = one
pcom_moveb
pcheckaxis
c_mmlt$ #Multiple tool subprogram call
comment$
pcan
result = newfs(15, feed) #Reset the output format for 'feed'
pbld, n$, sgplane, e$
pspindchng
pbld, n$, pscool, e$
if use_rot_lock & (cuttype <> zero | (index = zero & prv_cabs <> fmtrnd(cabs))), prot_unlock
if mi1$ > one & workofs$ <> prv_workofs$,
[
sav_absinc = absinc$
absinc$ = zero
pbld, n$, sgabsinc, pwcs, pfxout, pfyout, pfzout, pfcout, e$
pe_inc_calc
ps_inc_calc
absinc$ = sav_absinc
]
if cuttype = zero, ppos_cax_lin
if gcode$ = one, plinout
else, prapidout
"M64",e$
if use_rot_lock & cuttype = zero, prot_lock
pcom_movea
toolchng0 = zero
c_msng$ #Single tool subprogram call
!xnci$, !ynci$, !znci$

G0 G17 G40 G49 G80 G90
T2 M6
G0 G90 X2. Y0. A-90.014 S9000 M3
G43 H2 Z1.5
G1 X2.083 A-190.017 F2000.
M65
G0 X2.12 A-230.018
M64
G1 X2.203 A-330.017
M65
G0 X2.23 A-10.016
M64
G1 X2.313 A-110.014
G0 X2.35 A-150.015
M65
M64

G1 X2.433 A-250.018
M65
G0 X2.47 A69.982
M64
G1 X2.553 A-30.015
M65
G0 X2.58 A-70.014
M64
G1 X2.663 A-170.016
G0 X2.7 A-210.017
M65
M64

G1 X2.783 A-310.018
M65
G0 X2.82 A9.983
M64
G1 X2.903 A-90.014
G0 X2.93 A-130.015
M65
M64

G1 X3.013 A-230.018
M5
G91 G0 G28 Z0.
G28 X0. Y0. A0.
M30
%

Please give me a hand,Thanks!

123.mcx-8

Link to comment
Share on other sites

The null toolchange is the start place where an operation changes for Mastercam using the same tool. It looks like you want an Axis Clamp or Brake on and off. If that is the case you handle that completely different than what you have done. Look in the post for a switch to turn on M codes for the Brake or Axis clamp. Like this from the Generic MP post.

#Axis locking
use_rot_lock : no$  #Use rotary axis lock/unlock codes

HTH(Hope that Helps)

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