Easily Create Your Own Custom M and G Codes - Haas Automation Tip of the Day

Поделиться
HTML-код
  • Опубликовано: 24 сен 2024
  • Today, Mark shows you how to create your own custom M & G codes. If you have repetitive, monotonous, hand programming routines that you perform every day, Mark shows you how to create a custom program, and alias (reference) it with a single M or G code!
    Don't miss any "TIP OF THE DAY" videos. Click here (haascnc.com/sub...) to join our email list!
    Here is the updated link to the bonus content:
    www.haascnc.co...
    If you enjoyed this video, please hit the like button and share it with a friend who'll find it helpful . . . and thanks!
    Follow Haas:
    Facebook - / haasautomation
    Instagram - / haas_automation
    Twitter - / haas_automation

Комментарии • 60

  • @haasautomation
    @haasautomation  4 года назад

    Here is the updated link to the bonus content:
    www.haascnc.com/video/Video-Bonus-Content.html
    Thanks for watching!

  • @pjotter0
    @pjotter0 7 лет назад +19

    Anyone who's editing parameters/variables from within the macro/G or M code, please put G103 P1 as the first line and G103 as the last line before looping back to your main program.
    This is to prevent the lookahead to execute anything inside the macro while you're still machining.
    Some stange behavior can occur otherwise..

    • @haasautomation
      @haasautomation  7 лет назад +1

      That’s great advice. Thanks for posting it. - Mark, Haas Tip-of-the-day

    • @CNC_EDU_Insider
      @CNC_EDU_Insider 7 лет назад +1

      thank you!

    • @YCM30cnc
      @YCM30cnc 5 лет назад

      AND after any probing cycle if you want it stay off, as the Renishaw routines turn it off at the beginning and back ON at the end; DAMHIK😂😂😂😂

    • @matejkuka797
      @matejkuka797 Год назад

      Thanks for info

  • @scottp6825
    @scottp6825 8 лет назад +6

    Great tip!
    I just wrote a M105 that calls Program O0900 to retract the tool and move the table front and center on my TM-1P.
    %
    O09000 (M105 Table Front and center)
    G91 G28 Z0.
    G53 G49 G90 X-15. Y0.
    G91 G28 Z0.
    M99
    %
    Nice!

  • @TooloxAlfa
    @TooloxAlfa 8 лет назад +3

    Congratulations to the guy who edits these videos. Good job!

  • @JetNmyFuture
    @JetNmyFuture 8 лет назад +1

    This was the most useful tip yet. Thanks!

  • @kalabrushka
    @kalabrushka 8 лет назад +6

    Haas is definitly the coolest CNC manufacturer

    • @leejerry8425
      @leejerry8425 8 лет назад +5

      +kalabrushka haas is like the hondas of the machine world. good value, but not a race car......

  • @MCEngineeringInc
    @MCEngineeringInc 8 лет назад +1

    Awesome Tip! I'm going to try it tomorrow for setting my tool lengths.

  • @deepakbhapakar876
    @deepakbhapakar876 5 лет назад

    whenever you uplod video make sure it's numbering... its easy find and watch continues for us.. and thank you so much for awesome video's

  • @wildironmedia
    @wildironmedia 8 лет назад

    6th and 5th...Awesome F1 debut!! Congrads, now pour the steam on, and podium before the mid season break!! Whooo...get you some of that. Oh, and the control stuff is cool too...

  • @cjxtheninja8
    @cjxtheninja8 2 года назад +1

    Please do a video on G10 and the L and P values and what they mean I am very confused

  • @shawnb358
    @shawnb358 8 лет назад +1

    I have 2 new VF-2's with NGC and after about 2 weeks have finally figured out how to navigate it. How about a video on the changes of the NGC because a lot of things have moved.

    • @mattgrooms3298
      @mattgrooms3298 8 лет назад

      I agree although I am still way back in haas technology. I go to the Ohio Valley Career and Technical Center as a junior in machine shop and our haas is a 1995 VF0 and still has the old tube style glass screen display and we just bought a brand new VF3 and it is a very nice machine but everything is just so different.

    • @haasautomation
      @haasautomation  8 лет назад

      +Shawn B Hi Shawn. We appreciate your comment. Please reach out to us directly, contact@haascnc.com, and provide your zip code and a direct phone number or email address. We'd appreciate the chance to connect with you directly to discuss this more. Thanks.

    • @maxrosenblum4187
      @maxrosenblum4187 8 лет назад

      Agreed. We just bought a VM3 and the manual b that came with the machine was not written for the NGC! Very frustrating.

  • @alexmo43
    @alexmo43 6 лет назад +1

    Hi Mark ,
    I come from an Okuma lathe background and work for the first time on HAAS mills .
    I would like to do some standard programms that enable me to change the shape of the part as for example :
    V1= 200 (X-length )
    V2 = 150 (Y-length )
    V3 = 10 ( z )
    So I can flexible change the size of my block as required.
    Can the HAAS controll work with those codes ? For example g1 X=V1
    Regards Alex

    • @haasautomation
      @haasautomation  6 лет назад

      Alex - We can definitely control features with variables, from within Haas Lathe and Mill programs. We’ll make use of the Macros option. A Haas will use different syntax then an Okuma, different variable names. We might use #101=200. (X-Length); #102=150.( Y-Length);#103=10. (Z). From within the program we can call up X#101 Y#102 Z#103. See the Macro Section of your manual for more details. You can download the manual from our website, diy.haascnc.com/. - Mark, Haas Tip-of-the-day

  • @igor.c4455
    @igor.c4455 4 года назад

    I would like to know is there a possibility to create custom alarms? For example when G43 code is called and setting 15 is on, H and T number must match or alarm will turn on, but if H is by mistake set to zero, then there is no alarm. Is there a way to change that?
    Also, is there a way that alarm is turned on if there is no G43 entered in program?
    I apologize if my english is not the best, but i hope you can understand my questions.
    Thank you!

  • @guardiangregory
    @guardiangregory 8 лет назад

    hey, can you guys make a video for using the G188 for the PST? my supervisor doesn't understand it, thus he always uses a loop program with M50 P1/2 in the main programs. of there isn't an M50 (without a P value) the pallet changer ignores the pallet ready switch. thanks

  • @buschbwbusch
    @buschbwbusch 8 лет назад

    How about an example for right angle head drilling? Channing the Z peck to an X peck-

  • @nenadjanjic8070
    @nenadjanjic8070 2 года назад

    Hi is there any option i can change so that UMC750 NGS is working from C0 to C360 And not from C-13000 to C+13000?

  • @Bigwingrider1800
    @Bigwingrider1800 7 лет назад

    Hey Mark, what if you have an older machine. Im running 2000 mini mill i need to move the table to the upper right corner for a tool change (every time) so some of the longer tooling will not touch. Thanks in advance...Dave

    • @haasautomation
      @haasautomation  7 лет назад +1

      The simplest way to move to a safe tool change position is by using a G53 command. We have a video on this coming out in the next few weeks. G53 G00 G90 Z0; G53 G00 G90 X0 Y0, you’ll need to enter the XY locations that work best for you. If you alias your existing M06 command, you can use an M16 from within your aliased program, an M16 does the same thing as an M06 and will keep you from getting into an infinite loop with your Aliased M06 calling up your Aliased M06. On your machine, your dealer can also setup the machine to go to a certain spot before each tool change, using ZERO AXIS TC parameters, so this is also an option. - Mark, Haas Tip-of-the-day.

  • @doc0302
    @doc0302 27 дней назад

    How to create G code alias ,insted of M?

  • @FormFactoryInc
    @FormFactoryInc 8 лет назад

    Can I use this M Code alias with Trickle Feed (DNC) Programs? I'm guessing the answer is no - but this is still cool. Thanks.

  • @chadkrause6574
    @chadkrause6574 8 лет назад

    Is the Next Gen Control only available on new machines or is there an update we can perform to get it? What are the other advantages/disadvantages of the NGC?

    • @haasautomation
      @haasautomation  8 лет назад

      +Chad Krause Thanks for the questions. No, the NGC is only on new machines, it is not something that can be retrofitted to an existing machine. There is more memory available in the NGC, as well as options for even more. We have a Wi-Fi option, an enhanced VPS system, and the Haas DWO/TCPC option, a software feature that is very helpful when doing 3+2 or 4/5-axis machining.

    • @chadkrause6574
      @chadkrause6574 8 лет назад

      Haas Automation, Inc. Thanks! Also, can you explain the G200 index on the fly option for lathes? The video doesn't explain how to write the code.

  • @johnobrien8718
    @johnobrien8718 7 лет назад

    I work at a University and we program a lot of different parts for our machines. Most of them are one offs. To add this to all of our programs would be great. What I would like to do is to be able to program a T1 M03 (to get my tool out of the way so students won't get hurt) and on the second line I would like to program a G53 G00 G90 Y 0. X-385. so to move my table to the front of the machine by the operator. I am a bit confused about how to do this and would like some help. I usually just add this to any program that I have and this does work well. I am a bit shy about doing this, is there anything that I might do to mess this up so that I can be cognizant of any problems before they arise? Also, will I have to push the start button again to continue to the end of the program or M30 on the next line or will it automatically rewind? Do I need to put a M99 in before the M30 or how does this all work? Thank you in advance for any help that you provide. I do enjoy your Haas tips of the day, Thank you

    • @haasautomation
      @haasautomation  7 лет назад +1

      John Obrien - That is very doable! Check out our G53-for-mill video as well, ruclips.net/video/Rd-h0YA9IzQ/видео.html. If you set Parameter 90, to “155”, then whenever you run an M155 from a program, the machine will do whatever you told it to, in program O9009 (see video). Your O9009 program could say: O9009 (Safe Move);G53 G00 G90 Z0;G53 G00 G90 Y0 X-385.;M99. When you run an M155 now, your tool would move up and over where you told it to. If you ever try and alias an M06 tool change, be sure to use an M16 instead of an M06 inside of your O9xxx Alias Program, otherwise you will end up in a continuous loop. M06 and M16 do the exact same thing. If you get stuck, give your dealer a call, or you can always email us at TOD@haascnc.com. - Mark, Haas Tip-of-the-day

  • @leonidgeller1282
    @leonidgeller1282 8 лет назад

    Is it possible to use "M" code for the renishaw equipment? If so how to see example of the program?

    • @haasautomation
      @haasautomation  8 лет назад

      +Leonid Geller It is possible. I’ve written an Aliased M-code that probes a part on our UMC, and then sets the C-Axis Work Offset to that angle. This takes some fancy macro programming. We’ll add this to our list of future video topics. For now, this is something you’d need to work out on your own, or feel free to reach out to your local Haas Factory Outlet to speak with an Application Engineer.
      -Mark, Haas Tips of the Day

  • @matthewwood6973
    @matthewwood6973 5 лет назад

    I normally run an EC-1600 with NGC but I'm trying to Alias a g code for an older controller, it's not really clear where I save the program on the old controller as you can't see the 9000 series programs in the machine. Do I just save it into memory?

    • @haasautomation
      @haasautomation  5 лет назад

      Matthew - Hi there. It is definitely doable. Shoot me an email, at TOD@haascnc.com and we’ll figure it out or your specific machine, then I can come back and post a comment. - Mark, Haas Tip-of-the-day

  • @matthewwood6973
    @matthewwood6973 5 лет назад

    Hey Mark. I can do this on my EC-1600 with the next gen controller. Tried the same way on my VF-4, older controller which you only touch on. I can't figure out where to save it. I turned 23 and 7 off. I can't find the 9xxx folder. No one seems to know the answer. Any ideas?

    • @haasautomation
      @haasautomation  5 лет назад

      Matthew - On the Classic controls, we won’t have a 9xxx folder. We can drop our 9xxx subprograms directly into MEM. You won’t be able to see any of the 9xxx programs if Setting 23 is on. This is a safety. In our example, we create our own O9009.nc program, and place it in MEM for Classic controls. - Mark, Haas Tip-of-the-day

  • @joseandresegusquizavasquez2885
    @joseandresegusquizavasquez2885 8 лет назад

    MANUALES DE USO PARA SIMULADORES PRINCIPIANTES GRACIAS.

  • @raycurren3639
    @raycurren3639 7 лет назад

    Hi we have a st10 and we're having trouble making a clean thread. When the machine goes threw first cycle the threads are tight. If I repeat with same everything the threads are good but I little chowdered not nice and clean. The hass book says28tpi times 125 ipm= 3500rpm! Is that correct?

    • @haasautomation
      @haasautomation  7 лет назад

      Hi Ray. Can you send us a direct message with your machine's serial number and your contact info? We might be able to help you trouble shoot the problem with some more info. Thanks!

  • @matthummel-fk9yk
    @matthummel-fk9yk 5 лет назад

    Hey Mark I tried this G53 G00 G90 Z0;G53 G00 G90 Y0.;M99. and the program works in memory but when i use it as a m code i get a over travel alarm im using a vr-11

    • @matthummel-fk9yk
      @matthummel-fk9yk 5 лет назад

      I tried it on a vf5 and it worked now im curious why the older vr11 wont do this

  • @felicebarrale
    @felicebarrale 7 лет назад

    Senza usare più origini ma una sola come faccio a ripetere il programma con un passo costante su una linea es. un quadrato a x0 y0, poi l'altro a x50 y0 e così per altre tre posizioni

  • @305kelton
    @305kelton 5 лет назад

    How do I know what parameter corresponds to what 9000 program on the older machines

    • @haasautomation
      @haasautomation  5 лет назад

      We will create our own Aliased M code subprogram using any available O9000-O9009 O-number program. We can create our own Aliased G-Code using any available O9010-O9019 program. See 02:08 in the video. Once we choose an open O-number program to create and use, we can assign it an available M or G code number under Parameter 81-100 on the classic control, or on the Settings>AliasCodes tab on a Next Gen control. We assign what M/G code number goes with which O9xxx program, with parameters 81-100, or on the Settings>AliasCodes tab. We can look at the programs in MEM to see what O9xxx program numbers haven’t been used yet, and are available for us to create and use with our own Aliased M or G Code. - Mark, Haas Tip-of-the-day

  • @119wilson
    @119wilson 6 лет назад

    Can you put a counter on the macro so every 4th cycle the macro is called?

    • @cncproduct9505
      @cncproduct9505 5 лет назад

      You can put 3 programs with m0 and last with macro :)

  • @samuelroberts3744
    @samuelroberts3744 8 лет назад

    Is there a way to peck tap without copying the G84 line with a new Z depth?
    Example: G84 Z-1.0 R.2 Q.125 F20.;
    G80
    Q would peck @.125" until it reaches -1.0" deep.
    Looking for a simple solution.
    Thank you,
    Sam Roberts
    Owner/President
    www.3d-machine.com

    • @chadkrause6574
      @chadkrause6574 8 лет назад

      I think you can do like G84.2 or something but I'm not sure

    • @buschbwbusch
      @buschbwbusch 8 лет назад

      +Samuel Roberts X1. Y1.G84 Z-.25 R.2 F.05G84 Z-..5This is the only way that I am aware of so the M code idea in the video might work out slick if you have macros.Any chance some one wants to write a macro for this? Say the peck amount was always kept to 4X the pitch until it reached overall Depth.

    • @haasautomation
      @haasautomation  8 лет назад

      +Samuel Roberts This is a well-timed question! We just taped a new Tip of the Day video yesterday that covers tapping, and in the bonus content at the end of the video we will include some sample programs that will answer your question. If you can hang in there until Wednesday, we will have you covered. Thanks, and stay tuned!

    • @samuelroberts3744
      @samuelroberts3744 8 лет назад

      I have successfully peck tapping by copying the cycle with a new Z depth. Looking for a simple solution. I am certain I could edit a post to generate what I am doing at the control. I look forward to seeing what you have to show us.
      Thanks,
      Sam

  • @gamingwithsachin8055
    @gamingwithsachin8055 7 лет назад

    sir plz create a new video
    how to calculate speed and feed
    all types tools plz plz plz

  • @mattiasarvidsson8522
    @mattiasarvidsson8522 Год назад

    I'd make it show hot japanese chicks on the screen