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:

Lathe post problem


Recommended Posts

Hello all,

 

I downloaded mplmaster from here and started customizing for our needs. Everything works perfectly for us except the Pattern repeat canned cycle (G73) . I get a double post for my tool end section but I do not know why.

 

Anybody have an idea?

 

Here is what the program looks like:

(1)
N0090 G00 X[#148] Z[#149]
N0100 M00 (MONTER OUTIL MANUELLEMENT)
N0110 (* T06 FAPT #604, 0.094R - OUTIL #E037, HOLDER #U1492)
N0120 (* INSERT -  TNMG 436 #CASIER1420, SHIM #737SP)
N0130 (* HOLDER -  MTJNRS204, #E037 - HOLDER #U-1492)

N0140 (- USINER PARTIE DU MILIEU A +.100")
N0150 M32
N0160 G00 T0101 U0. W0.
N0170 G95
N0180 G90 G00 X53.7407
N0190 Z-3.7198
N0200 G92 S40
N0210 G96 S500 M03
N0220 X53.111
N0360 G73 U.2 W.05 R2
N0370 G73 P380 Q410 U.2 W.05 F.02
N0380 G00 X52.6439
N0390 G01 X52.15 Z-4.6914
N0400 Z-67.8524
N0410 X52.711 Z-68.8992
N0010 G00 Z-3.7698
N0020 M09
N0030 M05
N0040 G00 T0100 U0. W0.
N0050 M01
N0010 M09                                  <  --- DOUBLE LINE
N0020 M05                                  <  --- DOUBLE LINE
N0030 G00 T0100 U0. W0.           <  --- DOUBLE LINE
N0040 M01                                  <  --- DOUBLE LINE

(1.2)
N0050 (- USINER PARTIE DU BAS A +.100")
N0060 G00 T0101 U0. W0.
N0070 G00 X53.2549
N0080 Z-3.7698
N0090 G96 S500 M03
N0100 Z-81.86
N0210 G73 U.2 W-.1 R2
N0220 G73 P230 Q250 U.2 W.1 F.02
N0230 G00 Z-69.6398
N0240 G01 X52.15 Z-70.9551
N0250 Z-81.76
N0010 G00 X52.8549
N0020 M09
N0030 M05
N0040 G00 T0100 U0. W0.
N0050 M01
N0010 M05                                 <  --- DOUBLE LINE
N0020 G00 T0100 U0. W0.          <  --- DOUBLE LINE
N0030 M01                                 <  --- DOUBLE LINE
N0040 M30

 

Attached is a Z2G of the file.

CANNED CYCLE.Z2G

Link to comment
Share on other sites

Looks like you've been doing a little post editing in the ptoolend$ post block!

 

This is a function of the pattern repeat cycle that is passing through the ptoolend$ post block twice per operation with a null toolchange. The nci file gives the post this direction.

 

You need to add logic in the ptoolend$ post block to look after the repeat instances. I would suggest using op_id$ to try and limit the output in ptoolend$. A quick test has this get the correct output, though it may need to be a little more sophisticated to deal with the specific operation type rather than all operations.

 

       else, #Null toolchange
         [
         if op_id$ = prv_op_id$, 
           [
           #if n1_posttype <> posttype$, pcan1, pbld, n$, pnullstop, strcantext, e$
           pbld, n$, *sall_cool_off, e$
           pbld, n$, pnullstop, strcantext, e$
           coolant_on = zero
           toolno = t$ * 100
           if home_type = -1,
             [
             prv_gcode$ = c9k
             #pbld, n$, `sgcode, toolno, e$
             pbld, n$, "G00", "T0100", "U0.", "W0.", e$
             ]
           else, pbld, n$, "G00", *toolno, "U0.", "W0.", e$
           else, pbld, n$, "G00", "T0100", "U0.", "W0.", e$
           pbld, n$, "M01", e$
           ]
         !op_id$
         ]

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