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:

coolant at M00


ken wong
 Share

Recommended Posts

Hi every one

i use x2 mr2 and mpmaster post when i need M00 (change clamp by enter 1 in misc #10) and M08 come out at Z home not at G43 H LINE like normal but if i force tool change it will be ok but some machine does take that line if tool already in spindle

some things like this

G20G17G80...

G91G28Z0.

T1

M6

G90G54G00X0.Y0.S10000M3

G43H1Z1.M08

...

...

M09

M05

G91G28Z0.

M00(CHANGE CLP)

Sme tool start

G90G54X0.Y0.S10000M3

G43H1Z1.M08

....

That format i need but mpmaster give code outat M00 line like this

....

...

M00

M08 this line very bad here

G90G54X0. Y0.S10000M3

G43H1Z1.(m08 must be here not up there)

....

HELP ME to fix this matter in post or in configuration

Link to comment
Share on other sites

Ken,

 

I suspect it is in the way that the post is coded to restart the spindle after the M00 that is set up.

 

You said an mi10 variable triggers it, look in the post for the sections that checks it and see if you can find out how the post gets restarted for the tool call, the scoolant variable is likely in the wrong spot and just needs to be moved.

 

If you'd like you can send the post and I'll a look for you if you can't figure out what is going on in there.

Link to comment
Share on other sites

Ken,

 

Looking through this post, if you're getting M08 output in that location, you are not using V9 Style coolant.

 

I just tried and got this

 

code:

N140 G00 G17 G90 G54 X.4394 Y.1313 S8000 M03

N150 G43 H1 Z2. M08

N160 Z.1

N170 G94 G01 Z-.25 F15.

,

,

,

,

,

,

N330 G91 G28 Z0. M09

N340 M00

N350 T1 M06 (1/8" 3FL VIPER CARBIDE ENDMILL)

N360 (MAX - Z2.)

N370 (MIN - Z-.25)

N380 G00 G17 G90 G54 X.4394 Y.1313 S8000 M03

N390 G43 H1 Z2. M08 T1

N400 Z.1

Link to comment
Share on other sites

OK, Ken I found it

 

code:

ptlchg0$         #Call from NCI null tool change (tool number repeats)

toolchng0 = one

if op_id$ <> last_op_id,

[

rd_params$ # Read parameters - pparameter

pmisccheck

]

pcuttype

toolcount = toolcount + 1

if toolcountn <= tooltotal, nexttool = rbuf(4,toolcountn)

else, nexttool = first_tool$

retractflg = 0

if (mi10$ & (op_id$ <> last_op_id | (op_id$ = last_op_id & xform_op_id$ <> op_id$)))

| ((tlplnno$ <> last_tlplnno | rotary_type$ <> last_rotary_type) & ret_on_indx),

[

phsm_off

if mi10$,

[

pretract

n$, *sm00, e$

result = force(spdir2,spdir2) #Force spindle output after M00

result = force(speed,speed) #Force speed output after M00

]

else, pretract0

retractflg = 1

]

else,

[

if mr1$ <> last_mr1 | mr2$ <> last_mr2, phsm_off

]

pcom_moveb

pcheckaxis #Check for valid rotary axis

c_mmlt$ #Multiple tool subprogram call

comment$

pcomment3

pcan

if plane$ < 0 | opcode$ = 3 | opcode$ = 16, plane$ = 0

if op_id$ <> last_op_id, pbld, n$, sgplane, e$

pspindchng

if coolant$ <> 0 & coolant$ <> sav_coolant & sav_coolant, pbld, n$, sm09, e$

#pbld, n$, scoolant, e$ <----------------------COMMENT THIS LINE OUT

sav_coolant = coolant$

if coolant$ = 1, sm09 = sm09_0

if coolant$ = 2, sm09 = sm09_1

if coolant$ = 3, sm09 = sm09_2

if op_id$<>last_op_id, pstock

if sav_mi9 = 1, workofs$ = sav_workofs

if (wcstype > one & workofs$ <> prv_workofs$) | (tlplnno$ <> last_tlplnno) | retractflg,

[

if convert_rpd$ = one,

[

gcode$ = one

feed = maxfeedpm

ipr_type = zero

]

sav_absinc = absinc$

absinc$ = zero

pindex

if retractflg,

[

if safe_index,

[

if lock_codes = one & not(index) & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$

pbld, n$, pgear, e$

pbld, n$, *sgcode, [if not(index), sgabsinc, pwcs], pfcout, e$

if lock_codes = one & not(index) & rot_on_x & cuttype = 0, pbld, n$, *slock, slockcomm, e$

pbld, n$, pfxout, pfyout, e$

]

else,

[

if lock_codes = one & not(index) & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$

pbld, n$, pgear, e$

pbld, n$, *sgcode, [if not(index), sgabsinc, pwcs], pfcout, pfxout, pfyout, e$

if lock_codes = one & not(index) & rot_on_x & cuttype = 0, pbld, n$, *slock, slockcomm, e$

]

phsm1_on #must remain before G43

pbld, n$, "G43", *tlngno$, pfzout, scoolant, e$ <------------THIS ONE TAKES OVER

phsm2_on #must remain after G43

]

else,

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