Macros Are More Than IF Statements . . . They Are Lie Detectors! - Haas Tip of the Day

  Рет қаралды 8,764

Haas Automation, Inc.

Haas Automation, Inc.

Күн бұрын

Пікірлер: 47
@harrisonius
@harrisonius 9 күн бұрын
This is a particularly excellent video for all the aspiring CNC programmers out there without a computer programming background. Fantastic presentation from Mark, as always!
@Rickgrott100
@Rickgrott100 8 күн бұрын
Wow! Thanks, I didn’t know the Haas control can do all these behind-the-scenes Thank you, Mark the Haas team! I have learned so much from these videos!!
@SaviorTheBurn
@SaviorTheBurn 4 күн бұрын
This has nothing on real programming. Seriously macro programing is simple.
@andrew_the_machinist
@andrew_the_machinist 5 күн бұрын
This is great. The world needs more macro programming videos. GOTO MORE MACRO VIDEOS
@vojtechjakes9379
@vojtechjakes9379 9 күн бұрын
I would really appreciate it if you made more macro videos! Thank you for your work!
@jeffstark4196
@jeffstark4196 9 күн бұрын
I use macros all the time. Great video Mark. Please do more on mod’s.
@Mattias-mc1rm
@Mattias-mc1rm 8 күн бұрын
good video .. I like that you are back in this format, doing what you do best. Not trying to sell trinkets. :)
@BobVawter
@BobVawter 4 күн бұрын
I like using the "Power off at M30" setting at the end of the day, but want to park the table and/or unload the spindle before the machine shuts down. (Empty the spindle if poweroff on M30 is set); IF [#20002 NE 0] THEN T29 M6; Also, I use some tools and grippers powered by through-spindle air. I have the programs guard themselves by monitoring the TSC pressure sensor (identified in the IO page as analog input 7). M73 (AIR ON); #3001 = 0 (RESET MILLISECOND TIMER); G103 P1 (DISABLE LOOKAHEAD); WHILE [ #13007 LT 675. ] DO1 (WAIT FOR PSI TO RISE); G4 P0.1; (SLEEP 100MS) IF [ #3001 GT 30000. ] #3000 = 1 (OH NOES); END1; G103 (ENABLE LOOKAHEAD);
@shagbuilt
@shagbuilt 9 күн бұрын
Mark, would love to see more about checking to see if there is a tool length in the offset table, and erroring if not. I find it crazy that this isn't a default for the control. Have never needed the gage line to hit Z0. :) Also, more on MOD please! Would be great to set up things like chip conveyor on X# of parts ran, etc. Thanks for the great videos, I use macros all the time as I am running lots of production parts.
@markterryberry4477
@markterryberry4477 9 күн бұрын
We have a Software Project (BZ1254, TP63937) that will have the control alarm out if we try to run a tool with an offset set to zero. On machines with probing, that could result in a crash. The code is written for this and the task is going through testing now. Great idea. We’ll put MOD on the list. We love macros, and have another video on them coming out after the holidays.
@shagbuilt
@shagbuilt 9 күн бұрын
​@@markterryberry4477 Awesome! This will be a much appreciated safety/sanity check. I have never understood why it will alarm on so many other/lessor infractions, but would allow an operator whom forgot to touch off a tool to run it. Will also save from having to edit post processors to do this. Look forward to seeing them!
@williamjohnson7764
@williamjohnson7764 9 күн бұрын
I have been using macros for awhile now. I have setup a whole library for my operators to use. They control tool #, diameter, rpm, feedrate, spin direction, part parameters, etc. A future video idea, that is more advanced, would be looping. Drilling holes in a rectangular array for example. I did it via a loop within a loop to do X direction then reset X count and move once in Y until completed. What could thousands on lines of code was reduced to just a few dozen.
@crashfactory
@crashfactory 9 күн бұрын
i love the 8 bit code idea. Not sure when i'd use that one, but dang, so clever!
@markterryberry4477
@markterryberry4477 8 күн бұрын
Follow the link in the description for “Bonus Content”. We have listed all the example programs we used in this video, including the 8Bit ID program.
@ps9417
@ps9417 5 күн бұрын
Thank you Mark. You're a great teacher. How valuable this information is!
@Austinfamily1
@Austinfamily1 9 күн бұрын
Another excellent video! Thank you for all you do to educate us
@jpa162232
@jpa162232 9 күн бұрын
please do mor of these macro videos. huge help.
@TJ4A9
@TJ4A9 8 күн бұрын
I use a Macro as a calculator to easily figure out an ARC TAN for a bolt circle. Sometimes I am doing repair work and need to line up to an existing bolt circle. I probe the center of the part, and then any hole, and run the Macro. It'll record the degree of rotation and put it into whatever variable I want to use. Then, I can program accordingly and use G68 and use the Macro variable and voila, it lines up perfectly. If anyone would like more info on that I can gladly share.
@markterryberry4477
@markterryberry4477 8 күн бұрын
That’s a perfect example of how powerful macros can be.
@Einzbrn
@Einzbrn 8 күн бұрын
Could you share some g code examples? My brain functions better seeing it done
@florianpohl3735
@florianpohl3735 8 күн бұрын
Thank you for the great video. Please more on that topic
@Bfreese12x
@Bfreese12x 4 күн бұрын
Awesome Video. I personally would be interested in more macro videos! And the MOD video as well.
@andrew_the_machinist
@andrew_the_machinist 5 күн бұрын
Ok. The 8bit setup is redonk! That was a great climax for us computer science turned machinist guys!
@kopsik111
@kopsik111 9 күн бұрын
How do you use extended tool offsets? Or doesn’t Haas support using more than 30 tools per program?
@teekteekteekteek
@teekteekteekteek 9 күн бұрын
Thanks mark! Very helpful!
@markterryberry4477
@markterryberry4477 8 күн бұрын
Check out the Bonus Content link in the description as well. We have posted all the programs used in this video, even the 8-Bit Macro Program.
@neilattaway2182
@neilattaway2182 9 күн бұрын
Very interesting. As yet, i have no use for this at the moment, but it takes me back to my solidworks training. How about writing a macro to convert imperial to metric ( vice verser ) for thread milling regardless of whether the machine is set to metric or imperial ?
@markterryberry4477
@markterryberry4477 9 күн бұрын
Great use case for macros. We can do anything! The Renishaw probing macros have IF statements that multiple our values by 1, if in Metric mode, or by 1/25.4 if in Inch mode. They store the multiplier in #179, so I tend to do the same (#179=1/25.4, or #179=1). In/mm is stored in Setting 9, which is variable #6009 on Classic Control, and #20009 in Next Gen control.
@precisioningenuity2133
@precisioningenuity2133 8 күн бұрын
Can you make a video on the new "Broken Tool Detection" camera option that is now standard on all UMC's? I would like to know how it works. Also, can it be added to machines other than UMC's? And is it something that "Just works" or is there setups and processes that need to be implemented to use it properly?
@markterryberry4477
@markterryberry4477 8 күн бұрын
Great topic. Well put it on the list. As far as availability, it is only available on UMC machines in the U.S. and Europe right now. There are new developments being worked on, for this product, and I’m excited to see that line grow.
@O3DB
@O3DB 9 күн бұрын
Solid video 👏👏
@DonkeyHotie
@DonkeyHotie 9 күн бұрын
Very timely. I am in the middle of trying to add a few unassigned Renishaw macros to a new VQC category (adding 4th axis X and Y, 3-point bore, 3-point boss). The one I thought would be simple was 9823 (Three point bore/boss). Similar to 9814 with three angle values, right? Except 3-point uses an A input (#1) for the angle, which is already the program selection used by 9823. I thought I could assign it to another variable but, I believe it passes #1 to the macro that determines the variable offset number. Now I'm wrapped around the axle. 9823 continues to us A as it passes it to 9727 so I can't just pick another variable for the angle and substitute it. Gahhh! I'm spending all my time reading and writing notation in the Renishaw programs, just to track what it's doing.
@RobertOsterhoudt
@RobertOsterhoudt 8 күн бұрын
Is there a way to use macros to detect operator input? For example, with some stock that is widely variable or close to finish size and where the first operation cleans up a face. I'd like the control to pause, ask the operator for some input (Is the face fully cleaned up? Yes/No) and then proceed based on that response. Possibly making another skim pass and then adjusting a work offset by the amount of the 2nd skim pass.
@markterryberry4477
@markterryberry4477 8 күн бұрын
Yes. Check out M109 in the Haas manual for more info. This code works exactly as you described.
@akronimm862
@akronimm862 9 күн бұрын
Broh took b roll footage from a redstone calculator in Minecraft LOL
@markterryberry4477
@markterryberry4477 8 күн бұрын
Thanks for noticing :). I was happy that made the cut.
@CAMER_21
@CAMER_21 9 күн бұрын
we got so many cam softwares..... we don't uses macros
@p38pilotdk01
@p38pilotdk01 9 күн бұрын
In a production setting with various skill level operators, macros really make life easier. Just eliminating human error from changing over castings is huge
@markterryberry4477
@markterryberry4477 9 күн бұрын
@@p38pilotdk01you nailed it. Many of my macros, in a production environment, were just making sure that things couldn’t go wrong. Usually written after something went wrong.
@CAMER_21
@CAMER_21 9 күн бұрын
@p38pilotdk01 yeah in production maybe it is useful ...
@markterryberry4477
@markterryberry4477 9 күн бұрын
@@CAMER_21I’m with you though, I try and avoid macros if there isn’t a legitimate need - it can turn a program into unintelligible gibberish, fast. Balance is needed.
@CAMER_21
@CAMER_21 9 күн бұрын
@@markterryberry4477 sometime macros are so complex even programmer get confused .... so we avoid and let Cam software to there work
@finchi55
@finchi55 5 күн бұрын
Fanuc Macros > Haas macros
@Rickgrott100
@Rickgrott100 8 күн бұрын
Why
@markterryberry4477
@markterryberry4477 8 күн бұрын
Automation.
@andrew_the_machinist
@andrew_the_machinist 5 күн бұрын
It's pronounced arithmetic 😂
How Reamers Work - Haas Automation Tip of the Day
9:43
Haas Automation, Inc.
Рет қаралды 73 М.
Creative Justice at the Checkout: Bananas and Eggs Showdown #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 35 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 661 М.
Mistake Proof Your Setup with Probing - Haas Automation Tip of the Day
11:03
Haas Automation, Inc.
Рет қаралды 69 М.
Tools of the Trade - Haas Automation Tip of the Day
30:06
Haas Automation, Inc.
Рет қаралды 74 М.
HAAS ST-10 CNC Lathe Start Up
9:26
Mr. Trout
Рет қаралды 6 М.
Don't Waste Cycle Time; Peck Drilling Essentials - Haas Automation Tip of the Day
9:30
This German Machine Tool Factory is Bigger Than Your Hometown!
19:30
Practical Machinist
Рет қаралды 52 М.
How To Calculate Speeds and Feeds (Inch Version) - Haas Automation Tip of the Day
14:26
Creative Justice at the Checkout: Bananas and Eggs Showdown #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 35 МЛН