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:

stagiairecema

Verified Members
  • Posts

    6
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

stagiairecema's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Well, I inserted a "t$". But, like you can see, i have "comment$" after the M1 sequence. So, my t$ is not good. I have the next tool number, not the right tool number ! Only my last tool have the right tool number because there is not a "M1". I've seen, we have others variables than t$. For exemple we have : first_tool$ which takes the first tool number. Also, last_tool$ which takes the last tool number. We have a next_tool$ wich gets all the next tool number. I would like to know if we have a variable wich takes the previous tool number. Or, perhaps, can you help me to create this variable. Maybe we can have => next_tool = next_tool * number of tool ? Thanks for reading ! It will be great if i can have the previous tool number !
  2. Well, thanks to your advice Colin, i finnaly have something. I modified my PP. at : pcomment$ scomm$ = ucase(scomm$) if gcode$ = 1005, num, "*", scomm$,e$ if gcode$ = 1006, num, "*", scomm$,e$ if gcode$ = 1007, num, "*", scomm$,e$ if gcode$ = 1008, num, scomm$,e$ I added a "Space" between "ucase" and "(scomm$)" Like this : pcomment$ scomm$ = ucase (scomm$) Also i deleted "*" at gcode = 1006 and 1008, because it uses "as code". Finally i have : pcomment$ scomm$ = ucase (scomm$) if gcode$ = 1005, num, "*", scomm$,e$ #if gcode$ = 1005, num, "*", scomm$,e$ if gcode$ = 1006, num, scomm$,e$ #if gcode$ = 1006, num, scomm$,e$ if gcode$ = 1007, num, "*", scomm$,e$ if gcode$ = 1008, num, scomm$,e$ Then, I deleted all "Comment$" at ptlchg$ and added a "comment$" after the line wich calls M1. Finally I have : ptlchg$ if nextop$ = 11 & m9$ <> 1,q12 if m1$ = 1 & m5$ = 1 & m9$ = 1, dessus = 1 else, dessus = 0 plubrifoff,e$ if decalage = 1 , panulldecalageg52 # annuler les decalage d'origine old_spdir = spdir$ spdir$ = 0 @spdir$ num, *spdlon, e$ spdir$ = old_spdir @spdir$ if debut = 1, num, "M129",e$ debut = 0 if subout$ = 0, incremental = 0 prot1 gcode$ = 0 if prec19abc =1, pposc19AnnulAxeAvant num, "CYCL DEF 19.0 PLAN D'USINAGE", e$ panulABC num, "CYCL DEF 19.0 PLAN D'USINAGE", e$ num, "CYCL DEF 19.1", e$ pdeg pposc19 #comment$ #TEST KEVIN if (HV = 0) & (opcode$ <> 16) & (nextop$ <> 11), [ if posetool = 1, num,"M1",e$ comment$ #TEST KEVIN if toolchange = 1, pretoolchange if tooldef = 1, num, "TOOL DEF ", t$ ,e$ "*", paramT1, stypeT, paramT5, ptypeBoutT, pangleT, phauteurT, strtool$,e$ if nom_tool = 1, num, "TOOL CALL ", t$, "Z", ssa, e$ else, num, "TOOL CALL ", 34, strtool$, 34, "Z", ssa, e$ if paffparam= 1, paramsurep if toolABC0 = 1, pposabc0 pdeg if dmu = 1,num, "M54 ; TETE VERTICALE", e$ # comment$ TEST KEVIN # p_affich_param if dessus = 0,pcycle19 pcalxyz3d if dessus = 0 & abctable = 0, num, "L", x1, y2, sgcode, "M130",spdlon, e$ ,num, "L", z1, sgcode,"M130", e$ if nextop$ <> 11,num, "L", New_xr_cycle19v, New_yr_cycle19v, sgcode, spdlon, e$ if nextop$ <> 11,num, "L", zrp, sgcode, plubrifon, e$ if bldnxtool$ = 1, num, "TOOL DEF ", next_tool$,e$ ] Also, at peof$ i added a comment$ before "M30". Finally, i have : peof$ if decalage = 1 , panulldecalageg52 # annuler les decalage d'origine plubrifoff,e$ if debut = 1, num, "M129",e$ num, "CYCL DEF 19.0 PLAN D'USINAGE",e$ panulABC num, "CYCL DEF 19.0 PLAN D'USINAGE",e$ num, "CYCL DEF 19.1",e$ old_HV = HV pdeg pposc19 if annul = 1, num, "CALL PGM TNC:\ANNUL.H",e$ #TEST KEVIN comment$ num, "M30",e$ #FIN TEST KEVIN "; ",e$ subout$ = 0 mergeext$ #JPH mergesub$ mergeaux$ clearext$ #JPH clearsub$ clearaux$ if use_progno = 1, num, "END PGM ", prognosav, "MM",e$ else, num, "END PGM ", sprogname$,"MM",e$ It works great ! But, again, i have a problem. I would like to add Tool number automatically. At this moment I must find the first code and change "NUMERO_OUTIL" by my real tool number. If you have any ideas ! Thx for reading !
  3. Above all i thank you for your answer I used 'Manual Entry' Toolpath with the correct code just after an operation to control the tool breakage and I obtained the desired result in G1. However I only get this result with the default post processor (generic mill). When I use the PP DMU 70 (Heidenhain ITNC 530) and that I carry out the same action, nothing appears in G1. Avant tout je vous remercie pour votre réponse j'ai utilisé un commentaire avec le code voulu juste après une opération pour controler le bris d'outil et j'obtient bien résultat souhaité dans G1. Cependant j'obtient ce résultat uniquement avec le post processeur par défaut (generic mill). Lorsque j'utilise le PP DMU 70 (Heidenhain ITNC 530) et que j'effectue la même action rien n'apparait dans G1.
  4. Hi, ________ Mastercam Version : X3 Milling Machin : DMU 70 Evo G-code to insert : 1 => TCH PROBE 586 CONTROLE DE BRIS ~ Q356++1 ; DIRECTION DE MESURE ~ Q357++0 ; DECALAGE RADIAL ~ Q359++0 ; LONGUEUR ADDITIVE FN18 ; SYSREAD Q50 + ID50 NR7 IDX (T Tool number) FN9 / IF +Q50 EQU +1 GOTO LBL 000" 2 => CALL LBL 98 LBL 99 M30 LBL98 ______ I'm a young trainee on Mastercam and i gonna explain you what i would like to do. DMU 70 have a control tool breakage, so i would like to insert the first code in my program whenever I want, just before the next tool change. Some tools don't require a control tool breakage so I would have a choice about which tool to insert this code. Also, i would like to insert the second code at the end of my program. I don't know how i can realise that since i started Mastercam and Programation only 1 month ago. I have some ideas still : First, i may use canned text. I inserted the frist code in a new Txt file and tried to use "Text Prog". Then, i go to tool choice and select my new "Text Prog" with option "After". But, it doesn't work. Maybe i have not the good step because there is nothing which appears when changing tool in my "G1". Second idea : Select the last point during a drilling operation and go to properties, add a comment with my first code, and select "after". There, i have something to apperate in my "G1", but not in the right place but not in the right place. "After", it's still not enough "After". Third idea : Despite my limited experience, i tried to change my PP. So, i opened my PP and search Ptchg$. Here i tried to insert few lines : (Again, i have no experience) If Stypet = "Fraise 2 Tailles", num "TCH PROBE 586 CONTROLE DE BRIS ~ Q356++1 ; DIRECTION DE MESURE ~ Q357++0 ; DECALAGE RADIAL ~ Q359++0 ; LONGUEUR ADDITIVE FN18 ; SYSREAD Q50 + ID50 NR7 IDX", t$, "FN9 / IF +Q50 EQU +1 GOTO LBL 000" e$ I didn't test it, because I don't want have a PP which doesn't work. I was not sure of myself. To conclure, i would like the second code just before the end of my program. Like this : CALL LBC 98 LBC 99 M30 LBC 98 L M5 M9 END PGM "name of the program" I read a lot of topic in this forum, and even if you have not yet answered. Thank you for all. ______________________________ [French translate] ___________ Bonjour tout le monde, Je suis un jeune stagiaire sur Mastercam que depuis 1 mois et demi. Je n'ai donc pas beaucoup d'expérience sur ce logiciel et voudrais vous demander de l'aide. La machine que j'utilise est une DMU 70 Evo. Elle a comme option un contrôle de bris d'outil. Je voudrais donc insérer ces quelques lignes de programme dans Mastercam. Le premier code devra être inséré juste avant le prochain outil. Aussi, tous les outils ne sont pas obligatoirement contrôlés, donc je voudrais avoir le choix sur quel outil insérer ce code. Le deuxième code sera inséré tout à la fin du programme, juste avant les deux dernières lignes : L M5 M9 END PGM "Nom du programme" j'ai essayé différentes techniques, en vain. Je vous remercie d'avance, pour toutes réponses et lectures.

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